	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yae_xcorr_via_rdft
_yae_xcorr_via_rdft:                    ## @yae_xcorr_via_rdft
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rsi, %r14
	movq	%rdi, %r10
	movl	(%rcx), %eax
	imull	(%rdx), %eax
	movl	%eax, (%rdi)
	movl	4(%rcx), %eax
	imull	4(%rdx), %eax
	movl	%eax, 4(%rdi)
	cmpl	$2, %r8d
	jl	LBB0_12
## %bb.1:
	leaq	8(%r10), %r11
	leal	-2(%r8), %eax
	movl	$1, %edi
	cmpl	$4, %eax
	jb	LBB0_10
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r10,%rax,8), %rbx
	addq	$12, %rbx
	leaq	8(%rdx), %r9
	leaq	12(%rdx,%rax,8), %rsi
	leaq	8(%rcx), %r14
	leaq	(%rcx,%rax,8), %r15
	addq	$12, %r15
	leaq	12(%r10), %r13
	cmpq	%rsi, %r11
	setb	-42(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rbx, %r9
	leaq	16(%r10,%rax,8), %r12
	setb	%sil
	cmpq	%r15, %r11
	setb	%r9b
	cmpq	%rbx, %r14
	leaq	12(%rdx), %r14
	setb	%r15b
	leaq	(%rdx,%rax,8), %rbx
	addq	$16, %rbx
	cmpq	%rbx, %r13
	setb	%dil
	cmpq	%r12, %r14
	setb	-41(%rbp)                       ## 1-byte Folded Spill
	leaq	(%rcx,%rax,8), %rbx
	addq	$16, %rbx
	cmpq	%rbx, %r13
	leaq	12(%rcx), %rbx
	setb	%r14b
	cmpq	%r12, %rbx
	setb	%r13b
	testb	%sil, -42(%rbp)                 ## 1-byte Folded Reload
	jne	LBB0_3
## %bb.4:
	andb	%r15b, %r9b
	jne	LBB0_3
## %bb.5:
	andb	-41(%rbp), %dil                 ## 1-byte Folded Reload
	jne	LBB0_3
## %bb.6:
	andb	%r13b, %r14b
	jne	LBB0_3
## %bb.7:
	incq	%rax
	movl	%eax, %r9d
	andl	$3, %r9d
	testq	%r9, %r9
	movl	$4, %ebx
	cmovneq	%r9, %rbx
	subq	%rbx, %rax
	leal	1(%rax), %edi
	leaq	(%r11,%rax,8), %rsi
	leaq	(%rdx,%rax,8), %r15
	leaq	(%rcx,%rax,8), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	8(%rdx,%rbx,8), %xmm0
	movups	24(%rdx,%rbx,8), %xmm1
	movups	8(%rcx,%rbx,8), %xmm2
	movups	24(%rcx,%rbx,8), %xmm3
	movaps	%xmm2, %xmm4
	shufps	$136, %xmm3, %xmm4              ## xmm4 = xmm4[0,2],xmm3[0,2]
	movaps	%xmm0, %xmm5
	shufps	$136, %xmm1, %xmm5              ## xmm5 = xmm5[0,2],xmm1[0,2]
	movaps	%xmm4, %xmm6
	pmulld	%xmm5, %xmm6
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	pmulld	%xmm2, %xmm5
	pmulld	%xmm0, %xmm2
	paddd	%xmm6, %xmm2
	pmulld	%xmm4, %xmm0
	psubd	%xmm5, %xmm0
	movdqa	%xmm2, %xmm1
	punpckldq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
	punpckhdq	%xmm0, %xmm2            ## xmm2 = xmm2[2],xmm0[2],xmm2[3],xmm0[3]
	movdqu	%xmm2, 16(%r11,%rbx,8)
	movdqu	%xmm1, (%r11,%rbx,8)
	addq	$4, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_8
## %bb.9:
	movq	%rsi, %r11
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	$1, %edi
LBB0_10:
	subl	%edi, %r8d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rcx,%rax,8), %r9d
	movl	12(%rcx,%rax,8), %ebx
	imull	8(%rdx,%rax,8), %r9d
	movl	12(%rdx,%rax,8), %edi
	movl	%ebx, %esi
	imull	%edi, %esi
	addl	%r9d, %esi
	movl	%esi, (%r11,%rax,8)
	imull	8(%rcx,%rax,8), %edi
	imull	8(%rdx,%rax,8), %ebx
	subl	%ebx, %edi
	movl	%edi, 4(%r11,%rax,8)
	incq	%rax
	cmpl	%eax, %r8d
	jne	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	movq	%r10, %rsi
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_rdft_calc                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_yae_xcorr_via_rdft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yae_xcorr_via_rdft
_yae_xcorr_via_rdft:                    ; @yae_xcorr_via_rdft
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	mov	x1, x0
	ldr	d0, [x2]
	ldr	d1, [x3]
	mul.2s	v0, v1, v0
	str	d0, [x0]
	subs	w11, w4, #2
	b.lt	LBB0_12
; %bb.1:
	add	x9, x1, #8
	cmp	w11, #8
	b.hs	LBB0_3
; %bb.2:
	mov	w10, #1
	b	LBB0_10
LBB0_3:
	lsl	x10, x11, #3
	add	x12, x10, x1
	add	x15, x12, #12
	add	x16, x2, #8
	add	x13, x10, #8
	add	x14, x2, x13
	add	x17, x14, #4
	add	x14, x3, #8
	add	x13, x3, x13
	add	x13, x13, #4
	add	x0, x1, #12
	add	x5, x12, #16
	add	x6, x2, #12
	add	x7, x3, #12
	cmp	x9, x13
	ccmp	x14, x15, #2, lo
	cset	w12, lo
	add	x10, x10, #16
	add	x13, x2, x10
	cmp	x0, x13
	ccmp	x6, x5, #2, lo
	cset	w13, lo
	add	x10, x3, x10
	cmp	x0, x10
	ccmp	x7, x5, #2, lo
	cset	w14, lo
	cmp	x16, x15
	ccmp	x9, x17, #2, lo
	mov	w10, #1
	b.lo	LBB0_10
; %bb.4:
	tbnz	w12, #0, LBB0_10
; %bb.5:
	tbnz	w13, #0, LBB0_10
; %bb.6:
	tbnz	w14, #0, LBB0_10
; %bb.7:
	add	x10, x11, #1
	ands	x11, x10, #0x7
	mov	w12, #8
	csel	x11, x12, x11, eq
	sub	x11, x10, x11
	add	w10, w11, #1
	lsl	x13, x11, #3
	add	x9, x9, x13
	add	x12, x2, x13
	add	x13, x3, x13
	add	x14, x1, #40
	add	x15, x3, #40
	add	x16, x2, #40
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x17, x16, #32
	ld2.4s	{ v0, v1 }, [x17]
	ld2.4s	{ v2, v3 }, [x16]
	sub	x17, x15, #32
	ld2.4s	{ v4, v5 }, [x17]
	ld2.4s	{ v6, v7 }, [x15]
	mul.4s	v16, v4, v0
	mul.4s	v18, v6, v2
	mla.4s	v16, v5, v1
	mul.4s	v20, v0, v5
	neg.4s	v17, v20
	mla.4s	v17, v4, v1
	mla.4s	v18, v7, v3
	mul.4s	v0, v2, v7
	sub	x17, x14, #32
	st2.4s	{ v16, v17 }, [x17]
	neg.4s	v19, v0
	mla.4s	v19, v6, v3
	st2.4s	{ v18, v19 }, [x14]
	add	x14, x14, #64
	add	x15, x15, #64
	add	x16, x16, #64
	subs	x11, x11, #8
	b.ne	LBB0_8
; %bb.9:
	mov	x2, x12
	mov	x3, x13
LBB0_10:
	sub	w10, w4, w10
	add	x11, x2, #8
	add	x12, x3, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	w13, w14, [x11]
	ldp	w15, w16, [x12]
	mul	w13, w15, w13
	madd	w13, w16, w14, w13
	str	w13, [x9]
	ldr	w13, [x12], #8
	ldr	w15, [x11], #8
	mul	w15, w15, w16
	neg	w15, w15
	madd	w13, w13, w14, w15
	str	w13, [x9, #4]
	add	x9, x9, #8
	subs	w10, w10, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x8
	b	_av_rdft_calc
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_yae_xcorr_via_rdft
.subsections_via_symbols
