	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_autocorr
_celt_autocorr:                         ## @celt_autocorr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, %r13d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%r9d, %r12d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	subl	%r8d, %r12d
	movq	_PITCH_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	movl	%r13d, %ecx
	movq	%r14, %r10
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	%r10d, %r14d
	testl	%ecx, %ecx
	movq	%r10, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.1:
	testl	%r10d, %r10d
	jle	LBB0_3
## %bb.2:
	leaq	(,%r14,4), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	callq	_memcpy
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r10                 ## 8-byte Reload
LBB0_3:
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.4:
	movl	%ecx, %r8d
	cmpl	$1, %ecx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jne	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %r13
LBB0_7:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_12
LBB0_8:
	movl	%r8d, %edx
	andl	$-2, %edx
	leal	-2(%r10), %esi
	xorl	%eax, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	(%rbx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%r13,%rax,4)
	leal	1(%rsi), %edi
	movslq	%edi, %rdi
	mulss	(%rbx,%rdi,4), %xmm0
	movss	%xmm0, (%r13,%rdi,4)
	movss	4(%rcx,%rax,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rbx,%rax,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	%xmm1, 4(%r13,%rax,4)
	movslq	%esi, %rsi
	mulss	(%rbx,%rsi,4), %xmm0
	movss	%xmm0, (%r13,%rsi,4)
	addq	$2, %rax
	addl	$-2, %esi
	cmpq	%rax, %rdx
	jne	LBB0_9
LBB0_10:
	testb	$1, %r8b
	je	LBB0_12
## %bb.11:
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	(%rbx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%r13,%rax,4)
	notl	%eax
	addl	%r10d, %eax
	cltq
	mulss	(%rbx,%rax,4), %xmm0
	movss	%xmm0, (%r13,%rax,4)
LBB0_12:
	leal	1(%r9), %ebx
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_celt_pitch_xcorr
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	testl	%r11d, %r11d
	js	LBB0_21
## %bb.13:
	movslq	%r12d, %r8
	movslq	-80(%rbp), %r9                  ## 4-byte Folded Reload
	movl	%ebx, %r10d
	xorl	%esi, %esi
	movl	%r11d, %edx
	movq	%r13, %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	addss	(%r15,%rsi,4), %xmm0
	movss	%xmm0, (%r15,%rsi,4)
	incq	%rsi
	incl	%r12d
	addq	$-4, %rbx
	addb	$3, %dl
	cmpq	%r10, %rsi
	je	LBB0_21
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movzbl	%dl, %edx
	andl	$3, %edx
	leaq	(%rsi,%r8), %rax
	xorps	%xmm0, %xmm0
	cmpq	%r9, %rax
	jge	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r11d, %edi
	subl	%esi, %edi
	movl	%esi, %ecx
	notl	%ecx
	addl	%r11d, %ecx
	movslq	%r12d, %rax
	xorps	%xmm0, %xmm0
	testb	$3, %dil
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, %edi
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%r13,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	(%rbx,%rax,4), %xmm1
	addss	%xmm1, %xmm0
	incq	%rax
	decl	%edi
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$3, %ecx
	jb	LBB0_14
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%r13,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	4(%r13,%rax,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	mulss	(%rbx,%rax,4), %xmm1
	mulss	4(%rbx,%rax,4), %xmm2
	addss	%xmm0, %xmm1
	movss	8(%r13,%rax,4), %xmm3           ## xmm3 = mem[0],zero,zero,zero
	mulss	8(%rbx,%rax,4), %xmm3
	addss	%xmm1, %xmm2
	movss	12(%r13,%rax,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	mulss	12(%rbx,%rax,4), %xmm0
	addss	%xmm2, %xmm3
	addss	%xmm3, %xmm0
	addq	$4, %rax
	cmpl	%eax, %r14d
	jne	LBB0_20
	jmp	LBB0_14
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PITCH_BUF_SIZE,4,2             ## @PITCH_BUF_SIZE
	.no_dead_strip	_celt_autocorr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_autocorr
_celt_autocorr:                         ; @celt_autocorr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x5
	mov	x20, x4
	mov	x26, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	sub	w23, w5, w4
Lloh3:
	adrp	x8, _PITCH_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PITCH_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	cbz	w3, LBB0_7
; %bb.1:
	subs	w27, w19, #1
	b.lt	LBB0_3
; %bb.2:
	mov	w8, w19
	lsl	x2, x8, #2
	mov	x0, x25
	mov	x1, x22
	bl	_memcpy
LBB0_3:
	cmp	w26, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x8, #0
	mov	w9, w26
	lsl	x9, x9, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x22, x8]
	ldr	s1, [x24, x8]
	fmul	s0, s0, s1
	str	s0, [x25, x8]
	sbfiz	x10, x27, #2, #32
	ldr	s0, [x22, x10]
	fmul	s0, s1, s0
	str	s0, [x25, x10]
	sub	w27, w27, #1
	add	x8, x8, #4
	cmp	x9, x8
	b.ne	LBB0_5
LBB0_6:
	mov	x22, x25
LBB0_7:
	add	w24, w20, #1
	mov	x0, x22
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	bl	_celt_pitch_xcorr
	tbnz	w20, #31, LBB0_18
; %bb.8:
	mov	x8, #0
	mov	x9, #0
	mov	x10, x23
	sxtw	x10, w10
	sxtw	x11, w19
	sub	w12, w20, #1
	add	x13, x22, #32
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	lsl	x14, x9, #2
	ldr	s1, [x21, x14]
	fadd	s0, s0, s1
	str	s0, [x21, x14]
	add	x9, x9, #1
	add	w23, w23, #1
	sub	w12, w12, #1
	sub	x8, x8, #1
	cmp	x9, x24
	b.eq	LBB0_18
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	movi	d0, #0000000000000000
	add	x14, x9, x10
	cmp	x14, x11
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mvn	w14, w9
	add	w0, w14, w20
	sxtw	x14, w23
	cmp	w0, #15
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	movi	d0, #0000000000000000
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w15, w12
	add	x15, x15, #1
	and	x15, x15, #0x1fffffff0
	add	x16, x8, w23, sxtw
	add	x16, x13, x16, lsl #2
	add	x17, x13, w23, sxtw #2
	add	x0, x0, #1
	and	x1, x0, #0x1fffffff0
	add	x14, x1, x14
	movi	d0, #0000000000000000
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q1, q2, [x17, #-32]
	ldp	q3, q4, [x17], #64
	ldp	q5, q6, [x16, #-32]
	ldp	q7, q16, [x16], #64
	fmul.4s	v1, v1, v5
	mov	s5, v1[3]
	mov	s17, v1[2]
	mov	s18, v1[1]
	fmul.4s	v2, v2, v6
	mov	s6, v2[3]
	mov	s19, v2[2]
	mov	s20, v2[1]
	fmul.4s	v3, v3, v7
	mov	s7, v3[3]
	mov	s21, v3[2]
	mov	s22, v3[1]
	fmul.4s	v4, v4, v16
	mov	s16, v4[3]
	mov	s23, v4[2]
	mov	s24, v4[1]
	fadd	s0, s0, s1
	fadd	s0, s0, s18
	fadd	s0, s0, s17
	fadd	s0, s0, s5
	fadd	s0, s0, s2
	fadd	s0, s0, s20
	fadd	s0, s0, s19
	fadd	s0, s0, s6
	fadd	s0, s0, s3
	fadd	s0, s0, s22
	fadd	s0, s0, s21
	fadd	s0, s0, s7
	fadd	s0, s0, s4
	fadd	s0, s0, s24
	fadd	s0, s0, s23
	fadd	s0, s0, s16
	subs	x15, x15, #16
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x0, x1
	b.eq	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x15, x14, x8
	add	x15, x22, x15, lsl #2
	add	x16, x22, x14, lsl #2
	sub	w14, w19, w14
LBB0_17:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x16], #4
	ldr	s2, [x15], #4
	fmadd	s0, s1, s2, s0
	subs	w14, w14, #1
	b.ne	LBB0_17
	b	LBB0_9
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PITCH_BUF_SIZE,4,2             ; @PITCH_BUF_SIZE
	.no_dead_strip	_celt_autocorr
.subsections_via_symbols
