	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_h264_qpel8_mc10_msa     ## -- Begin function ff_avg_h264_qpel8_mc10_msa
	.p2align	4, 0x90
_ff_avg_h264_qpel8_mc10_msa:            ## @ff_avg_h264_qpel8_mc10_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$-5, %edi
	callq	___msa_ldi_b
	movl	%eax, %ebx
	movl	$20, %edi
	callq	___msa_ldi_b
	movl	%eax, %r12d
	movq	_luma_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$16, %esi
	callq	_LD_SB3
	addq	$-8, %r14
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_LD_SB8
	callq	_XORI_B8_128_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_HADD_SB4_SH
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	movl	%ebx, 8(%rsp)
	movl	%ebx, (%rsp)
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB4_SH
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	movl	%r12d, 8(%rsp)
	movl	%r12d, (%rsp)
	movl	%r12d, %r8d
	movl	%r12d, %r9d
	callq	_DPADD_SB4_SH
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_HADD_SB4_SH
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	movl	%ebx, 8(%rsp)
	movl	%ebx, (%rsp)
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	callq	_DPADD_SB4_SH
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	movl	%r12d, 8(%rsp)
	movl	%r12d, (%rsp)
	movl	%r12d, %r8d
	movl	%r12d, %r9d
	callq	_DPADD_SB4_SH
	movl	$2, 16(%rsp)
	callq	_SLDI_B4_SB
	movl	$2, 16(%rsp)
	callq	_SLDI_B4_SB
	callq	_PCKEV_D2_SB
	callq	_PCKEV_D2_SB
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	callq	_PCKEV_B2_SB
	callq	_PCKEV_B2_SB
	callq	___msa_aver_s_b
	movl	%eax, %r15d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	___msa_aver_s_b
	movl	%eax, %r14d
	callq	___msa_aver_s_b
	movl	%eax, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	___msa_aver_s_b
	movl	%eax, %r13d
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_XORI_B4_128_SB
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_LD4
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	leal	(,%r12,4), %eax
	cltq
	leaq	(%r15,%rax,4), %rdi
	movl	%r12d, %esi
	callq	_LD4
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_AVER_UB2_UB
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_AVER_UB2_UB
	movl	%r12d, 56(%rsp)
	movq	%r15, 48(%rsp)
	movl	$1, 40(%rsp)
	movl	$0, 32(%rsp)
	movl	$1, 24(%rsp)
	movl	$0, 16(%rsp)
	movl	$1, 8(%rsp)
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D8
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_luma_mask_arr,8,3              ## @luma_mask_arr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_h264_qpel8_mc10_msa     ; -- Begin function ff_avg_h264_qpel8_mc10_msa
	.p2align	2
_ff_avg_h264_qpel8_mc10_msa:            ; @ff_avg_h264_qpel8_mc10_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x23, x1
	mov	x20, x0
	mov	w0, #-5
	bl	___msa_ldi_b
	mov	x22, x0
	mov	w0, #20
	bl	___msa_ldi_b
	mov	x21, x0
Lloh0:
	adrp	x8, _luma_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _luma_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	mov	w1, #16
	bl	_LD_SB3
	sub	x0, x23, #8
	mov	x1, x19
	bl	_LD_SB8
	bl	_XORI_B8_128_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_HADD_SB4_SH
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	mov	x4, x22
	mov	x5, x22
	mov	x6, x22
	mov	x7, x22
	bl	_DPADD_SB4_SH
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	mov	x4, x21
	mov	x5, x21
	mov	x6, x21
	mov	x7, x21
	bl	_DPADD_SB4_SH
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_HADD_SB4_SH
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	mov	x4, x22
	mov	x5, x22
	mov	x6, x22
	mov	x7, x22
	bl	_DPADD_SB4_SH
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	mov	x4, x21
	mov	x5, x21
	mov	x6, x21
	mov	x7, x21
	bl	_DPADD_SB4_SH
	mov	w21, #2
	str	w21, [sp]
	bl	_SLDI_B4_SB
	str	w21, [sp]
	bl	_SLDI_B4_SB
	bl	_PCKEV_D2_SB
	bl	_PCKEV_D2_SB
	mov	w4, #5
	bl	_SRARI_H4_SH
	mov	w4, #5
	bl	_SRARI_H4_SH
	mov	w4, #7
	bl	_SAT_SH4_SH
	mov	w4, #7
	bl	_SAT_SH4_SH
	bl	_PCKEV_B2_SB
	bl	_PCKEV_B2_SB
	bl	___msa_aver_s_b
	mov	x21, x0
	bl	___msa_aver_s_b
	mov	x22, x0
	bl	___msa_aver_s_b
	mov	x23, x0
	bl	___msa_aver_s_b
	mov	x24, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_XORI_B4_128_SB
	mov	x0, x20
	mov	x1, x19
	bl	_LD4
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	lsl	w8, w19, #2
	add	x0, x20, w8, sxtw #2
	mov	x1, x19
	bl	_LD4
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x0, x21
	mov	x1, #0
	mov	x2, x22
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_AVER_UB2_UB
	mov	x0, x23
	mov	x1, #0
	mov	x2, x24
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_AVER_UB2_UB
	str	w19, [sp, #24]
	mov	x8, #4294967296
	stp	x8, x20, [sp, #8]
	str	x8, [sp]
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	mov	w7, #1
	bl	_ST_D8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_luma_mask_arr,8,3              ; @luma_mask_arr
.subsections_via_symbols
