	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pix_abs16x16_x2_mvi
_pix_abs16x16_x2_mvi:                   ## @pix_abs16x16_x2_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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%r14d, %eax
	andl	$7, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	cmpl	$7, -80(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.2:
	movslq	%ecx, %rax
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ldq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	32(%r15), %rdi
	callq	_ldq
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_ldq_u
	movl	%eax, %r12d
	leaq	32(%r14), %rdi
	callq	_ldq_u
	movl	%eax, %r13d
	leaq	64(%r14), %rdi
	callq	_ldq_u
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	movl	$7, %esi
	callq	_extql
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	$7, %esi
	callq	_extqh
	orl	%eax, %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_avg2
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	$7, %esi
	callq	_extql
	movl	%eax, %ebx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	$7, %esi
	callq	_extqh
	orl	%eax, %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_avg2
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_perr
	movl	%eax, %r13d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_perr
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	addl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	addl	%eax, %r13d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r14
	addq	%rax, %r15
	movl	%r13d, %eax
	decl	%r8d
	jne	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movslq	%ecx, %rax
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ldq
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leaq	32(%r15), %rdi
	callq	_ldq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_ldq
	movl	%eax, %r13d
	leaq	32(%r14), %rdi
	callq	_ldq
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_avg2
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_avg2
	movl	%eax, %r12d
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_perr
	movl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_perr
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	addl	%ebx, %r13d
	addl	%eax, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r14
	addq	%rax, %r15
	movl	%r13d, %ebx
	decl	%r8d
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %rax
	shlq	$2, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ldq
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	32(%r15), %rdi
	callq	_ldq
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_ldq_u
	movl	%eax, %r15d
	leaq	32(%r14), %rdi
	callq	_ldq_u
	movl	%eax, %ebx
	leaq	64(%r14), %rdi
	callq	_ldq_u
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_extql
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%ebx, %r14d
	movl	%r13d, %esi
	callq	_extqh
	orl	%eax, %r12d
	movl	%r15d, %edi
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_extql
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_extqh
	orl	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_avg2
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	movl	%r14d, %ebx
	movl	%r13d, %esi
	callq	_extql
	movl	%eax, %r12d
	movl	-100(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_extqh
	orl	%eax, %r12d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_extql
	movl	%eax, %ebx
	movl	%r14d, %edi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	callq	_extqh
	orl	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_avg2
	movl	%eax, %ebx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_perr
	movl	%eax, %r13d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_perr
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	addl	%eax, %r13d
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %r14
	addq	%rax, %r15
	movl	%r13d, %eax
	decl	%r8d
	jne	LBB0_7
LBB0_8:
	movl	%r13d, %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_x2_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_x2_mvi
_pix_abs16x16_x2_mvi:                   ; @pix_abs16x16_x2_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
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x28, x2
	mov	x27, x1
	ands	w23, w28, #0x7
	b.eq	LBB0_4
; %bb.1:
	cmp	w23, #7
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
	b.ne	LBB0_6
; %bb.2:
	mov	x20, #0
	mov	w22, #0
	sbfiz	x21, x3, #2, #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x28, x20
	add	x24, x27, x20
	mov	x0, x24
	bl	_ldq
	mov	x23, x0
	add	x0, x24, #32
	bl	_ldq
	mov	x24, x0
	mov	x0, x25
	bl	_ldq_u
	mov	x26, x0
	add	x0, x25, #32
	bl	_ldq_u
	mov	x27, x0
	add	x0, x25, #64
	bl	_ldq_u
	mov	x25, x0
	mov	x0, x26
	mov	w1, #7
	bl	_extql
	mov	x26, x0
	mov	x0, x27
	mov	w1, #7
	bl	_extqh
	orr	w0, w0, w26
	mov	x1, x27
	bl	_avg2
	mov	x26, x0
	mov	x0, x27
	mov	w1, #7
	bl	_extql
	mov	x27, x0
	mov	x0, x25
	mov	w1, #7
	bl	_extqh
	orr	w0, w0, w27
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	mov	x1, x25
	bl	_avg2
	mov	x25, x0
	mov	x0, x23
	mov	x1, x26
	bl	_perr
	mov	x23, x0
	mov	x0, x24
	mov	x1, x25
	bl	_perr
	add	w8, w23, w22
	add	w22, w8, w0
	add	x20, x20, x21
	subs	w19, w19, #1
	b.ne	LBB0_3
	b	LBB0_8
LBB0_4:
	mov	x20, #0
	mov	w22, #0
                                        ; kill: def $w3 killed $w3 killed $x3 def $x3
	sbfiz	x21, x3, #2, #32
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x28, x20
	add	x24, x27, x20
	mov	x0, x24
	bl	_ldq
	mov	x25, x0
	add	x0, x24, #32
	bl	_ldq
	mov	x24, x0
	mov	x0, x23
	bl	_ldq
	mov	x26, x0
	add	x0, x23, #32
	bl	_ldq
	mov	x23, x0
	mov	x0, x26
	bl	_avg2
	mov	x26, x0
	mov	x0, x23
	bl	_avg2
	mov	x23, x0
	mov	x0, x25
	mov	x1, x26
	bl	_perr
	mov	x25, x0
	mov	x0, x24
	mov	x1, x23
	bl	_perr
	add	w8, w25, w22
	add	w22, w8, w0
	add	x20, x20, x21
	subs	w19, w19, #1
	b.ne	LBB0_5
	b	LBB0_8
LBB0_6:
	mov	x25, #0
	mov	w22, #0
	add	w24, w23, #1
                                        ; kill: def $w3 killed $w3 killed $x3 def $x3
	sbfiz	x8, x3, #2, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x28, x25
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x26, x8, x25
	mov	x0, x26
	bl	_ldq
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	add	x0, x26, #32
	bl	_ldq
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x27
	bl	_ldq_u
	mov	x26, x28
	mov	x28, x0
	add	x0, x27, #32
	bl	_ldq_u
	mov	x21, x0
	add	x0, x27, #64
	bl	_ldq_u
	mov	x27, x0
	mov	x0, x28
	mov	x1, x23
	bl	_extql
	mov	x20, x0
	mov	x0, x21
	mov	x1, x23
	bl	_extqh
	orr	w20, w0, w20
	mov	x0, x28
	mov	x1, x24
	bl	_extql
	mov	x28, x0
	mov	x0, x21
	mov	x1, x24
	bl	_extqh
	orr	w1, w0, w28
	mov	x0, x20
	bl	_avg2
	mov	x20, x0
	mov	x0, x21
	mov	x1, x23
	bl	_extql
	mov	x28, x0
	mov	x0, x27
	mov	x1, x23
	bl	_extqh
	orr	w28, w0, w28
	mov	x0, x21
	mov	x1, x24
	bl	_extql
	mov	x21, x0
	mov	x0, x27
	mov	x1, x24
	bl	_extqh
	orr	w1, w0, w21
	mov	x0, x28
	mov	x28, x26
	bl	_avg2
	mov	x21, x0
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	mov	x1, x20
	bl	_perr
	mov	x20, x0
	ldr	w0, [sp, #16]                   ; 4-byte Folded Reload
	mov	x1, x21
	bl	_perr
	add	w8, w20, w22
	add	w22, w8, w0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x25, x25, x8
	subs	w19, w19, #1
	b.ne	LBB0_7
LBB0_8:
	mov	x0, x22
	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_x2_mvi
.subsections_via_symbols
