	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_biwgt_4t_16w_msa
_hevc_hz_biwgt_4t_16w_msa:              ## @hevc_hz_biwgt_4t_16w_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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movzwl	32(%rbp), %r15d
	movl	40(%rbp), %r12d
	movl	56(%rbp), %r13d
	movq	16(%rbp), %rbx
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LD_SB
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	addl	48(%rbp), %r13d
	movl	64(%rbp), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	movl	%r12d, %ebx
	shll	$16, %ebx
	orl	%r15d, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	shll	$13, %r12d
	addl	%r13d, %r12d
	movl	%r12d, %edi
	callq	___msa_fill_w
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	callq	___msa_fill_w
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	64(%rbp), %edi
	incl	%edi
	callq	___msa_fill_w
	movl	24(%rbp), %ecx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$4, %ecx
	jb	LBB0_3
## %bb.1:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	$2, %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	sarl	$2, %ecx
	addq	$-4, %r14
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rsi
	movq	-128(%rbp), %rax                ## 8-byte Reload
	addl	%eax, %eax
	cltq
	shlq	$2, %rdx
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	leaq	(,%rax,8), %rdx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movq	%r14, -184(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %esi
	callq	_LD_SB4
	leaq	32(%rbx), %rdi
	movl	%r14d, %esi
	callq	_LD_SB4
	movq	%r12, %rdi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SH4
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	32(%rax), %rdi
	movl	%ebx, %esi
	callq	_LD_SH4
	callq	_XORI_B8_128_SB
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r8
	movq	-168(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r12d
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r14d
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r13d
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%r13d, 64(%rsp)
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, 56(%rsp)
	movl	%r14d, 48(%rsp)
	movl	%r12d, 40(%rsp)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rsp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rsp)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rsp)
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_HEVC_BIW_RND_CLIP4
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	callq	_PCKEV_B2_SH
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_ST_SH2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movl	%r13d, 64(%rsp)
	movl	%ebx, 56(%rsp)
	movl	%r14d, 48(%rsp)
	movl	%r12d, 40(%rsp)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rsp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rsp)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rsp)
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	_HEVC_BIW_RND_CLIP4
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	callq	_PCKEV_B2_SH
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	movl	%r15d, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_ST_SH2
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	movq	-184(%rbp), %r14                ## 8-byte Reload
	addq	-160(%rbp), %r14                ## 8-byte Folded Reload
	addq	-152(%rbp), %r12                ## 8-byte Folded Reload
	addq	-136(%rbp), %r15                ## 8-byte Folded Reload
	decl	%ecx
	jne	LBB0_2
LBB0_3:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_hevc_mask_arr,8,3           ## @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hz_biwgt_4t_16w_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_biwgt_4t_16w_msa
_hevc_hz_biwgt_4t_16w_msa:              ; @hevc_hz_biwgt_4t_16w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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, x7
	mov	x23, x6
	stp	w3, w5, [sp, #100]              ; 8-byte Folded Spill
	mov	x28, x4
	mov	x24, x2
	str	w1, [sp, #96]                   ; 4-byte Folded Spill
	mov	x21, x0
	ldrh	w25, [x29, #16]
	ldp	w20, w22, [x29, #20]
	ldp	w27, w26, [x29, #28]
Lloh0:
	adrp	x8, _ff_hevc_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_hevc_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_LD_SB
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
	mov	x0, x23
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	add	w8, w27, w22
	lsl	w8, w8, w26
	bfi	w25, w20, #16, #16
	add	w0, w8, w20, lsl #13
	mov	x20, x28
	bl	___msa_fill_w
	mov	x27, x0
	mov	x0, x25
	bl	___msa_fill_w
	mov	x28, x0
	add	w0, w26, #1
	bl	___msa_fill_w
	str	w0, [sp, #84]                   ; 4-byte Folded Spill
	cmp	w19, #4
	b.lo	LBB0_3
; %bb.1:
	asr	w11, w19, #2
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	add	x8, x8, #2
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	ldp	w8, w9, [sp, #96]               ; 8-byte Folded Reload
	lsl	w8, w8, #2
	sub	x12, x21, #4
	lsl	w9, w9, #2
	ldr	w10, [sp, #104]                 ; 4-byte Folded Reload
	lsl	w10, w10, #1
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	sbfiz	x8, x9, #2, #32
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	sbfiz	x9, x10, #3, #32
	sbfiz	x8, x10, #2, #32
	stp	x8, x9, [sp, #40]               ; 16-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stp	x24, x12, [x29, #-96]           ; 16-byte Folded Spill
	sub	w11, w11, #1
	stur	w11, [x29, #-100]               ; 4-byte Folded Spill
	mov	x0, x12
	ldr	w21, [sp, #96]                  ; 4-byte Folded Reload
	mov	x1, x21
	bl	_LD_SB4
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	add	x0, x8, #32
	mov	x1, x21
	bl	_LD_SB4
	mov	x0, x24
	ldr	w21, [sp, #100]                 ; 4-byte Folded Reload
	mov	x1, x21
	bl	_LD_SH4
	add	x0, x24, #32
	mov	x1, x21
	bl	_LD_SH4
	bl	_XORI_B8_128_SB
	ldr	x22, [sp, #88]                  ; 8-byte Folded Reload
	mov	x4, x22
	ldr	x19, [sp, #72]                  ; 8-byte Folded Reload
	mov	x5, x19
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	mov	x4, x22
	mov	x5, x19
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	mov	x4, x22
	mov	x5, x19
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x25, x0
	mov	x4, x22
	mov	x5, x19
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x26, x0
	mov	x4, x22
	mov	x5, x19
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	stur	w0, [x29, #-104]                ; 4-byte Folded Spill
	mov	x4, x22
	mov	x5, x19
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
	mov	x4, x22
	mov	x5, x19
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	str	w0, [sp, #112]                  ; 4-byte Folded Spill
	mov	x4, x22
	mov	x5, x19
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	str	w0, [sp, #108]                  ; 4-byte Folded Spill
	stp	w25, w26, [sp, #20]
	stp	w21, w23, [sp, #12]
	ldr	w19, [sp, #84]                  ; 4-byte Folded Reload
	stp	w19, w27, [sp, #4]
	str	w28, [sp]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x25
	mov	x3, x26
	bl	_HEVC_BIW_RND_CLIP4
	mov	x0, x23
	mov	x1, x21
	mov	x2, x26
	mov	x3, x25
	mov	x4, x21
	mov	x5, x23
	bl	_PCKEV_B2_SH
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x22, x28
	mov	x28, x27
	ldr	w27, [sp, #104]                 ; 4-byte Folded Reload
	mov	x3, x27
	bl	_ST_SH2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x24, x20, x8
	stp	w25, w26, [sp, #20]
	stp	w21, w23, [sp, #12]
	stp	w19, w28, [sp, #4]
	str	w22, [sp]
	ldp	w1, w0, [x29, #-108]            ; 8-byte Folded Reload
	ldp	w3, w2, [sp, #108]              ; 8-byte Folded Reload
	bl	_HEVC_BIW_RND_CLIP4
	mov	x0, x23
	mov	x1, x21
	mov	x2, x26
	mov	x3, x25
	mov	x4, x21
	mov	x5, x23
	bl	_PCKEV_B2_SH
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	ldur	x24, [x29, #-96]                ; 8-byte Folded Reload
	mov	x3, x27
	mov	x27, x28
	mov	x28, x22
	bl	_ST_SH2
	ldur	x12, [x29, #-88]                ; 8-byte Folded Reload
	ldur	w11, [x29, #-100]               ; 4-byte Folded Reload
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x12, x12, x8
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	cbnz	w11, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_hevc_mask_arr,8,3           ; @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hz_biwgt_4t_16w_msa
.subsections_via_symbols
