	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_biwgt_8t_64w_msa
_hevc_hz_biwgt_8t_64w_msa:              ## @hevc_hz_biwgt_8t_64w_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
	movl	%r9d, -88(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -80(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movzwl	32(%rbp), %r14d
	movl	40(%rbp), %r13d
	movl	64(%rbp), %r15d
	movl	56(%rbp), %r12d
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LD_SB
	addl	48(%rbp), %r12d
	movl	%r15d, %ecx
	shll	%cl, %r12d
	movl	%r13d, %ebx
	shll	$16, %ebx
	orl	%r14d, %ebx
	movq	%rax, %r14
	shll	$13, %r13d
	addl	%r12d, %r13d
	movl	%r13d, %edi
	callq	___msa_fill_w
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	___msa_fill_w
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	incl	%r15d
	movl	%r15d, %edi
	callq	___msa_fill_w
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SH
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rbp), %edx
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	cmpl	$0, 24(%rbp)
	je	LBB0_5
## %bb.1:
	leaq	2(%r14), %r13
	leaq	4(%r14), %rdx
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	leaq	6(%r14), %rdx
	movq	%rdx, -176(%rbp)                ## 8-byte Spill
	leaq	8(%r14), %rdx
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	leaq	10(%r14), %rdx
	movq	%rdx, -160(%rbp)                ## 8-byte Spill
	leaq	12(%r14), %rdx
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	movq	%r14, %rdx
	addq	$14, %rdx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	addq	$-12, -56(%rbp)                 ## 8-byte Folded Spill
	movslq	-80(%rbp), %rdx                 ## 4-byte Folded Reload
	movslq	-44(%rbp), %rsi                 ## 4-byte Folded Reload
	movslq	-88(%rbp), %rdi                 ## 4-byte Folded Reload
	shlq	$2, %rdx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	shlq	$2, %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	xorl	%r12d, %r12d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r12), %rdi
	addq	%r12, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r12), %r15
	movl	$16, %esi
	callq	_LD_SB2
	leaq	(%rbx,%r12), %rdi
	addq	$96, %rdi
	callq	_LD_SB
	movq	%rax, %rbx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_LD_SH4
	movq	%rbx, %rdx
	callq	_XORI_B3_128_SB
	movq	%r14, %rdx
	movq	%r13, %rcx
	movq	-184(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %r8
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movq	-152(%rbp), %r8                 ## 8-byte Reload
	movq	-144(%rbp), %r9                 ## 8-byte Reload
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	%r14, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, 32(%rsp)
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 24(%rsp)
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, 16(%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-112(%rbp), %esi                ## 4-byte Reload
	movl	-108(%rbp), %edx                ## 4-byte Reload
	movl	%eax, %ecx
	callq	_HEVC_BIW_RND_CLIP4
	callq	_PCKEV_B2_SH
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	$16, %ecx
	callq	_ST_SH2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subq	$-128, %r12
	cmpl	$256, %r12d                     ## imm = 0x100
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	-136(%rbp), %rdx                ## 8-byte Folded Reload
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	addq	-120(%rbp), %rax                ## 8-byte Folded Reload
	addq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	decl	-92(%rbp)                       ## 4-byte Folded Spill
	jne	LBB0_2
LBB0_5:
	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_8t_64w_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_8t_64w_msa
_hevc_hz_biwgt_8t_64w_msa:              ; @hevc_hz_biwgt_8t_64w_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	x28, x7
	mov	x19, x6
	stp	x3, x5, [x29, #-96]             ; 16-byte Folded Spill
	mov	x21, x4
	mov	x22, x2
	str	x1, [sp, #112]                  ; 8-byte Folded Spill
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	ldrh	w23, [x29, #16]
	ldp	w24, w25, [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
	mov	x20, x0
	add	w8, w27, w25
	lsl	w8, w8, w26
	bfi	w23, w24, #16, #16
	add	w0, w8, w24, lsl #13
	bl	___msa_fill_w
	mov	x25, x0
	mov	x0, x23
	mov	x23, x20
	bl	___msa_fill_w
	str	w0, [sp, #108]                  ; 4-byte Folded Spill
	add	w0, w26, #1
	bl	___msa_fill_w
	str	w0, [sp, #104]                  ; 4-byte Folded Spill
	mov	x0, x19
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SH
	str	w28, [sp, #68]                  ; 4-byte Folded Spill
	cbz	w28, LBB0_5
; %bb.1:
	mov	x9, x21
	add	x24, x23, #2
	add	x21, x23, #4
	add	x27, x23, #6
	add	x28, x23, #8
	add	x10, x23, #10
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	add	x8, x23, #12
	stp	x8, x10, [sp, #80]              ; 16-byte Folded Spill
	add	x8, x23, #14
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	sub	x10, x8, #12
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	str	w25, [sp, #100]                 ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x20, #0
	stp	x22, x9, [x29, #-104]           ; 16-byte Folded Spill
	str	x10, [sp, #112]                 ; 8-byte Folded Spill
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x25, x10, x20
	add	x8, x9, x20
	stur	x8, [x29, #-88]                 ; 8-byte Folded Spill
	add	x19, x22, x20
	mov	x0, x25
	mov	w1, #16
	bl	_LD_SB2
	add	x0, x25, #96
	bl	_LD_SB
	mov	x25, x0
	mov	x0, x19
	mov	w1, #8
	bl	_LD_SH4
	mov	x2, x25
	bl	_XORI_B3_128_SB
	mov	x2, x23
	mov	x3, x24
	mov	x4, x21
	mov	x5, x27
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x26, x0
	mov	x2, x28
	ldp	x4, x3, [sp, #80]               ; 16-byte Folded Reload
	ldr	x5, [sp, #72]                   ; 8-byte Folded Reload
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x19, x0
	mov	x2, x23
	mov	x3, x24
	mov	x4, x21
	mov	x5, x27
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x22, x28
	mov	x28, x0
	mov	x0, x25
	mov	x1, x25
	ldr	w25, [sp, #100]                 ; 4-byte Folded Reload
	mov	x2, x23
	mov	x3, x24
	mov	x4, x21
	mov	x5, x27
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x3, x0
	ldr	w8, [sp, #104]                  ; 4-byte Folded Reload
	stp	w8, w25, [sp, #4]
	ldr	w8, [sp, #108]                  ; 4-byte Folded Reload
	str	w8, [sp]
	mov	x0, x26
	mov	x1, x19
	mov	x2, x28
	mov	x28, x22
	bl	_HEVC_BIW_RND_CLIP4
	bl	_PCKEV_B2_SH
	ldur	x2, [x29, #-88]                 ; 8-byte Folded Reload
	mov	w3, #16
	bl	_ST_SH2
	ldr	x10, [sp, #112]                 ; 8-byte Folded Reload
	ldp	x22, x9, [x29, #-104]           ; 16-byte Folded Reload
	add	x20, x20, #128
	cmp	w20, #256
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x10, x10, x8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x9, x9, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x22, x22, x8
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	subs	w8, w8, #1
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	b.ne	LBB0_2
LBB0_5:
	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_8t_64w_msa
.subsections_via_symbols
