	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chroma_4mv_motion_lowres
_chroma_4mv_motion_lowres:              ## @chroma_4mv_motion_lowres
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movl	16(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	48(%rdi), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	$3, %esi
	callq	_FFMIN
	movl	$8, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	$2, %r14d
	shll	%cl, %r14d
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	leal	1(%rbx), %r12d
	movl	(%r15), %edx
	movl	%r12d, %ecx
	sarl	%cl, %edx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edx
	sarl	%cl, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	decl	%r14d
	cmpq	$0, 40(%r15)
	je	LBB0_1
## %bb.2:
	movl	%r13d, %eax
	shrl	$31, %eax
	addl	%r13d, %eax
	sarl	%eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ebx
	shrl	$31, %ebx
	addl	%edx, %ebx
	sarl	%ebx
	movl	%eax, %r13d
	jmp	LBB0_3
LBB0_1:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_3:
	movl	%r13d, %edi
	callq	_ff_h263_round_chroma
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_ff_h263_round_chroma
	movl	%eax, %esi
	andl	%r14d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %eax
	movl	%r13d, %ebx
	movl	%r12d, %ecx
	sarl	%cl, %ebx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %eax
	addl	%eax, %ebx
	movl	12(%r15), %eax
	imull	%edx, %eax
	sarl	%cl, %esi
	addl	%eax, %esi
	movl	16(%r15), %eax
	imull	%esi, %eax
	addl	%ebx, %eax
	movslq	%eax, %rcx
	shlq	$2, %rcx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	addq	%rcx, %r12
	xorl	%eax, %eax
	andl	%r14d, %r13d
	movq	%rsi, %r14
	setne	%al
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %edi
	subl	%edx, %edi
	subl	%eax, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %ebx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	ja	LBB0_6
## %bb.4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %edi
	subl	-48(%rbp), %edi                 ## 4-byte Folded Reload
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	adcl	$-1, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	cmpl	%eax, %r14d
	jbe	LBB0_5
LBB0_6:
	movq	24(%r15), %rdi
	movl	16(%r15), %ecx
	movq	%r12, %rsi
	movl	%ecx, %edx
	movl	$9, %r8d
	movl	$9, %r9d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	*32(%r15)
	addq	$32, %rsp
	movq	24(%r15), %r12
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_5:
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_7:
	movl	%r13d, %ebx
	shll	$2, %ebx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	sarl	%cl, %ebx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	shll	$2, %r9d
                                        ## kill: def $cl killed $cl killed $rcx
	sarl	%cl, %r9d
	movslq	-76(%rbp), %r14                 ## 4-byte Folded Reload
	movl	16(%r15), %edx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	-136(%rbp), %r13                ## 8-byte Reload
	callq	*(%r13,%r14,8)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	addq	16(%rax), %rsi
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_9
## %bb.8:
	movq	24(%r15), %rdi
	movl	16(%r15), %ecx
	movl	%ecx, %edx
	movl	$9, %r8d
	movl	$9, %r9d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	*32(%r15)
	addq	$32, %rsp
	movq	24(%r15), %rsi
LBB0_9:
	movq	(%r13,%r14,8), %rax
	movl	16(%r15), %edx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_chroma_4mv_motion_lowres
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chroma_4mv_motion_lowres
_chroma_4mv_motion_lowres:              ; @chroma_4mv_motion_lowres
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x6
	mov	x24, x5
	stp	x2, x4, [sp, #48]               ; 16-byte Folded Spill
	mov	x20, x3
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	mov	x21, x0
	ldr	x8, [x0, #48]
	ldr	w25, [x8]
	mov	x0, x25
	mov	w1, #3
	bl	_FFMIN
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	w8, #8
	lsr	w22, w8, w25
	mov	w8, #2
	lsl	w8, w8, w25
	sub	w23, w8, #1
	add	w26, w25, #1
	ldp	w8, w9, [x21]
	asr	w27, w8, w26
	asr	w28, w9, w26
	ldr	x8, [x21, #40]
	cmp	w24, #0
	cinc	w9, w24, lt
	asr	w9, w9, #1
	cmp	w19, #0
	cinc	w10, w19, lt
	asr	w10, w10, #1
	cmp	x8, #0
	csel	w19, w19, w10, eq
	csel	w0, w24, w9, eq
	bl	_ff_h263_round_chroma
	mov	x24, x0
	mov	x0, x19
	bl	_ff_h263_round_chroma
	ands	w8, w24, w23
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	and	w11, w0, w23
	asr	w8, w24, w26
	ldp	w9, w10, [x21, #8]
	madd	w23, w9, w22, w8
	asr	w8, w0, w26
	madd	w24, w10, w22, w8
	ldr	w8, [x21, #16]
	madd	w8, w24, w8, w23
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x9, [x20, #8]
	mov	x20, x27
	mov	x27, x11
	sxtw	x10, w8
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	add	x19, x9, w8, sxtw #2
	cset	w8, ne
	sub	w9, w20, w22
	sub	w0, w9, w8
	mov	w1, #0
	bl	_FFMAX
	cmp	w23, w0
	str	w24, [sp, #8]                   ; 4-byte Folded Spill
	b.hi	LBB0_2
; %bb.1:
	cmp	w27, #0
	cset	w8, ne
	sub	w9, w28, w22
	sub	w0, w9, w8
	mov	w1, #0
	bl	_FFMAX
	cmp	w24, w0
	b.ls	LBB0_3
LBB0_2:
	ldp	x0, x8, [x21, #24]
	ldr	w2, [x21, #16]
	stp	w20, w28, [sp]
	mov	x1, x19
	mov	x3, x2
	mov	w4, #9
	mov	w5, #9
	mov	x6, x23
	mov	x7, x24
	blr	x8
	mov	w26, #0
	ldr	x19, [x21, #24]
	b	LBB0_4
LBB0_3:
	mov	w26, #1
LBB0_4:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	lsl	w8, w8, #2
	asr	w24, w8, w25
	lsl	w8, w27, #2
	asr	w25, w8, w25
	ldp	x9, x0, [sp, #24]               ; 16-byte Folded Reload
	sxtw	x27, w9
	ldr	w2, [x21, #16]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, w9, sxtw #3]
	mov	x1, x19
	mov	x3, x22
	mov	x4, x24
	mov	x5, x25
	blr	x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x1, x8, x9, lsl #2
	tbnz	w26, #0, LBB0_6
; %bb.5:
	ldp	x0, x8, [x21, #24]
	ldr	w2, [x21, #16]
	stp	w20, w28, [sp]
	mov	x3, x2
	mov	w4, #9
	mov	w5, #9
	mov	x6, x23
	ldr	w7, [sp, #8]                    ; 4-byte Folded Reload
	blr	x8
	ldr	x1, [x21, #24]
LBB0_6:
	ldp	x0, x8, [sp, #48]               ; 16-byte Folded Reload
	ldr	x6, [x8, x27, lsl #3]
	ldr	w2, [x21, #16]
	mov	x3, x22
	mov	x4, x24
	mov	x5, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	br	x6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_chroma_4mv_motion_lowres
.subsections_via_symbols
