	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pitch_sharpening
_pitch_sharpening:                      ## @pitch_sharpening
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SUBFR_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	%edi, %eax
	jle	LBB0_17
## %bb.1:
	movslq	%edi, %r11
	movq	%rax, %r9
	subq	%r11, %r9
	movq	%r11, %r10
	cmpq	$8, %r9
	jb	LBB0_12
## %bb.2:
	leaq	(%rsi,%r11,4), %rcx
	leaq	(%rsi,%r9,4), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_4
## %bb.3:
	leaq	(%rsi,%rax,4), %rcx
	movq	%r11, %r10
	cmpq	%rsi, %rcx
	ja	LBB0_12
LBB0_4:
	movq	%r9, %r10
	andq	$-8, %r10
	movaps	%xmm0, %xmm1
	shufps	$0, %xmm0, %xmm1                ## xmm1 = xmm1[0,0],xmm0[0,0]
	leaq	-8(%r10), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%r8, %rdx
	andq	$-2, %rdx
	leaq	(%rsi,%r11,4), %rcx
	addq	$48, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rsi,%rdi,4), %xmm2
	movups	16(%rsi,%rdi,4), %xmm3
	mulps	%xmm1, %xmm2
	movups	-48(%rcx,%rdi,4), %xmm4
	addps	%xmm2, %xmm4
	movups	-32(%rcx,%rdi,4), %xmm2
	movups	-16(%rcx,%rdi,4), %xmm5
	movups	(%rcx,%rdi,4), %xmm6
	mulps	%xmm1, %xmm3
	addps	%xmm2, %xmm3
	movups	%xmm4, -48(%rcx,%rdi,4)
	movups	%xmm3, -32(%rcx,%rdi,4)
	movups	32(%rsi,%rdi,4), %xmm2
	movups	48(%rsi,%rdi,4), %xmm3
	mulps	%xmm1, %xmm2
	addps	%xmm5, %xmm2
	mulps	%xmm1, %xmm3
	addps	%xmm6, %xmm3
	movups	%xmm2, -16(%rcx,%rdi,4)
	movups	%xmm3, (%rcx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rdx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	leaq	(%rdi,%r11), %rcx
	movups	(%rsi,%rdi,4), %xmm2
	movups	16(%rsi,%rdi,4), %xmm3
	movups	(%rsi,%rcx,4), %xmm4
	movups	16(%rsi,%rcx,4), %xmm5
	mulps	%xmm1, %xmm2
	addps	%xmm4, %xmm2
	mulps	%xmm1, %xmm3
	addps	%xmm5, %xmm3
	movups	%xmm2, (%rsi,%rcx,4)
	movups	%xmm3, 16(%rsi,%rcx,4)
LBB0_10:
	cmpq	%r10, %r9
	je	LBB0_17
## %bb.11:
	addq	%r11, %r10
LBB0_12:
	movl	%eax, %edx
	subl	%r10d, %edx
	movq	%r10, %rcx
	notq	%rcx
	testb	$1, %dl
	je	LBB0_14
## %bb.13:
	movq	%r10, %rdx
	subq	%r11, %rdx
	movss	(%rsi,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	addss	(%rsi,%r10,4), %xmm1
	movss	%xmm1, (%rsi,%r10,4)
	incq	%r10
LBB0_14:
	addq	%rax, %rcx
	je	LBB0_17
## %bb.15:
	subq	%r10, %rax
	leaq	(%rsi,%r10,4), %rcx
	addq	$4, %rcx
	shlq	$2, %r11
	negq	%r11
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movss	-4(%rcx,%r11), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	addss	-4(%rcx), %xmm1
	movss	%xmm1, -4(%rcx)
	movss	(%rcx,%r11), %xmm1              ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	addss	(%rcx), %xmm1
	movss	%xmm1, (%rcx)
	addq	$8, %rcx
	addq	$-2, %rax
	jne	LBB0_16
LBB0_17:
	popq	%rbp
	retq
LBB0_5:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SUBFR_SIZE,4,2                 ## @SUBFR_SIZE
	.no_dead_strip	_pitch_sharpening
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pitch_sharpening
_pitch_sharpening:                      ; @pitch_sharpening
	.cfi_startproc
; %bb.0:
                                        ; kill: def $s0 killed $s0 def $q0
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _SUBFR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUBFR_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	w8, w0
	b.le	LBB0_9
; %bb.1:
	sxtw	x9, w0
	sub	x11, x8, x9
	cmp	x11, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, x9
	b	LBB0_7
LBB0_3:
	add	x10, x1, x9, lsl #2
	add	x12, x1, x8, lsl #2
	add	x13, x1, x11, lsl #2
	cmp	x10, x13
	ccmp	x12, x1, #0, lo
	mov	x10, x9
	b.hi	LBB0_7
; %bb.4:
	and	x12, x11, #0xfffffffffffffff0
	add	x10, x12, x9
	dup.4s	v1, v0[0]
	lsl	x13, x9, #2
	add	x14, x1, #32
	mov	x15, x12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x14, #-32]
	ldp	q4, q5, [x14]
	add	x16, x14, x13
	ldp	q6, q7, [x16, #-32]
	ldp	q16, q17, [x16]
	fmla.4s	v6, v2, v1
	fmla.4s	v7, v3, v1
	fmla.4s	v16, v4, v1
	fmla.4s	v17, v5, v1
	stp	q6, q7, [x16, #-32]
	stp	q16, q17, [x16]
	add	x14, x14, #64
	subs	x15, x15, #16
	b.ne	LBB0_5
; %bb.6:
	cmp	x11, x12
	b.eq	LBB0_9
LBB0_7:
	add	x11, x1, x10, lsl #2
	sub	x8, x8, x10
	neg	x9, x9, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x11, x9]
	ldr	s2, [x11]
	fmadd	s1, s0, s1, s2
	str	s1, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUBFR_SIZE,4,2                 ; @SUBFR_SIZE
	.no_dead_strip	_pitch_sharpening
.subsections_via_symbols
