	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_put_h264_qpel4_mc21_msa     ## -- Begin function ff_put_h264_qpel4_mc21_msa
	.p2align	4, 0x90
_ff_put_h264_qpel4_mc21_msa:            ## @ff_put_h264_qpel4_mc21_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	$104, %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	%rsi, %r14
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	_luma_mask_arr@GOTPCREL(%rip), %rax
	movl	$192, %edi
	addq	(%rax), %rdi
	movl	$16, %esi
	callq	_LD_SB3
	movl	$-327679, %edi                  ## imm = 0xFFFB0001
	callq	___msa_fill_w
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1310740, %edi                  ## imm = 0x140014
	callq	___msa_fill_w
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$131067, %edi                   ## imm = 0x1FFFB
	callq	___msa_fill_w
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(%r15,%r15), %eax
	xorl	$-2, %eax
	cltq
	leaq	(%r14,%rax,4), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_LD_SB5
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leal	(%r15,%r15,4), %eax
	cltq
	leaq	(%rbx,%rax,4), %rdi
	movl	%r15d, %esi
	callq	_LD_SB4
	callq	_XORI_B5_128_SB
	callq	_XORI_B4_128_SB
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r12
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r15
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r14
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r13
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r15, %rcx
	callq	_PCKOD_D2_SH
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r13, %rcx
	callq	_PCKOD_D2_SH
	movq	%r14, (%rsp)
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r15, %r9
	callq	_ILVR_H4_SH
	movq	%rbx, (%rsp)
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r13, %r9
	callq	_ILVR_H4_SH
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r8
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	___msa_pckev_h
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___msa_pckev_h
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$5, %edx
	callq	_SRARI_H2_SH
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$7, %edx
	callq	_SAT_SH2_SH
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	___msa_aver_s_h
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	___msa_aver_s_h
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_PCKEV_XORI128_UB
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%rsp)
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	callq	_ST_W4
	addq	$104, %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_put_h264_qpel4_mc21_msa     ; -- Begin function ff_put_h264_qpel4_mc21_msa
	.p2align	2
_ff_put_h264_qpel4_mc21_msa:            ; @ff_put_h264_qpel4_mc21_msa
	.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, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _luma_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _luma_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, #192
	mov	w1, #16
	bl	_LD_SB3
	mov	w0, #1
	movk	w0, #65531, lsl #16
	bl	___msa_fill_w
	mov	x21, x0
	mov	w0, #20
	movk	w0, #20, lsl #16
	bl	___msa_fill_w
	mov	x22, x0
	mov	w0, #65531
	movk	w0, #1, lsl #16
	bl	___msa_fill_w
	mov	x23, x0
	mov	w8, #-2
	sub	w8, w8, w19, lsl #1
	add	x24, x24, w8, sxtw #2
	mov	x0, x24
	mov	x1, x19
	bl	_LD_SB5
	add	w8, w19, w19, lsl #2
	add	x0, x24, w8, sxtw #2
	mov	x1, x19
	bl	_LD_SB4
	bl	_XORI_B5_128_SB
	bl	_XORI_B4_128_SB
	bl	_AVC_HORZ_FILTER_SH
	mov	x26, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x25, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x24, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x27, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x28, x0
	mov	x0, x26
	mov	x1, x26
	mov	x2, x25
	mov	x3, x25
	bl	_PCKOD_D2_SH
	mov	x0, x24
	mov	x1, x24
	mov	x2, x27
	mov	x3, x27
	bl	_PCKOD_D2_SH
	mov	x1, x26
	mov	x2, x25
	mov	x5, x25
	mov	x6, x24
	bl	_ILVR_H4_SH
	mov	x1, x24
	mov	x2, x27
	mov	x5, x27
	mov	x6, x28
	bl	_ILVR_H4_SH
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	bl	_AVC_DOT_SW3_SW
	mov	x26, x0
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	bl	_AVC_DOT_SW3_SW
	mov	x1, x26
	bl	___msa_pckev_h
	mov	x26, x0
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	bl	_AVC_DOT_SW3_SW
	mov	x27, x0
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	bl	_AVC_DOT_SW3_SW
	mov	x1, x27
	bl	___msa_pckev_h
	mov	x21, x0
	mov	x0, x25
	mov	x1, x24
	mov	w2, #5
	bl	_SRARI_H2_SH
	mov	x0, x25
	mov	x1, x24
	mov	w2, #7
	bl	_SAT_SH2_SH
	mov	x0, x26
	mov	x1, x25
	bl	___msa_aver_s_h
	mov	x22, x0
	mov	x0, x21
	mov	x1, x24
	bl	___msa_aver_s_h
	mov	x1, x0
	mov	x0, x22
	bl	_PCKEV_XORI128_UB
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	mov	x5, x20
	mov	x6, x19
	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
	b	_ST_W4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_luma_mask_arr,8,3              ; @luma_mask_arr
.subsections_via_symbols
