	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_h264_chroma_mc2_msa     ## -- Begin function ff_avg_h264_chroma_mc2_msa
	.p2align	4, 0x90
_ff_avg_h264_chroma_mc2_msa:            ## @ff_avg_h264_chroma_mc2_msa
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r9d, %eax
	notl	%eax
	shrl	$31, %eax
	xorl	%r9d, %r9d
	cmpl	$8, %ebx
	cmovgel	%r9d, %eax
	movl	%r8d, %r15d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	cmpl	$8, %r8d
	cmovael	%r9d, %eax
	movl	%eax, %edi
	callq	_av_assert2
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movl	$8, %eax
	movl	$8, %r8d
	subl	%r15d, %r8d
	subl	%ebx, %eax
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r9d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_avc_chroma_hv_and_aver_dst_2w_msa
	addq	$24, %rsp
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.14:
	movl	$8, %r8d
	subl	%r15d, %r8d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movq	-48(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avc_chroma_hz_and_aver_dst_2w_msa ## TAILCALL
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.15:
	movl	$8, %r8d
	subl	%ebx, %r8d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movq	-48(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avc_chroma_vt_and_aver_dst_2w_msa ## TAILCALL
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movslq	%r13d, %r9
	testb	$1, %al
	jne	LBB0_8
## %bb.7:
	movl	%eax, %r10d
	jmp	LBB0_9
LBB0_8:
	leal	-1(%rax), %r10d
	movl	(%r14), %edx
	movl	(%r12), %esi
	movl	4(%r12), %edi
	addl	%esi, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, (%r12)
	movl	4(%r14), %edx
	addl	%edi, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, 4(%r12)
	leaq	(%r14,%r9,4), %r14
	leaq	(%r12,%r9,4), %r12
LBB0_9:
	cmpl	$1, %eax
	je	LBB0_12
## %bb.10:
	leaq	(,%r9,8), %r8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rsi), %rdi
	leaq	(%r14,%rsi), %rbx
	movl	(%r14,%rsi), %edx
	movl	(%r12,%rsi), %eax
	movl	4(%r12,%rsi), %ecx
	addl	%edx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, (%r12,%rsi)
	movl	4(%r14,%rsi), %eax
	addl	%ecx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, 4(%r12,%rsi)
	movl	(%rbx,%r9,4), %eax
	movl	(%rdi,%r9,4), %ecx
	movl	4(%rdi,%r9,4), %edx
	addl	%ecx, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, (%rdi,%r9,4)
	movl	4(%rbx,%r9,4), %eax
	addl	%edx, %eax
	incl	%eax
	sarl	%eax
	addq	%r8, %rsi
	movl	%eax, 4(%rdi,%r9,4)
	addl	$-2, %r10d
	jne	LBB0_11
LBB0_12:
	addq	$8, %rsp
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_h264_chroma_mc2_msa     ; -- Begin function ff_avg_h264_chroma_mc2_msa
	.p2align	2
_ff_avg_h264_chroma_mc2_msa:            ; @ff_avg_h264_chroma_mc2_msa
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x5
	mov	x24, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	cmp	w5, #8
	ccmp	w4, #8, #2, lt
	mvn	w8, w5
	lsr	w8, w8, #31
	csel	w0, w8, wzr, lo
	bl	_av_assert2
	cbz	w24, LBB0_3
; %bb.1:
	cbz	w23, LBB0_3
; %bb.2:
	mov	w8, #8
	sub	w4, w8, w24
	sub	w6, w8, w23
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	mov	x5, x23
	mov	x7, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_avc_chroma_hv_and_aver_dst_2w_msa
LBB0_3:
	cbz	w24, LBB0_5
; %bb.4:
	mov	w8, #8
	sub	w4, w8, w24
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	mov	x5, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_avc_chroma_hz_and_aver_dst_2w_msa
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
	mov	w8, #8
	sub	w4, w8, w23
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x5, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_avc_chroma_vt_and_aver_dst_2w_msa
LBB0_7:
	cbz	w19, LBB0_10
; %bb.8:
	mov	x8, #0
	sbfiz	x9, x22, #2, #32
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x20, x8
	add	x11, x21, x8
	ldr	w12, [x11]
	ldp	w13, w14, [x10]
	add	w12, w13, w12
	add	w12, w12, #1
	asr	w12, w12, #1
	str	w12, [x10]
	ldr	w11, [x11, #4]
	add	w11, w14, w11
	add	w11, w11, #1
	asr	w11, w11, #1
	str	w11, [x10, #4]
	add	x8, x8, x9
	subs	w19, w19, #1
	b.ne	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
