	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_put_h264_qpel16_mc21_msa    ## -- Begin function ff_put_h264_qpel16_mc21_msa
	.p2align	4, 0x90
_ff_put_h264_qpel16_mc21_msa:           ## @ff_put_h264_qpel16_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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leal	(%r12,%r12), %eax
	movslq	%eax, %r15
	leaq	(,%r15,4), %rax
	negq	%rax
	leaq	(%rsi,%rax), %r13
	addq	$-8, %r13
	movl	$-327679, %edi                  ## imm = 0xFFFB0001
	callq	___msa_fill_w
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	$1310740, %edi                  ## imm = 0x140014
	callq	___msa_fill_w
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	$131067, %edi                   ## imm = 0x1FFFB
	callq	___msa_fill_w
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	_luma_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$16, %esi
	callq	_LD_SB3
	leal	(%r12,%r12,4), %eax
	cltq
	leal	(,%r12,4), %ecx
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	subq	%r15, %rax
	leaq	(%r14,%rax,4), %rax
	addq	$-8, %rax
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	subq	$16, %rsp
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rax, %r15
	callq	_LD_SB5
	addq	$16, %rsp
	callq	_XORI_B5_128_SB
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r12
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r13
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %rbx
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r14
	callq	_AVC_HORZ_FILTER_SH
	movl	$-4, %edx
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r15, %rcx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, -208(%rbp)                ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %r15
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	callq	_XORI_B4_128_SB
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	subq	$32, %rsp
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	movq	%rbx, %r9
	pushq	%r14
	pushq	%r15
	callq	_ILVR_H4_SH
	addq	$16, %rsp
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r14, -216(%rbp)                ## 8-byte Spill
	movq	%r14, %r8
	movq	%rbx, %r9
	pushq	%r14
	pushq	%r15
	callq	_ILVL_H4_SH
	addq	$16, %rsp
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r12, %r9
	pushq	%rbx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	pushq	%r13
	callq	_ILVR_H4_SH
	addq	$16, %rsp
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	pushq	%rbx
	pushq	%r13
	callq	_ILVL_H4_SH
	addq	$48, %rsp
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-152(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	movq	-144(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r12
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	___msa_pckev_h
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r12
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	___msa_pckev_h
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r12
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	___msa_pckev_h
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r12
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	___msa_pckev_h
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	movl	$5, %esi
	callq	___msa_srari_h
	movq	%rax, %rbx
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	movl	$5, %esi
	callq	___msa_srari_h
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	$5, %esi
	callq	___msa_srari_h
	movq	%rax, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$5, %esi
	callq	___msa_srari_h
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rax, %rcx
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	___msa_aver_s_h
	movq	%rax, %r15
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	___msa_aver_s_h
	movq	%rax, %r14
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	callq	___msa_aver_s_h
	movq	%rax, %r13
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	callq	___msa_aver_s_h
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_PCKEV_XORI128_UB
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_PCKEV_XORI128_UB
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_ST_D4
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	addq	$16, %rsp
	movq	-136(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %rbx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	addq	%rax, %rcx
	movq	-184(%rbp), %r12                ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	%edx
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-128(%rbp), %r13                ## 8-byte Reload
	addq	$32, %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	$32, %rbx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	$32, %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	subl	$1, %ecx
	jae	LBB0_1
## %bb.4:
	addq	$184, %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_qpel16_mc21_msa    ; -- Begin function ff_put_h264_qpel16_mc21_msa
	.p2align	2
_ff_put_h264_qpel16_mc21_msa:           ; @ff_put_h264_qpel16_mc21_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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	x25, x2
	mov	x19, x1
	mov	x22, x0
	lsl	w20, w2, #1
	sub	x8, x1, w20, sxtw #2
	sub	x21, x8, #8
	mov	w0, #1
	movk	w0, #65531, lsl #16
	bl	___msa_fill_w
	mov	x24, x0
	mov	w0, #20
	movk	w0, #20, lsl #16
	bl	___msa_fill_w
	mov	x26, x0
	mov	w0, #65531
	movk	w0, #1, lsl #16
	bl	___msa_fill_w
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
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
	lsl	w8, w25, #2
	mov	x23, x25
	add	w9, w8, w25
	sxtw	x9, w9
	sbfiz	x8, x8, #2, #32
	stp	x8, x26, [sp, #56]              ; 16-byte Folded Spill
	sub	x8, x9, w20, sxtw
	add	x8, x19, x8, lsl #2
	sub	x9, x8, #8
	mov	w8, #1
	str	w25, [sp, #52]                  ; 4-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	str	x9, [sp, #88]                   ; 8-byte Folded Spill
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	str	x21, [sp, #40]                  ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x23
	bl	_LD_SB5
	bl	_XORI_B5_128_SB
	bl	_AVC_HORZ_FILTER_SH
	mov	x20, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x27, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x28, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x21, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x19, x0
	mov	x8, #0
	mov	w9, #-4
	str	x22, [sp, #80]                  ; 8-byte Folded Spill
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stur	w9, [x29, #-108]                ; 4-byte Folded Spill
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	add	x8, x22, x8
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	add	x0, x8, x9
	mov	x22, x19
	mov	x1, x23
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	bl	_AVC_HORZ_FILTER_SH
	str	x0, [sp, #96]                   ; 8-byte Folded Spill
	bl	_AVC_HORZ_FILTER_SH
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	bl	_AVC_HORZ_FILTER_SH
	mov	x23, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x25, x0
	mov	x0, x27
	mov	x1, x20
	mov	x2, x28
	mov	x3, x27
	mov	x4, x21
	mov	x5, x28
	mov	x6, x19
	mov	x7, x21
	bl	_ILVR_H4_SH
	mov	x0, x27
	mov	x1, x20
	mov	x2, x28
	mov	x3, x27
	mov	x4, x21
	mov	x5, x28
	mov	x6, x19
	mov	x7, x21
	bl	_ILVL_H4_SH
	ldr	x19, [sp, #96]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x22
	ldur	x20, [x29, #-104]               ; 8-byte Folded Reload
	mov	x2, x20
	mov	x3, x19
	stp	x23, x25, [sp, #120]            ; 16-byte Folded Spill
	mov	x4, x23
	mov	x5, x20
	mov	x27, x25
	mov	x6, x25
	mov	x7, x23
	bl	_ILVR_H4_SH
	mov	x0, x19
	mov	x1, x22
	mov	x25, x22
	mov	x2, x20
	mov	x3, x19
	mov	x22, x19
	mov	x4, x23
	mov	x5, x20
	mov	x6, x27
	mov	x7, x23
	bl	_ILVL_H4_SH
	mov	x3, x24
	mov	x4, x26
	ldr	x19, [sp, #72]                  ; 8-byte Folded Reload
	mov	x5, x19
	bl	_AVC_DOT_SW3_SW
	mov	x20, x0
	mov	x3, x24
	mov	x4, x26
	mov	x5, x19
	bl	_AVC_DOT_SW3_SW
	mov	x1, x20
	bl	___msa_pckev_h
	str	x0, [sp, #112]                  ; 8-byte Folded Spill
	mov	x3, x24
	mov	x4, x26
	mov	x5, x19
	bl	_AVC_DOT_SW3_SW
	mov	x20, x0
	mov	x3, x24
	mov	x4, x26
	mov	x5, x19
	bl	_AVC_DOT_SW3_SW
	mov	x1, x20
	bl	___msa_pckev_h
	str	x0, [sp, #104]                  ; 8-byte Folded Spill
	mov	x3, x24
	mov	x4, x26
	mov	x5, x19
	bl	_AVC_DOT_SW3_SW
	mov	x20, x0
	mov	x3, x24
	mov	x4, x26
	mov	x5, x19
	bl	_AVC_DOT_SW3_SW
	mov	x1, x20
	bl	___msa_pckev_h
	mov	x20, x0
	mov	x3, x24
	mov	x4, x26
	mov	x5, x19
	bl	_AVC_DOT_SW3_SW
	mov	x27, x0
	mov	x3, x24
	mov	x4, x26
	mov	x5, x19
	bl	_AVC_DOT_SW3_SW
	mov	x1, x27
	bl	___msa_pckev_h
	mov	x19, x0
	mov	x0, x28
	mov	w1, #5
	bl	___msa_srari_h
	mov	x28, x0
	mov	x0, x21
	mov	w1, #5
	bl	___msa_srari_h
	mov	x21, x0
	mov	x0, x25
	mov	w1, #5
	bl	___msa_srari_h
	mov	x23, x0
	mov	x0, x22
	mov	w1, #5
	bl	___msa_srari_h
	mov	x27, x24
	mov	x24, x0
	mov	x0, x28
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	mov	w4, #7
	bl	_SAT_SH4_SH
	ldr	x0, [sp, #112]                  ; 8-byte Folded Reload
	mov	x1, x28
	bl	___msa_aver_s_h
	mov	x28, x0
	ldr	x0, [sp, #104]                  ; 8-byte Folded Reload
	mov	x1, x21
	bl	___msa_aver_s_h
	mov	x21, x0
	mov	x0, x20
	mov	x1, x23
	bl	___msa_aver_s_h
	mov	x20, x0
	mov	x0, x19
	mov	x1, x24
	mov	x24, x27
	bl	___msa_aver_s_h
	mov	x23, x0
	mov	x0, x28
	mov	x1, x21
	bl	_PCKEV_XORI128_UB
	mov	x21, x0
	mov	x0, x20
	mov	x1, x23
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	bl	_PCKEV_XORI128_UB
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	ldur	x6, [x29, #-120]                ; 8-byte Folded Reload
	mov	x23, x20
	mov	x7, x20
	bl	_ST_D4
	ldur	w9, [x29, #-108]                ; 4-byte Folded Reload
	ldp	x28, x8, [x29, #-104]           ; 16-byte Folded Reload
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	add	x8, x8, x10
	mov	x20, x25
	mov	x27, x22
	ldr	x22, [sp, #80]                  ; 8-byte Folded Reload
	ldp	x21, x19, [sp, #120]            ; 16-byte Folded Reload
	adds	w9, w9, #1
	b.lo	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x21, [sp, #40]                  ; 8-byte Folded Reload
	add	x21, x21, #32
	add	x22, x22, #32
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	sub	w8, w10, #1
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	add	x9, x9, #32
	cbnz	w10, LBB0_1
; %bb.4:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_luma_mask_arr,8,3              ; @luma_mask_arr
.subsections_via_symbols
