	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pix_abs16x16_xy2_mvi
_pix_abs16x16_xy2_mvi:                  ## @pix_abs16x16_xy2_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_ldq
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	64(%rbx), %rdi
	callq	_ldq
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%r15, %r13
	testb	$7, %r15b
	je	LBB0_2
## %bb.1:
	callq	_uldq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	64(%r15), %rdi
	callq	_uldq
	movl	%eax, %r13d
	jmp	LBB0_3
LBB0_2:
	callq	_ldq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	64(%r15), %rdi
	callq	_ldq
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	leaq	128(%r15), %rdi
	callq	_ldq
	movl	%r14d, %r13d
	movl	-56(%rbp), %r14d                ## 4-byte Reload
LBB0_3:
	movslq	%r14d, %rcx
	shlq	$3, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r15, %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldq
	movl	%eax, %r12d
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r13), %rdi
	addq	$64, %rdi
	callq	_ldq
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	(%rbx,%r13), %rdi
	addq	$128, %rdi
	callq	_ldq
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_avg4
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_perr
	movq	%rax, %rbx
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movl	$-1, %esi
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movl	$-1, %ecx
	callq	_avg4
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_perr
	movslq	%r14d, %r14
	addq	%rbx, %r14
	addq	%rax, %r14
	addq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	-88(%rbp), %r12d                ## 4-byte Reload
	decl	%r12d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -84(%rbp)                ## 4-byte Spill
	movq	%rbx, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r13), %rdi
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_ldq
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	leaq	(%rbx,%r13), %rdi
	addq	$64, %rdi
	callq	_ldq
	leal	(%rbx,%r15), %ecx
	testb	$7, %cl
	movl	%r12d, -88(%rbp)                ## 4-byte Spill
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_uldq
	movl	%eax, %r12d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	addq	$64, %rdi
	callq	_uldq
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_7
LBB0_8:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pix_abs16x16_xy2_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_xy2_mvi
_pix_abs16x16_xy2_mvi:                  ; @pix_abs16x16_xy2_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	x21, x1
	mov	x0, x1
	bl	_ldq
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	add	x0, x21, #64
	bl	_ldq
	mov	x22, x0
	mov	x0, x24
	tst	x24, #0x7
	b.eq	LBB0_2
; %bb.1:
	bl	_uldq
	mov	x27, x0
	add	x0, x24, #64
	bl	_uldq
	mov	x28, x0
	b	LBB0_3
LBB0_2:
	bl	_ldq
	mov	x27, x0
	add	x0, x24, #64
	bl	_ldq
	mov	x28, x0
	add	x0, x24, #128
	bl	_ldq
LBB0_3:
	mov	x0, #0
	sbfiz	x23, x25, #3, #32
	mov	x20, x24
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_ldq
	mov	x25, x0
	add	x0, x22, #64
	bl	_ldq
	mov	x26, x0
	add	x0, x22, #128
	bl	_ldq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [sp, #28]                  ; 4-byte Folded Reload
	mov	x0, x27
	mov	x2, x25
	bl	_avg4
	mov	x1, x0
	mov	x0, x22
	bl	_perr
	mov	x22, x0
	mov	x0, x28
	mov	w1, #-1
	mov	x2, x26
	mov	w3, #-1
	bl	_avg4
	mov	x1, x0
	ldr	w0, [sp, #24]                   ; 4-byte Folded Reload
	bl	_perr
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x22, w8, sxtw
	add	x0, x8, x0
	add	x24, x24, x23
	add	x20, x20, x23
	add	x21, x21, x23
	ldp	w22, w8, [sp, #8]               ; 8-byte Folded Reload
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	mov	x27, x25
	mov	x28, x26
	subs	w19, w19, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	str	w22, [sp, #24]                  ; 4-byte Folded Spill
	add	x25, x21, x23
	add	x22, x24, x23
	mov	x0, x25
	bl	_ldq
	mov	x26, x0
	add	x0, x25, #64
	bl	_ldq
	add	w8, w23, w20
	tst	x8, #0x7
	stp	w0, w26, [sp, #8]               ; 8-byte Folded Spill
	mov	x0, x22
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_uldq
	mov	x25, x0
	add	x0, x22, #64
	bl	_uldq
	mov	x26, x0
	b	LBB0_5
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	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_xy2_mvi
.subsections_via_symbols
