	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_8t_8w_msa
_hevc_hz_8t_8w_msa:                     ## @hevc_hz_8t_8w_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	%r9d, %r14d
	movq	%r8, %r13
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LD_SB
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$128, %edi
	callq	___msa_ldi_h
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SH
	cmpl	$4, %r14d
	jb	LBB0_3
## %bb.1:
	shll	$6, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	2(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leaq	4(%rax), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	addq	$6, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	sarl	$2, %r14d
	addq	$-12, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	callq	_XORI_B4_128_SB
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	movl	%r12d, 40(%rsp)
	movl	%r12d, 32(%rsp)
	movl	%r12d, 24(%rsp)
	movl	%r12d, 16(%rsp)
	callq	_DPADD_SB4_SH
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	movl	%r12d, 40(%rsp)
	movl	%r12d, 32(%rsp)
	movl	%r12d, 24(%rsp)
	movl	%r12d, 16(%rsp)
	callq	_DPADD_SB4_SH
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	movl	%r12d, 40(%rsp)
	movl	%r12d, 32(%rsp)
	movl	%r12d, 24(%rsp)
	movl	%r12d, 16(%rsp)
	callq	_DPADD_SB4_SH
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	%r13, %r8
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_VSHF_B4_SB
	movl	%r12d, 40(%rsp)
	movl	%r12d, 32(%rsp)
	movl	%r12d, 24(%rsp)
	movl	%r12d, 16(%rsp)
	callq	_DPADD_SB4_SH
	movl	%r12d, %edi
	movl	%r12d, %esi
	movl	%r12d, %edx
	movl	%r12d, %ecx
	movq	%r15, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_ST_SH4
	addq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	-88(%rbp), %r15                 ## 8-byte Folded Reload
	decl	%r14d
	jne	LBB0_2
LBB0_3:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_hevc_mask_arr,4,2           ## @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hz_8t_8w_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_hz_8t_8w_msa
_hevc_hz_8t_8w_msa:                     ; @hevc_hz_8t_8w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x24, x4
	stp	w1, w3, [sp, #24]               ; 8-byte Folded Spill
	mov	x20, x2
	mov	x27, x0
Lloh0:
	adrp	x8, _ff_hevc_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_hevc_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LD_SB
	mov	x22, x0
	mov	w0, #128
	bl	___msa_ldi_h
	mov	x23, x0
	mov	x0, x24
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SH
	cmp	w25, #4
	b.lo	LBB0_3
; %bb.1:
	lsl	w23, w23, #6
	add	x24, x22, #2
	asr	w28, w25, #2
	add	x25, x22, #4
	add	x26, x22, #6
	ldp	w8, w9, [sp, #24]               ; 8-byte Folded Reload
	lsl	w8, w8, #2
	lsl	w9, w9, #2
	sub	x27, x27, #12
	sbfiz	x19, x8, #2, #32
	sbfiz	x21, x9, #2, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w28, w28, #1
	mov	x0, x27
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	bl	_LD_SB4
	bl	_XORI_B4_128_SB
	mov	x2, x22
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	bl	_VSHF_B4_SB
	stp	w23, w23, [sp, #8]
	stp	w23, w23, [sp]
	bl	_DPADD_SB4_SH
	mov	x2, x22
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	bl	_VSHF_B4_SB
	stp	w23, w23, [sp, #8]
	stp	w23, w23, [sp]
	bl	_DPADD_SB4_SH
	mov	x2, x22
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	bl	_VSHF_B4_SB
	stp	w23, w23, [sp, #8]
	stp	w23, w23, [sp]
	bl	_DPADD_SB4_SH
	mov	x2, x22
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	bl	_VSHF_B4_SB
	stp	w23, w23, [sp, #8]
	stp	w23, w23, [sp]
	bl	_DPADD_SB4_SH
	mov	x0, x23
	mov	x1, x23
	mov	x2, x23
	mov	x3, x23
	mov	x4, x20
	ldr	w5, [sp, #28]                   ; 4-byte Folded Reload
	bl	_ST_SH4
	add	x27, x27, x19
	add	x20, x20, x21
	cbnz	w28, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_hevc_mask_arr,4,2           ; @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hz_8t_8w_msa
.subsections_via_symbols
