	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_bilin_16v_msa           ## -- Begin function ff_avg_bilin_16v_msa
	.p2align	4, 0x90
_ff_avg_bilin_16v_msa:                  ## @ff_avg_bilin_16v_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movslq	16(%rbp), %rax
	movq	_vp9_bilinear_filters_msa@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-8(%rcx,%rax,8), %rdi
	callq	_LD_UH
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	___msa_splati_h
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_LD_UB
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$4, %r12d
	jb	LBB0_3
## %bb.1:
	sarl	$2, %r12d
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r15,%rax,4), %r15
	shll	$2, %eax
	cltq
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_UB4
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_UB4
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ILVR_B2_UB
	movq	%r14, %rsi
	callq	_ILVL_B2_UB
	movq	%r13, %rdx
	movq	%r13, %rcx
	callq	_DOTP_UB2_UH
	movl	$7, %edx
	callq	_SRARI_H2_UH
	movl	$7, %edx
	callq	_SAT_UH2_UH
	movq	%rbx, %rcx
	callq	_PCKEV_AVG_ST_UB
	callq	_ILVR_B2_UB
	callq	_ILVL_B2_UB
	movq	%r13, %rdx
	movq	%r13, %rcx
	callq	_DOTP_UB2_UH
	movl	$7, %edx
	callq	_SRARI_H2_UH
	movl	$7, %edx
	callq	_SAT_UH2_UH
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	%r14, %rbx
	movq	%rbx, %rcx
	callq	_PCKEV_AVG_ST_UB
	movq	%r13, %rdx
	movq	%r13, %rcx
	callq	_DOTP_UB2_UH
	movl	$7, %edx
	callq	_SRARI_H2_UH
	movl	$7, %edx
	callq	_SAT_UH2_UH
	addq	%r14, %rbx
	movq	%rbx, %rcx
	callq	_PCKEV_AVG_ST_UB
	movq	%r13, %rdx
	movq	%r13, %rcx
	callq	_DOTP_UB2_UH
	movl	$7, %edx
	callq	_SRARI_H2_UH
	movl	$7, %edx
	callq	_SAT_UH2_UH
	addq	%r14, %rbx
	movq	%rbx, %rcx
	callq	_PCKEV_AVG_ST_UB
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	addq	%r14, %rbx
	decl	%r12d
	jne	LBB0_2
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vp9_bilinear_filters_msa,8,3   ## @vp9_bilinear_filters_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_bilin_16v_msa           ; -- Begin function ff_avg_bilin_16v_msa
	.p2align	2
_ff_avg_bilin_16v_msa:                  ; @ff_avg_bilin_16v_msa
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _vp9_bilinear_filters_msa@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vp9_bilinear_filters_msa@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	w9, w6, #1
	ldr	x0, [x8, w9, sxtw #3]
	bl	_LD_UH
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #0
	bl	___msa_splati_h
	mov	x21, x0
	mov	x0, x23
	bl	_LD_UB
	cmp	w25, #4
	b.lo	LBB0_3
; %bb.1:
	mov	x22, x0
	asr	w25, w25, #2
	lsl	w8, w19, #2
	sbfiz	x26, x8, #2, #32
	sbfiz	x27, x20, #2, #32
	add	x23, x23, w19, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w25, #1
	mov	x0, x23
	mov	x1, x19
	bl	_LD_UB4
	mov	x0, x24
	mov	x1, x20
	bl	_LD_UB4
	mov	x1, x22
	bl	_ILVR_B2_UB
	mov	x1, x22
	bl	_ILVL_B2_UB
	mov	x2, x21
	mov	x3, x21
	bl	_DOTP_UB2_UH
	mov	w2, #7
	bl	_SRARI_H2_UH
	mov	w2, #7
	bl	_SAT_UH2_UH
	mov	x3, x24
	bl	_PCKEV_AVG_ST_UB
	bl	_ILVR_B2_UB
	bl	_ILVL_B2_UB
	mov	x2, x21
	mov	x3, x21
	bl	_DOTP_UB2_UH
	mov	w2, #7
	bl	_SRARI_H2_UH
	mov	w2, #7
	bl	_SAT_UH2_UH
	add	x24, x24, x27
	mov	x3, x24
	bl	_PCKEV_AVG_ST_UB
	mov	x2, x21
	mov	x3, x21
	bl	_DOTP_UB2_UH
	mov	w2, #7
	bl	_SRARI_H2_UH
	mov	w2, #7
	bl	_SAT_UH2_UH
	add	x24, x24, x27
	mov	x3, x24
	bl	_PCKEV_AVG_ST_UB
	mov	x2, x21
	mov	x3, x21
	bl	_DOTP_UB2_UH
	mov	w2, #7
	bl	_SRARI_H2_UH
	mov	w2, #7
	bl	_SAT_UH2_UH
	add	x24, x24, x27
	mov	x3, x24
	bl	_PCKEV_AVG_ST_UB
	add	x23, x23, x26
	add	x24, x24, x27
	cbnz	w25, LBB0_2
LBB0_3:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vp9_bilinear_filters_msa,8,3   ; @vp9_bilinear_filters_msa
.subsections_via_symbols
