	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_h264_qpel16_mc30_msa    ## -- Begin function ff_avg_h264_qpel16_mc30_msa
	.p2align	4, 0x90
_ff_avg_h264_qpel16_mc30_msa:           ## @ff_avg_h264_qpel16_mc30_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$-5, %edi
	callq	___msa_ldi_b
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$20, %edi
	callq	___msa_ldi_b
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_luma_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$16, %esi
	callq	_LD_SB3
	addq	$-8, %r15
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rcx
	leal	(,%rcx,4), %eax
	cltq
	shlq	$2, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$-4, %eax
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_LD_SB2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_LD_SB2
	addq	%rbx, %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_LD_SB2
	addq	%rbx, %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_LD_SB2
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_UB4
	callq	_XORI_B8_128_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_HADD_SB4_SH
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 8(%rsp)
	movq	%r12, (%rsp)
	movq	%r12, %r8
	movq	%r12, %r9
	callq	_DPADD_SB4_SH
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 8(%rsp)
	movq	%rbx, (%rsp)
	movq	%rbx, %r8
	movq	%rbx, %r9
	callq	_DPADD_SB4_SH
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_VSHF_B2_SB
	callq	_HADD_SB4_SH
	movq	%r12, 8(%rsp)
	movq	%r12, (%rsp)
	movq	%r12, %r8
	movq	%r12, %r9
	callq	_DPADD_SB4_SH
	movq	%rbx, 8(%rsp)
	movq	%rbx, (%rsp)
	movq	%rbx, %r8
	movq	%rbx, %r9
	callq	_DPADD_SB4_SH
	movl	$3, 16(%rsp)
	callq	_SLDI_B4_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
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r8
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	callq	_PCKEV_B2_SB
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r9
	callq	_PCKEV_B2_SB
	movq	%r12, %rdi
	callq	___msa_aver_s_b
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	___msa_aver_s_b
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	___msa_aver_s_b
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	___msa_aver_s_b
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_XORI_B4_128_SB
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%r14, %rdx
	callq	_AVER_UB2_UB
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_AVER_UB2_UB
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_ST_UB4
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	incl	%eax
	jne	LBB0_1
## %bb.2:
	addq	$136, %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_qpel16_mc30_msa    ; -- Begin function ff_avg_h264_qpel16_mc30_msa
	.p2align	2
_ff_avg_h264_qpel16_mc30_msa:           ; @ff_avg_h264_qpel16_mc30_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x1
	mov	x20, x0
	mov	w0, #-5
	bl	___msa_ldi_b
	mov	x21, x0
	mov	w0, #20
	bl	___msa_ldi_b
	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
	sub	x27, x23, #8
	lsl	w8, w19, #2
	sbfiz	x8, x8, #2, #32
	stp	x8, x19, [sp, #40]              ; 16-byte Folded Spill
	sbfiz	x28, x19, #2, #32
	mov	w19, #-4
                                        ; implicit-def: $x23
                                        ; implicit-def: $x24
                                        ; implicit-def: $x25
                                        ; implicit-def: $x26
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	mov	w1, #16
	bl	_LD_SB2
	add	x27, x27, x28
	mov	x0, x27
	mov	w1, #16
	bl	_LD_SB2
	add	x27, x27, x28
	mov	x0, x27
	mov	w1, #16
	bl	_LD_SB2
	add	x0, x27, x28
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	mov	w1, #16
	bl	_LD_SB2
	mov	x0, x20
	ldr	x27, [sp, #48]                  ; 8-byte Folded Reload
	mov	x1, x27
	bl	_LD_UB4
	bl	_XORI_B8_128_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_HADD_SB4_SH
	mov	x4, x21
	mov	x5, x21
	mov	x6, x21
	mov	x7, x21
	bl	_DPADD_SB4_SH
	mov	x4, x22
	mov	x5, x22
	mov	x6, x22
	mov	x7, x22
	bl	_DPADD_SB4_SH
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_VSHF_B2_SB
	bl	_HADD_SB4_SH
	mov	x4, x21
	mov	x5, x21
	mov	x6, x21
	mov	x7, x21
	bl	_DPADD_SB4_SH
	mov	x4, x22
	mov	x5, x22
	mov	x6, x22
	mov	x7, x22
	bl	_DPADD_SB4_SH
	mov	w8, #3
	str	w8, [sp]
	bl	_SLDI_B4_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
	mov	x4, x23
	mov	x5, x24
	bl	_PCKEV_B2_SB
	mov	x4, x25
	mov	x5, x26
	bl	_PCKEV_B2_SB
	mov	x0, x23
	bl	___msa_aver_s_b
	mov	x23, x0
	mov	x0, x24
	bl	___msa_aver_s_b
	mov	x24, x0
	mov	x0, x25
	bl	___msa_aver_s_b
	mov	x25, x0
	mov	x0, x26
	bl	___msa_aver_s_b
	mov	x26, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_XORI_B4_128_SB
	mov	x0, x23
	mov	x2, x24
	bl	_AVER_UB2_UB
	mov	x0, x25
	mov	x2, x26
	bl	_AVER_UB2_UB
	mov	x4, x20
	mov	x5, x27
	bl	_ST_UB4
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x27, x8, x28
	adds	w19, w19, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_luma_mask_arr,8,3              ; @luma_mask_arr
.subsections_via_symbols
