	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auto_correlation
_auto_correlation:                      ## @auto_correlation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LP_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorps	%xmm1, %xmm1
	cmpl	$10, %ecx
	jl	LBB0_7
## %bb.1:
	addl	$-2, %ecx
	movslq	%esi, %r8
	leaq	-7(%rcx), %r9
	cmpl	$8, %ecx
	jne	LBB0_3
## %bb.2:
	xorps	%xmm1, %xmm1
	movl	$7, %edx
	jmp	LBB0_5
LBB0_3:
	leaq	(,%r8,4), %rcx
	movq	%rdi, %rsi
	subq	%rcx, %rsi
	movq	%r9, %rcx
	andq	$-2, %rcx
	negq	%rcx
	xorps	%xmm2, %xmm2
	movl	$7, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rdi,%rdx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	4(%rdi,%rdx,4), %xmm4           ## xmm4 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm3
	movss	(%rsi,%rdx,4), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	movss	4(%rsi,%rdx,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm5
	mulss	%xmm3, %xmm5
	mulss	%xmm5, %xmm5
	addss	%xmm2, %xmm5
	subss	%xmm0, %xmm4
	subss	%xmm0, %xmm1
	mulss	%xmm4, %xmm1
	mulss	%xmm1, %xmm1
	addss	%xmm5, %xmm1
	leaq	(%rcx,%rdx), %rax
	addq	$2, %rax
	addq	$2, %rdx
	movaps	%xmm1, %xmm2
	cmpq	$7, %rax
	jne	LBB0_4
LBB0_5:
	testb	$1, %r9b
	jne	LBB0_6
LBB0_7:
	movaps	%xmm1, %xmm0
	popq	%rbp
	retq
LBB0_6:
	movss	(%rdi,%rdx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm3
	subq	%r8, %rdx
	movss	(%rdi,%rdx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm2
	mulss	%xmm3, %xmm2
	mulss	%xmm2, %xmm2
	addss	%xmm1, %xmm2
	movaps	%xmm2, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP_ORDER,4,2                   ## @LP_ORDER
	.no_dead_strip	_auto_correlation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auto_correlation
_auto_correlation:                      ; @auto_correlation
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
                                        ; kill: def $s0 killed $s0 def $q0
Lloh0:
	adrp	x8, _LP_ORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP_ORDER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	movi	d1, #0000000000000000
	cmp	w8, #10
	b.lt	LBB0_8
; %bb.1:
	sub	w8, w8, #2
	sxtw	x9, w1
	sub	x11, x8, #7
	cmp	x11, #16
	b.hs	LBB0_3
; %bb.2:
	movi	d1, #0000000000000000
	mov	w10, #7
	b	LBB0_6
LBB0_3:
	and	x12, x11, #0xfffffffffffffff0
	orr	x10, x12, #0x7
	dup.4s	v2, v0[0]
	neg	x13, x9, lsl #2
	movi	d1, #0000000000000000
	mov	x15, x0
	mov	x14, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	q3, [x15, #28]
	ldur	q4, [x15, #44]
	ldur	q5, [x15, #60]
	ldur	q6, [x15, #76]
	add	x16, x15, x13
	add	x15, x15, #64
	fsub.4s	v3, v3, v2
	fsub.4s	v4, v4, v2
	fsub.4s	v5, v5, v2
	fsub.4s	v6, v6, v2
	ldur	q7, [x16, #28]
	ldur	q16, [x16, #44]
	ldur	q17, [x16, #60]
	ldur	q18, [x16, #76]
	fsub.4s	v7, v7, v2
	fsub.4s	v16, v16, v2
	fsub.4s	v17, v17, v2
	fsub.4s	v18, v18, v2
	fmul.4s	v3, v3, v7
	fmul.4s	v4, v4, v16
	fmul.4s	v5, v5, v17
	fmul.4s	v6, v6, v18
	fmul.4s	v3, v3, v3
	mov	s7, v3[3]
	mov	s16, v3[2]
	mov	s17, v3[1]
	fmul.4s	v4, v4, v4
	mov	s18, v4[3]
	mov	s19, v4[2]
	mov	s20, v4[1]
	fmul.4s	v5, v5, v5
	mov	s21, v5[3]
	mov	s22, v5[2]
	mov	s23, v5[1]
	fmul.4s	v6, v6, v6
	mov	s24, v6[3]
	mov	s25, v6[2]
	mov	s26, v6[1]
	fadd	s1, s1, s3
	fadd	s1, s1, s17
	fadd	s1, s1, s16
	fadd	s1, s1, s7
	fadd	s1, s1, s4
	fadd	s1, s1, s20
	fadd	s1, s1, s19
	fadd	s1, s1, s18
	fadd	s1, s1, s5
	fadd	s1, s1, s23
	fadd	s1, s1, s22
	fadd	s1, s1, s21
	fadd	s1, s1, s6
	fadd	s1, s1, s26
	fadd	s1, s1, s25
	fadd	s1, s1, s24
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_6:
	neg	x9, x9, lsl #2
	sub	x8, x8, x10
	add	x10, x0, x10, lsl #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x10]
	ldr	s3, [x10, x9]
	fsub	s2, s2, s0
	fsub	s3, s3, s0
	fmul	s2, s2, s3
	fmadd	s1, s2, s2, s1
	add	x10, x10, #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	fmov	s0, s1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LP_ORDER,4,2                   ; @LP_ORDER
	.no_dead_strip	_auto_correlation
.subsections_via_symbols
