	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avc_luma_hv_qrt_16x16_msa
_avc_luma_hv_qrt_16x16_msa:             ## @avc_luma_hv_qrt_16x16_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	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$64257, %edi                    ## imm = 0xFB01
	callq	___msa_fill_h
	movq	%rax, %r13
	movl	$5140, %edi                     ## imm = 0x1414
	callq	___msa_fill_h
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	$507, %edi                      ## imm = 0x1FB
	callq	___msa_fill_h
	movq	%rax, -128(%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, -120(%rbp)                ## 8-byte Spill
	leaq	(%r15,%rax,4), %rax
	movl	$1, %ecx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %r15
	callq	_LD_SB5
	callq	_XORI_B5_128_SB
	movl	$-4, %eax
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -176(%rbp)                ## 8-byte Spill
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_LD_SB4
	callq	_XORI_B4_128_SB
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r13
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r12
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %r14
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	callq	_AVC_HORZ_FILTER_SH
	movq	%rax, %rbx
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	movq	%r15, %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	_ILVR_B4_SB
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r8
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	callq	_AVC_DOT_SH3_SH
	movq	%rax, %r12
	movq	%r15, %rcx
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SH3_SH
	movq	%rax, %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SH3_SH
	movq	%rax, %r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_AVC_DOT_SH3_SH
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rax, %rcx
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	addq	-144(%rbp), %r12                ## 8-byte Folded Reload
	movq	%r12, %rdi
	movl	$1, %esi
	callq	___msa_srari_h
	movq	%rax, %r12
	addq	-152(%rbp), %r13                ## 8-byte Folded Reload
	movq	%r13, %rdi
	movl	$1, %esi
	callq	___msa_srari_h
	movq	%rax, %r13
	addq	-160(%rbp), %r15                ## 8-byte Folded Reload
	movq	%r15, %rdi
	movl	$1, %esi
	callq	___msa_srari_h
	movq	%rax, %r15
	addq	-168(%rbp), %r14                ## 8-byte Folded Reload
	movq	%r14, %rdi
	movl	$1, %esi
	callq	___msa_srari_h
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rax, %rcx
	movl	$7, %r8d
	callq	_SAT_SH4_SH
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_PCKEV_XORI128_UB
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	callq	_PCKEV_XORI128_UB
	movl	%r12d, 8(%rsp)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%rsp)
	movl	%r14d, %edi
	movq	-176(%rbp), %r15                ## 8-byte Reload
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	addq	%rdx, %rcx
	addq	%rdx, %r15
	addq	%rdx, %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	incl	%eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	addq	$32, %rbx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	addq	$32, %r15
	movq	-112(%rbp), %r14                ## 8-byte Reload
	addq	$32, %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	$32, %rax
	movl	-52(%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
	.no_dead_strip	_avc_luma_hv_qrt_16x16_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avc_luma_hv_qrt_16x16_msa
_avc_luma_hv_qrt_16x16_msa:             ; @avc_luma_hv_qrt_16x16_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #64257
	bl	___msa_fill_h
	mov	x23, x0
	mov	w0, #5140
	bl	___msa_fill_h
	mov	x25, x0
	mov	w0, #507
	bl	___msa_fill_h
	mov	x26, 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
	lsl	w8, w19, #2
	add	w9, w8, w19
	sbfiz	x27, x8, #2, #32
	add	x28, x21, w9, sxtw #2
	mov	w8, #1
	str	w19, [sp, #76]                  ; 4-byte Folded Spill
	stp	x27, x25, [sp, #56]             ; 16-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	str	x21, [sp, #48]                  ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x19
	bl	_LD_SB5
	bl	_XORI_B5_128_SB
	mov	x24, #0
	mov	w8, #-4
	stp	x22, x20, [sp, #88]             ; 16-byte Folded Spill
	str	x28, [sp, #80]                  ; 8-byte Folded Spill
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stur	w8, [x29, #-84]                 ; 4-byte Folded Spill
	add	x0, x22, x24
	add	x22, x28, x24
	add	x8, x20, x24
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x1, x19
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	bl	_AVC_HORZ_FILTER_SH
	mov	x20, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x21, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x28, x0
	bl	_AVC_HORZ_FILTER_SH
	mov	x27, x0
	str	x0, [sp, #104]                  ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x21
	mov	x2, x28
	mov	x3, x27
	mov	w4, #5
	bl	_SRARI_H4_SH
	mov	x0, x20
	mov	x1, x21
	mov	x2, x28
	mov	x3, x27
	mov	w4, #7
	bl	_SAT_SH4_SH
	mov	x0, x22
	mov	x1, x19
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	bl	_ILVR_B4_SB
	bl	_ILVR_B4_SB
	mov	x3, x23
	mov	x4, x25
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x22, x0
	mov	x3, x23
	mov	x4, x25
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x19, x0
	mov	x3, x23
	mov	x4, x25
	mov	x5, x26
	bl	_AVC_DOT_SH3_SH
	mov	x27, x26
	mov	x26, x0
	mov	x3, x23
	mov	x4, x25
	mov	x5, x27
	bl	_AVC_DOT_SH3_SH
	mov	x25, x23
	mov	x23, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x26
	mov	x3, x23
	mov	w4, #5
	bl	_SRARI_H4_SH
	mov	x0, x22
	mov	x1, x19
	mov	x2, x26
	mov	x3, x23
	mov	w4, #7
	bl	_SAT_SH4_SH
	add	x0, x22, x20
	mov	w1, #1
	bl	___msa_srari_h
	mov	x20, x0
	add	x0, x19, x21
	mov	w1, #1
	bl	___msa_srari_h
	mov	x19, x0
	add	x0, x26, x28
	ldr	x28, [sp, #80]                  ; 8-byte Folded Reload
	mov	x26, x27
	ldr	x27, [sp, #56]                  ; 8-byte Folded Reload
	mov	w1, #1
	bl	___msa_srari_h
	mov	x21, x0
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	add	x0, x23, x8
	mov	x23, x25
	ldr	x25, [sp, #64]                  ; 8-byte Folded Reload
	mov	w1, #1
	bl	___msa_srari_h
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	w4, #7
	bl	_SAT_SH4_SH
	mov	x0, x20
	ldr	x20, [sp, #96]                  ; 8-byte Folded Reload
	mov	x1, x19
	bl	_PCKEV_XORI128_UB
	mov	x19, x0
	mov	x0, x21
	mov	x1, x22
	ldr	x22, [sp, #88]                  ; 8-byte Folded Reload
	bl	_PCKEV_XORI128_UB
	mov	x1, x0
	mov	x0, x19
	ldr	w19, [sp, #76]                  ; 4-byte Folded Reload
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	ldur	x6, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x7, x19
	bl	_ST_D4
	ldur	w8, [x29, #-84]                 ; 4-byte Folded Reload
	add	x24, x24, x27
	adds	w8, w8, #1
	b.lo	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x22, x22, #32
	ldr	x21, [sp, #48]                  ; 8-byte Folded Reload
	add	x21, x21, #32
	add	x20, x20, #32
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	sub	w8, w9, #1
	add	x28, x28, #32
	cbnz	w9, LBB0_1
; %bb.4:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_luma_mask_arr,8,3              ; @luma_mask_arr
	.no_dead_strip	_avc_luma_hv_qrt_16x16_msa
.subsections_via_symbols
