	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_put_h264_qpel8_mc22_msa     ## -- Begin function ff_put_h264_qpel8_mc22_msa
	.p2align	4, 0x90
_ff_put_h264_qpel8_mc22_msa:            ## @ff_put_h264_qpel8_mc22_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, %ebx
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	$-327679, %edi                  ## imm = 0xFFFB0001
	callq	___msa_fill_w
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$1310740, %edi                  ## imm = 0x140014
	callq	___msa_fill_w
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$131067, %edi                   ## imm = 0x1FFFB
	callq	___msa_fill_w
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_luma_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$16, %esi
	callq	_LD_SB3
	leal	(%rbx,%rbx), %eax
	xorl	$-2, %eax
	cltq
	leaq	(%r14,%rax,4), %r14
	subq	$16, %rsp
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_LD_SB5
	addq	$16, %rsp
	callq	_XORI_B5_128_SB
	leal	(%rbx,%rbx,4), %eax
	cltq
	leaq	(%r14,%rax,4), %r14
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r13
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r12
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r15
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	%ebx, %esi
	callq	_LD_SB4
	callq	_XORI_B4_128_SB
	leal	(,%rbx,4), %eax
	cltq
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	(%r14,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	subq	$32, %rsp
	movq	%r12, %rdi
	movq	%r13, %rbx
	movq	%r13, %rsi
	movq	%r15, %r14
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%r12, %r15
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r8
	movq	%r14, %r9
	pushq	%r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	pushq	%r12
	callq	_ILVR_H4_SH
	addq	$16, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	pushq	%r13
	pushq	%r12
	callq	_ILVL_H4_SH
	addq	$16, %rsp
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	movq	%rbx, %r9
	pushq	%r13
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	pushq	%r14
	callq	_ILVR_H4_SH
	addq	$16, %rsp
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	movq	%rbx, %r9
	pushq	%r13
	pushq	%r14
	callq	_ILVL_H4_SH
	addq	$48, %rsp
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rcx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r14
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	___msa_pckev_h
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r15
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	___msa_pckev_h
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r14
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	___msa_pckev_h
	movq	%rax, %r15
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r14
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	___msa_pckev_h
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_PCKEV_XORI128_UB
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_PCKEV_XORI128_UB
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	pushq	%rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	pushq	%r14
	callq	_ST_D4
	addq	$16, %rsp
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leaq	(%r14,%rax,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SB4
	callq	_XORI_B4_128_SB
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r14
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r15
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %rbx
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r12
	subq	$32, %rsp
	movq	%r14, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r15, %r9
	pushq	%rbx
	pushq	%rax
	callq	_ILVR_H4_SH
	addq	$16, %rsp
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r15, %r9
	pushq	%rbx
	pushq	%r12
	callq	_ILVL_H4_SH
	addq	$48, %rsp
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r12
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	___msa_pckev_h
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r12
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	___msa_pckev_h
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r12
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	___msa_pckev_h
	movq	%rax, %r12
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %r13
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_AVC_DOT_SW3_SW
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	___msa_pckev_h
	movq	%rax, %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_PCKEV_XORI128_UB
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_PCKEV_XORI128_UB
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_ST_D4
	addq	$120, %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_qpel8_mc22_msa     ; -- Begin function ff_put_h264_qpel8_mc22_msa
	.p2align	2
_ff_put_h264_qpel8_mc22_msa:            ; @ff_put_h264_qpel8_mc22_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	mov	w0, #1
	movk	w0, #65531, lsl #16
	bl	___msa_fill_w
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	mov	w0, #20
	movk	w0, #20, lsl #16
	bl	___msa_fill_w
	mov	x21, x0
	mov	w0, #65531
	movk	w0, #1, lsl #16
	bl	___msa_fill_w
	mov	x22, 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
	mov	w8, #-2
	sub	w8, w8, w19, lsl #1
	add	x24, x24, w8, sxtw #2
	mov	x0, x24
	mov	x1, x19
	bl	_LD_SB5
	bl	_XORI_B5_128_SB
	mov	w8, #20
	smaddl	x24, w19, w8, x24
	str	x19, [sp, #48]                  ; 8-byte Folded Spill
	bl	_AVC_HORZ_FILTER_SH
	mov	x20, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x28, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x25, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x23, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x26, x0
	mov	x0, x24
	mov	x1, x19
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	sbfiz	x8, x19, #4, #32
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	add	x8, x24, x8
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	bl	_AVC_HORZ_FILTER_SH
	mov	x19, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x24, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x27, x0
	bl	_AVC_HORZ_FILTER_SH
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	mov	x0, x28
	mov	x1, x20
	mov	x2, x25
	mov	x3, x28
	mov	x4, x23
	mov	x5, x25
	mov	x6, x26
	mov	x7, x23
	bl	_ILVR_H4_SH
	mov	x0, x28
	mov	x1, x20
	mov	x2, x25
	mov	x3, x28
	mov	x4, x23
	mov	x5, x25
	mov	x6, x26
	mov	x7, x23
	bl	_ILVL_H4_SH
	mov	x0, x19
	mov	x1, x26
	mov	x2, x24
	mov	x3, x19
	mov	x4, x27
	mov	x5, x24
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	mov	x6, x28
	mov	x7, x27
	bl	_ILVR_H4_SH
	mov	x0, x19
	mov	x1, x26
	mov	x2, x24
	mov	x3, x19
	mov	x4, x27
	mov	x5, x24
	mov	x6, x28
	mov	x7, x27
	bl	_ILVL_H4_SH
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x19, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x1, x19
	bl	___msa_pckev_h
	mov	x26, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x19, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x1, x19
	bl	___msa_pckev_h
	mov	x19, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x23, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x1, x23
	bl	___msa_pckev_h
	mov	x23, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x24, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x1, x24
	bl	___msa_pckev_h
	mov	x24, x0
	mov	x0, x26
	mov	x1, x19
	bl	_PCKEV_XORI128_UB
	mov	x19, x0
	mov	x0, x23
	mov	x1, x24
	bl	_PCKEV_XORI128_UB
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	ldr	x19, [sp, #72]                  ; 8-byte Folded Reload
	mov	x6, x19
	ldr	x27, [sp, #48]                  ; 8-byte Folded Reload
	mov	x7, x27
	bl	_ST_D4
	ldp	x8, x0, [sp, #56]               ; 16-byte Folded Reload
	add	x23, x19, x8
	mov	x1, x27
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	bl	_AVC_HORZ_FILTER_SH
	mov	x19, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x24, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x25, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x26, x0
	mov	x0, x19
	mov	x1, x28
	mov	x2, x24
	mov	x3, x19
	mov	x4, x25
	mov	x5, x24
	mov	x6, x26
	mov	x7, x25
	bl	_ILVR_H4_SH
	mov	x0, x19
	mov	x1, x28
	mov	x2, x24
	mov	x3, x19
	mov	x4, x25
	mov	x5, x24
	mov	x6, x26
	mov	x7, x25
	bl	_ILVL_H4_SH
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x19, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x1, x19
	bl	___msa_pckev_h
	mov	x24, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x19, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x1, x19
	bl	___msa_pckev_h
	mov	x19, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x25, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x1, x25
	bl	___msa_pckev_h
	mov	x25, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x26, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_AVC_DOT_SW3_SW
	mov	x1, x26
	bl	___msa_pckev_h
	mov	x20, x0
	mov	x0, x24
	mov	x1, x19
	bl	_PCKEV_XORI128_UB
	mov	x19, x0
	mov	x0, x25
	mov	x1, x20
	bl	_PCKEV_XORI128_UB
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x23
	mov	x7, x27
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_ST_D4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_luma_mask_arr,8,3              ; @luma_mask_arr
.subsections_via_symbols
