	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chroma_4mv_motion
_chroma_4mv_motion:                     ## @chroma_4mv_motion
	.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	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	16(%rbp), %r14d
	movl	%r9d, %edi
	callq	_ff_h263_round_chroma
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_ff_h263_round_chroma
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %r14d
	andl	$2, %r14d
	movl	%ebx, %r15d
	andl	$1, %r15d
	sarl	%ebx
	sarl	%eax
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leal	(%rbx,%rcx,8), %edi
	leal	(%rax,%rdx,8), %r12d
	movl	8(%r13), %edx
	sarl	%edx
	movl	$-8, %esi
	callq	_av_clip
	movl	%eax, %ebx
	movl	8(%r13), %eax
	movl	12(%r13), %edx
	sarl	%eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	cmovel	%ecx, %r15d
	sarl	%edx
	movl	%r12d, %edi
	movl	$-8, %esi
	callq	_av_clip
                                        ## kill: def $eax killed $eax def $rax
	movl	12(%r13), %ecx
	sarl	%ecx
	cmpl	%ecx, %eax
	movl	$0, %ecx
	cmovel	%ecx, %r14d
	movl	20(%r13), %edi
	leal	(%r14,%r15), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	16(%r13), %ecx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	imull	%eax, %ecx
	addl	%ebx, %ecx
	movslq	%ecx, %rax
	shlq	$2, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r12
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addq	%rax, %r12
	sarl	%edi
	subl	%r15d, %edi
	addl	$-7, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %ebx
	jae	LBB0_3
## %bb.1:
	movl	24(%r13), %edi
	sarl	%edi
	shrl	%r14d
	subl	%r14d, %edi
	addl	$-7, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movb	$1, %r15b
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jae	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_3:
	movq	32(%r13), %rdi
	movl	16(%r13), %ecx
	movl	20(%r13), %eax
	sarl	%eax
	movl	24(%r13), %ebx
	sarl	%ebx
	movq	%r12, %rsi
	movl	%ecx, %edx
	movl	$9, %r8d
	movl	$9, %r9d
	pushq	%rbx
	pushq	%rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	*40(%r13)
	addq	$32, %rsp
	movq	32(%r13), %r12
	xorl	%r15d, %r15d
LBB0_4:
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	16(%r13), %edx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	$8, %ecx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	callq	*(%r12,%r14,8)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	addq	16(%rax), %rsi
	testb	%r15b, %r15b
	jne	LBB0_6
## %bb.5:
	movq	32(%r13), %rdi
	movl	16(%r13), %ecx
	movl	20(%r13), %eax
	sarl	%eax
	movq	%rbx, %r10
	movl	24(%r13), %ebx
	sarl	%ebx
	movl	%ecx, %edx
	movl	$9, %r8d
	movl	$9, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	*40(%r13)
	addq	$32, %rsp
	movq	32(%r13), %rsi
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%r12,%r14,8), %rax
	movl	16(%r13), %edx
	movl	$8, %ecx
	addq	$72, %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
.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
_chroma_4mv_motion:                     ; @chroma_4mv_motion
	.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	x23, x6
	mov	x20, x4
	mov	x22, x3
	stp	x2, x1, [sp, #16]               ; 16-byte Folded Spill
	mov	x21, x0
	mov	x0, x5
	bl	_ff_h263_round_chroma
	mov	x25, x0
	mov	x0, x23
	bl	_ff_h263_round_chroma
	ubfiz	w19, w0, #1, #1
	and	w26, w25, #0x1
	ldp	w8, w9, [x21]
	lsl	w8, w8, #3
	add	w8, w8, w25, asr #1
	lsl	w9, w9, #3
	add	w25, w9, w0, asr #1
	ldr	w9, [x21, #8]
	asr	w2, w9, #1
	mov	x0, x8
	mov	w1, #-8
	bl	_av_clip
	mov	x23, x0
	ldp	w8, w9, [x21, #8]
	cmp	w0, w8, asr #1
	csel	w24, wzr, w26, eq
	asr	w2, w9, #1
	mov	x0, x25
	mov	w1, #-8
	bl	_av_clip
	mov	x25, x0
	ldp	w8, w9, [x21, #12]
	cmp	w0, w8, asr #1
	csel	w19, wzr, w19, eq
	orr	w27, w19, w24
	madd	w8, w9, w0, w23
	ldr	x9, [x22, #8]
	sxtw	x28, w8
	add	x26, x9, w8, sxtw #2
	ldr	w8, [x21, #20]
	asr	w8, w8, #1
	sub	w8, w8, w24
	sub	w0, w8, #7
	mov	w1, #0
	bl	_FFMAX
	cmp	w23, w0
	b.hs	LBB0_3
; %bb.1:
	ldr	w8, [x21, #24]
	asr	w8, w8, #1
	sub	w8, w8, w19, lsr #1
	sub	w0, w8, #7
	mov	w1, #0
	bl	_FFMAX
	cmp	w25, w0
	b.hs	LBB0_3
; %bb.2:
	mov	w19, #1
	b	LBB0_4
LBB0_3:
	ldp	x0, x8, [x21, #32]
	ldp	w2, w9, [x21, #16]
	asr	w9, w9, #1
	ldr	w10, [x21, #24]
	asr	w10, w10, #1
	stp	w9, w10, [sp]
	mov	x1, x26
	mov	x3, x2
	mov	w4, #9
	mov	w5, #9
	mov	x6, x23
	mov	x7, x25
	blr	x8
	mov	w19, #0
	ldr	x26, [x21, #32]
LBB0_4:
	ldr	x8, [x20, w27, uxtw #3]
	ldr	w2, [x21, #16]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x26
	mov	w3, #8
	blr	x8
	ldr	x8, [x22, #16]
	add	x1, x8, x28, lsl #2
	tbnz	w19, #0, LBB0_6
; %bb.5:
	ldp	x0, x8, [x21, #32]
	ldp	w2, w9, [x21, #16]
	asr	w9, w9, #1
	ldr	w10, [x21, #24]
	asr	w10, w10, #1
	stp	w9, w10, [sp]
	mov	x3, x2
	mov	w4, #9
	mov	w5, #9
	mov	x6, x23
	mov	x7, x25
	blr	x8
	ldr	x1, [x21, #32]
LBB0_6:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x4, [x20, x27, lsl #3]
	ldr	w2, [x21, #16]
	mov	w3, #8
	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
	br	x4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_chroma_4mv_motion
.subsections_via_symbols
