	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pix_abs16x16_y2_mvi
_pix_abs16x16_y2_mvi:                   ## @pix_abs16x16_y2_mvi
	.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	%r8d, %r15d
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	testb	$7, %bl
	je	LBB0_3
## %bb.1:
	leaq	32(%rbx), %rdi
	callq	_ldq_u
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ldq_u
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_extql
	movl	%eax, %r13d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_extqh
	orl	%r13d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_extql
	movl	%eax, %r14d
	leaq	64(%rbx), %rdi
	callq	_ldq_u
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_extqh
	movl	%eax, %r13d
	orl	%r14d, %r13d
	movslq	%r12d, %rax
	leaq	(%rbx,%rax,4), %r12
	shlq	$2, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldq
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	32(%rax), %rdi
	callq	_ldq
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	32(%r12), %rdi
	callq	_ldq_u
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ldq_u
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_extql
	movl	%eax, %r15d
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_extqh
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_extql
	movl	%eax, %r15d
	leaq	64(%r12), %rdi
	callq	_ldq_u
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_extqh
	movl	%eax, %r13d
	orl	%r15d, %r13d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_avg2
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_perr
	movq	%rax, %r15
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_avg2
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_perr
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ebx, %rbx
	addq	%r15, %rbx
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	addq	%rax, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r12
	addq	%rax, %rcx
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	decl	%r15d
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_ldq
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	32(%rbx), %rdi
	callq	_ldq
	movl	%eax, %r14d
	movslq	%r12d, %rcx
	leaq	(%rbx,%rcx,4), %r12
	shlq	$2, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_ldq
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	32(%r13), %rdi
	callq	_ldq
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_ldq
	movl	%eax, %r15d
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	32(%r12), %rdi
	callq	_ldq
	movl	%eax, %r14d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_avg2
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	%eax, %esi
	callq	_perr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_avg2
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_perr
	movslq	%ebx, %rbx
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	%rax, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r12
	addq	%rax, %r13
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	decl	%r15d
	jne	LBB0_4
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pix_abs16x16_y2_mvi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pix_abs16x16_y2_mvi
_pix_abs16x16_y2_mvi:                   ; @pix_abs16x16_y2_mvi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x4
	mov	x25, x3
	mov	x24, x2
	mov	x26, x1
	tst	x2, #0x7
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	b.eq	LBB0_3
; %bb.1:
	add	x0, x24, #32
	bl	_ldq_u
	mov	x21, x0
	mov	x0, x24
	bl	_ldq_u
	mov	x1, x24
	bl	_extql
	mov	x22, x0
	mov	x0, x21
	mov	x1, x24
	bl	_extqh
	orr	w22, w0, w22
	mov	x0, x21
	mov	x1, x24
	bl	_extql
	mov	x23, x0
	add	x0, x24, #64
	bl	_ldq_u
	mov	x1, x24
	bl	_extqh
	mov	x20, #0
	mov	x21, #0
	orr	w23, w0, w23
	sbfiz	x8, x25, #2, #32
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x8, x24, x8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x26, x20
	mov	x0, x24
	bl	_ldq
	mov	x25, x0
	add	x0, x24, #32
	bl	_ldq
	mov	x24, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x8, x20
	add	x0, x26, #32
	bl	_ldq_u
	mov	x27, x0
	mov	x0, x26
	bl	_ldq_u
	mov	x1, x26
	bl	_extql
	mov	x28, x0
	mov	x0, x27
	mov	x1, x26
	bl	_extqh
	orr	w28, w0, w28
	mov	x0, x27
	mov	x1, x26
	bl	_extql
	mov	x27, x0
	add	x0, x26, #64
	bl	_ldq_u
	mov	x1, x26
	bl	_extqh
	orr	w26, w0, w27
	mov	x0, x22
	mov	x1, x28
	bl	_avg2
	mov	x1, x0
	mov	x0, x25
	bl	_perr
	mov	x22, x0
	mov	x0, x23
	mov	x1, x26
	bl	_avg2
	mov	x1, x0
	mov	x0, x24
	bl	_perr
	add	x8, x22, w21, sxtw
	add	x21, x8, x0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	mov	x23, x26
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	mov	x22, x28
	subs	w19, w19, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_3:
	mov	x0, x24
	bl	_ldq
	mov	x23, x0
	add	x0, x24, #32
	bl	_ldq
	mov	x22, x0
	mov	x20, #0
	mov	x21, #0
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	sbfiz	x28, x25, #2, #32
	add	x8, x24, x28
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x26, x20
	mov	x0, x24
	bl	_ldq
	mov	x25, x0
	add	x0, x24, #32
	bl	_ldq
	mov	x24, x0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x26, x8, x20
	mov	x0, x26
	bl	_ldq
	mov	x27, x0
	add	x0, x26, #32
	bl	_ldq
	mov	x26, x0
	mov	x0, x23
	mov	x1, x27
	bl	_avg2
	mov	x1, x0
	mov	x0, x25
	bl	_perr
	mov	x23, x0
	mov	x0, x22
	mov	x1, x26
	bl	_avg2
	mov	x1, x0
	mov	x0, x24
	bl	_perr
	add	x8, x23, w21, sxtw
	add	x21, x8, x0
	add	x20, x20, x28
	mov	x23, x27
	mov	x22, x26
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	subs	w19, w19, #1
	b.ne	LBB0_4
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pix_abs16x16_y2_mvi
.subsections_via_symbols
