	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_biwgt_4t_6w_msa
_hevc_hz_biwgt_4t_6w_msa:               ## @hevc_hz_biwgt_4t_6w_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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movzwl	32(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %r15d
	movl	64(%rbp), %r13d
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LD_SB
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	$-4, %r12
	movq	16(%rbp), %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	movl	56(%rbp), %eax
	addl	48(%rbp), %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	movl	%r15d, %r13d
	shll	$16, %r13d
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	shll	$13, %r15d
	addl	%eax, %r15d
	movl	%r15d, %edi
	callq	___msa_fill_w
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	___msa_fill_w
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	64(%rbp), %edi
	incl	%edi
	callq	___msa_fill_w
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$2, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rdx
	leal	(%rbx,%rbx), %eax
	movslq	%eax, %rsi
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	leal	(,%rbx,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	16(,%rsi,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movl	$-2, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SH4
	callq	_XORI_B4_128_SB
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	-136(%rbp), %r15                ## 8-byte Reload
	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, %r14d
	movq	%rbx, %r8
	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, %r15d
	movl	%eax, 64(%rsp)
	movl	%r12d, 56(%rsp)
	movl	%r14d, 48(%rsp)
	movl	%r13d, 40(%rsp)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rsp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rsp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rsp)
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_HEVC_BIW_RND_CLIP4
	movl	%r14d, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_PCKEV_B2_SH
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$2, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r15
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_ST_W2
	leaq	16(%r15), %rcx
	movl	%r13d, %edi
	movl	$2, %esi
	movl	$6, %edx
	movl	%ebx, %r8d
	callq	_ST_H2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	%ebx, %r8d
	callq	_ST_W2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax), %rcx
	movl	%r14d, %edi
	movl	$2, %esi
	movl	$6, %edx
	movl	%ebx, %r8d
	callq	_ST_H2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-160(%rbp), %r12                ## 8-byte Reload
	addq	-128(%rbp), %r12                ## 8-byte Folded Reload
	movq	-152(%rbp), %r14                ## 8-byte Reload
	addq	-120(%rbp), %r14                ## 8-byte Folded Reload
	addq	-104(%rbp), %r15                ## 8-byte Folded Reload
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	incl	%eax
	jne	LBB0_1
## %bb.2:
	addq	$200, %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_6w_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_6w_msa
_hevc_hz_biwgt_4t_6w_msa:               ; @hevc_hz_biwgt_4t_6w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	str	x6, [sp, #80]                   ; 8-byte Folded Spill
	mov	x27, x5
	mov	x20, x4
	stur	w3, [x29, #-84]                 ; 4-byte Folded Spill
	mov	x22, x2
	str	w1, [sp, #88]                   ; 4-byte Folded Spill
	mov	x23, x0
	ldrh	w26, [x29, #16]
	ldp	w19, w8, [x29, #20]
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	ldp	w21, w28, [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
	mov	x24, x0
	sub	x25, x23, #4
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	add	w8, w21, w8
	lsl	w8, w8, w28
	bfi	w26, w19, #16, #16
	add	w0, w8, w19, lsl #13
	bl	___msa_fill_w
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	mov	x0, x26
	bl	___msa_fill_w
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	add	w0, w28, #1
	bl	___msa_fill_w
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	lsl	w8, w8, #2
	ldur	w9, [x29, #-84]                 ; 4-byte Folded Reload
	lsl	w9, w9, #2
	add	x21, x24, #2
	lsl	w10, w27, #1
	str	w27, [sp, #80]                  ; 4-byte Folded Spill
	lsl	w11, w27, #2
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	sbfiz	x8, x9, #2, #32
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	sbfiz	x9, x11, #2, #32
	mov	w19, #-2
	sbfiz	x8, x10, #2, #32
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	ldr	w1, [sp, #88]                   ; 4-byte Folded Reload
	bl	_LD_SB4
	mov	x0, x22
	ldur	w1, [x29, #-84]                 ; 4-byte Folded Reload
	bl	_LD_SH4
	bl	_XORI_B4_128_SB
	mov	x4, x24
	mov	x5, x21
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x26, x0
	mov	x4, x24
	mov	x5, x21
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	mov	x4, x24
	mov	x5, x21
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x27, x0
	mov	x4, x24
	mov	x5, x21
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	stp	w27, w0, [sp, #20]
	stp	w26, w23, [sp, #12]
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #4]
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	str	w8, [sp]
	mov	x0, x26
	mov	x1, x23
	mov	x2, x27
	mov	x3, x28
	bl	_HEVC_BIW_RND_CLIP4
	mov	x0, x23
	mov	x1, x26
	mov	x2, x28
	mov	x3, x27
	mov	x4, x26
	mov	x5, x23
	bl	_PCKEV_B2_SH
	mov	x0, x26
	mov	w1, #0
	mov	w2, #2
	mov	x3, x20
	ldr	w27, [sp, #80]                  ; 4-byte Folded Reload
	mov	x4, x27
	bl	_ST_W2
	add	x3, x20, #16
	mov	x0, x26
	mov	w1, #2
	mov	w2, #6
	mov	x4, x27
	bl	_ST_H2
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x26, x20, x8
	mov	x0, x23
	mov	w1, #0
	mov	w2, #2
	mov	x3, x26
	mov	x4, x27
	bl	_ST_W2
	add	x3, x26, #16
	mov	x0, x23
	mov	w1, #2
	mov	w2, #6
	mov	x4, x27
	bl	_ST_H2
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x25, x25, x8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x22, x22, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	adds	w19, w19, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	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_6w_msa
.subsections_via_symbols
