	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_h264_qpel16_mc01_msa    ## -- Begin function ff_avg_h264_qpel16_mc01_msa
	.p2align	4, 0x90
_ff_avg_h264_qpel16_mc01_msa:           ## @ff_avg_h264_qpel16_mc01_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, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$64257, %edi                    ## imm = 0xFB01
	callq	___msa_fill_h
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	$5140, %edi                     ## imm = 0x1414
	callq	___msa_fill_h
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	$507, %edi                      ## imm = 0x1FB
	callq	___msa_fill_h
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	leal	(%r15,%r15), %eax
	cltq
	shlq	$2, %rax
	subq	%rax, %r14
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_LD_SB5
	leal	(%r15,%r15,4), %eax
	cltq
	leaq	(%r14,%rax,4), %r14
	callq	_XORI_B5_128_SB
	callq	_ILVR_B4_SB
	callq	_ILVL_B4_SB
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leal	(,%r15,4), %eax
	cltq
	shlq	$2, %rax
	movq	%rax, -128(%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
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	callq	_XORI_B4_128_SB
	callq	_ILVR_B4_SB
	callq	_ILVL_B4_SB
	movq	-152(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	movq	-144(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r9
	callq	_AVC_DOT_SH3_SH
	movl	%eax, %ebx
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SH3_SH
	movl	%eax, %r15d
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SH3_SH
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SH3_SH
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SH3_SH
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SH3_SH
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SH3_SH
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_AVC_DOT_SH3_SH
	movl	%eax, %r14d
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r15d, %r12d
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	movl	-80(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%rsp)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 32(%rsp)
	movq	-160(%rbp), %r12                ## 8-byte Reload
	movq	%r12, 24(%rsp)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, 16(%rsp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rsp)
	movl	%r14d, (%rsp)
	movq	-168(%rbp), %r14                ## 8-byte Reload
	movl	%r13d, %edi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_PCKEV_B4_UB
	movq	%rbx, %rdi
	callq	___msa_aver_s_b
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	___msa_aver_s_b
	movq	%rax, %r12
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	___msa_aver_s_b
	movq	%rax, %rbx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	___msa_aver_s_b
	movq	%rax, %r13
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_UB4
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_XORI_B4_128_UB
	movq	%r15, %rdi
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movq	%r12, %rdx
	callq	_AVER_UB2_UB
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	callq	_AVER_UB2_UB
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_ST_UB4
	movq	-128(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %rbx
	addq	%rax, %r14
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	jne	LBB0_1
## %bb.2:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_avg_h264_qpel16_mc01_msa    ; -- Begin function ff_avg_h264_qpel16_mc01_msa
	.p2align	2
_ff_avg_h264_qpel16_mc01_msa:           ; @ff_avg_h264_qpel16_mc01_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x21, x2
	mov	x19, x1
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	mov	w0, #64257
	bl	___msa_fill_h
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	mov	w0, #5140
	bl	___msa_fill_h
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	mov	w0, #507
	bl	___msa_fill_h
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	lsl	w8, w21, #1
	sub	x19, x19, w8, sxtw #2
	mov	x0, x19
	mov	x1, x21
	bl	_LD_SB5
	lsl	w20, w21, #2
	stur	w21, [x29, #-92]                ; 4-byte Folded Spill
	add	w8, w20, w21
	add	x8, x19, w8, sxtw #2
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	bl	_XORI_B5_128_SB
	bl	_ILVR_B4_SB
	bl	_ILVL_B4_SB
	mov	x9, #0
	sbfiz	x8, x20, #2, #32
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	mov	w8, #-4
                                        ; implicit-def: $x10
                                        ; kill: killed $x10
                                        ; implicit-def: $x10
                                        ; kill: killed $x10
                                        ; implicit-def: $x10
                                        ; kill: killed $x10
                                        ; implicit-def: $x10
                                        ; kill: killed $x10
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	stur	w8, [x29, #-108]                ; 4-byte Folded Spill
	stur	x9, [x29, #-104]                ; 8-byte Folded Spill
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x8, x8, x9
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x0, x8, x9
	ldur	w1, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	bl	_ILVR_B4_SB
	bl	_ILVL_B4_SB
	ldp	x27, x25, [sp, #56]             ; 16-byte Folded Reload
	mov	x3, x25
	mov	x4, x27
	ldr	x26, [sp, #48]                  ; 8-byte Folded Reload
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x22, x0
	mov	x3, x25
	mov	x4, x27
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x28, x0
	mov	x3, x25
	mov	x4, x27
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x20, x0
	mov	x3, x25
	mov	x4, x27
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x21, x0
	mov	x3, x25
	mov	x4, x27
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x19, x0
	mov	x3, x25
	mov	x4, x27
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x23, x0
	mov	x3, x25
	mov	x4, x27
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x24, x0
	mov	x3, x25
	mov	x4, x27
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x25, x0
	stp	w22, w28, [sp, #80]             ; 8-byte Folded Spill
	mov	x0, x22
	mov	x1, x28
	mov	x2, x20
	mov	x3, x21
	mov	w4, #5
	bl	_SRARI_H4_SH
	mov	x0, x22
	mov	x1, x28
	mov	x2, x20
	mov	x3, x21
	mov	w4, #7
	bl	_SAT_SH4_SH
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	w4, #5
	bl	_SRARI_H4_SH
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	w4, #7
	bl	_SAT_SH4_SH
	ldr	x22, [sp, #88]                  ; 8-byte Folded Reload
	ldp	x28, x27, [sp, #104]            ; 16-byte Folded Reload
	stp	x28, x22, [sp, #16]
	ldr	x26, [sp, #120]                 ; 8-byte Folded Reload
	stp	x26, x27, [sp]
	mov	x0, x19
	ldp	w1, w3, [sp, #80]               ; 8-byte Folded Reload
	mov	x2, x23
	mov	x4, x24
	mov	x5, x20
	mov	x6, x25
	mov	x7, x21
	bl	_PCKEV_B4_UB
	mov	x0, x26
	bl	___msa_aver_s_b
	mov	x19, x0
	mov	x0, x27
	bl	___msa_aver_s_b
	mov	x20, x0
	mov	x0, x28
	bl	___msa_aver_s_b
	mov	x21, x0
	mov	x0, x22
	bl	___msa_aver_s_b
	mov	x22, x0
	ldr	x23, [sp, #96]                  ; 8-byte Folded Reload
	mov	x0, x23
	ldur	w24, [x29, #-92]                ; 4-byte Folded Reload
	mov	x1, x24
	bl	_LD_UB4
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_XORI_B4_128_UB
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	mov	x0, x19
	mov	x2, x20
	bl	_AVER_UB2_UB
	str	x21, [sp, #104]                 ; 8-byte Folded Spill
	mov	x0, x21
	str	x22, [sp, #88]                  ; 8-byte Folded Spill
	mov	x2, x22
	bl	_AVER_UB2_UB
	mov	x4, x23
	mov	x5, x24
	bl	_ST_UB4
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x9, x9, x8
	ldur	w8, [x29, #-108]                ; 4-byte Folded Reload
	adds	w8, w8, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
