	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_up
_filter_up:                             ## @filter_up
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	imull	%r8d, %ecx
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.1:
	movl	%ecx, %r8d
	cmpl	$4, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %r9
	notq	%r9
	addq	%r8, %r9
	movq	%r8, %r10
	andq	$3, %r10
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rbx,8), %rax
	subq	(%rdx,%rbx,8), %rax
	movq	%rax, (%rdi,%rbx,8)
	incq	%rbx
	decq	%r10
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %r9
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rbx,8), %rax
	subq	(%rdx,%rbx,8), %rax
	movq	%rax, (%rdi,%rbx,8)
	movq	8(%rsi,%rbx,8), %rax
	subq	8(%rdx,%rbx,8), %rax
	movq	%rax, 8(%rdi,%rbx,8)
	movq	16(%rsi,%rbx,8), %rax
	subq	16(%rdx,%rbx,8), %rax
	movq	%rax, 16(%rdi,%rbx,8)
	movq	24(%rsi,%rbx,8), %rax
	subq	24(%rdx,%rbx,8), %rax
	movq	%rax, 24(%rdi,%rbx,8)
	addq	$4, %rbx
	cmpq	%rbx, %r8
	jne	LBB0_15
	jmp	LBB0_16
LBB0_3:
	movq	%rdi, %r9
	subq	%rsi, %r9
	xorl	%ebx, %ebx
	cmpq	$32, %r9
	jb	LBB0_12
## %bb.4:
	movq	%rdi, %rax
	subq	%rdx, %rax
	cmpq	$32, %rax
	jb	LBB0_12
## %bb.5:
	movl	%r8d, %ebx
	andl	$-4, %ebx
	leaq	-4(%rbx), %rax
	movq	%rax, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r10, %r11
	andq	$-2, %r11
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%r9,8), %xmm0
	movdqu	16(%rsi,%r9,8), %xmm1
	movdqu	(%rdx,%r9,8), %xmm2
	psubq	%xmm2, %xmm0
	movdqu	16(%rdx,%r9,8), %xmm2
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, (%rdi,%r9,8)
	movdqu	%xmm1, 16(%rdi,%r9,8)
	movdqu	32(%rsi,%r9,8), %xmm0
	movdqu	48(%rsi,%r9,8), %xmm1
	movdqu	32(%rdx,%r9,8), %xmm2
	psubq	%xmm2, %xmm0
	movdqu	48(%rdx,%r9,8), %xmm2
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, 32(%rdi,%r9,8)
	movdqu	%xmm1, 48(%rdi,%r9,8)
	addq	$8, %r9
	addq	$-2, %r11
	jne	LBB0_8
## %bb.9:
	testb	$1, %r10b
	je	LBB0_11
LBB0_10:
	movdqu	(%rsi,%r9,8), %xmm0
	movdqu	16(%rsi,%r9,8), %xmm1
	movdqu	(%rdx,%r9,8), %xmm2
	psubq	%xmm2, %xmm0
	movdqu	16(%rdx,%r9,8), %xmm2
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, (%rdi,%r9,8)
	movdqu	%xmm1, 16(%rdi,%r9,8)
LBB0_11:
	cmpq	%r8, %rbx
	jne	LBB0_12
LBB0_16:
	movl	%ecx, %esi
	popq	%rbx
	popq	%rbp
	jmp	_count_sad                      ## TAILCALL
LBB0_6:
	xorl	%r9d, %r9d
	testb	$1, %r10b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_up
_filter_up:                             ; @filter_up
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	mul	w1, w4, w3
	cbz	w1, LBB0_10
; %bb.1:
	cmp	w1, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_8
LBB0_3:
	mov	x9, #0
	sub	x10, x0, x8
	cmp	x10, #64
	b.lo	LBB0_8
; %bb.4:
	sub	x10, x0, x2
	cmp	x10, #64
	b.lo	LBB0_8
; %bb.5:
	and	x9, x1, #0xfffffff8
	add	x10, x0, #32
	add	x11, x8, #32
	add	x12, x2, #32
	mov	x13, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	sub.2d	v0, v0, v4
	sub.2d	v1, v1, v5
	sub.2d	v2, v2, v6
	sub.2d	v3, v3, v7
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x13, x13, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x1
	b.eq	LBB0_10
LBB0_8:
	lsl	x11, x9, #3
	add	x8, x8, x11
	add	x10, x2, x11
	add	x11, x0, x11
	sub	x9, x1, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8], #8
	ldr	x13, [x10], #8
	sub	x12, x12, x13
	str	x12, [x11], #8
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
                                        ; kill: def $w1 killed $w1 killed $x1
	b	_count_sad
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_up
.subsections_via_symbols
