	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_biwgt_4t_24w_msa
_hevc_hz_biwgt_4t_24w_msa:              ## @hevc_hz_biwgt_4t_24w_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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movzwl	32(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %ebx
	movl	56(%rbp), %r14d
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LD_SB
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addq	$-4, %r15
	movq	16(%rbp), %rdi
	callq	_LD_SH
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	addl	48(%rbp), %r14d
	movl	64(%rbp), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	movl	%ebx, %r12d
	shll	$16, %r12d
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	shll	$13, %ebx
	addl	%r14d, %ebx
	movl	%ebx, %edi
	callq	___msa_fill_w
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	___msa_fill_w
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	64(%rbp), %edi
	incl	%edi
	callq	___msa_fill_w
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	2(%rcx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	8(%rcx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, %rax
	addq	$10, %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	movslq	%eax, %rcx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	movslq	%eax, %rdx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addl	%eax, %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	$-16, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -168(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SB2
	leaq	64(%r15), %rdi
	movl	%ebx, %esi
	callq	_LD_SB2
	movq	%r13, %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD_SH2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	32(%rax), %rdi
	movl	%ebx, %esi
	callq	_LD_SH2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	64(%rax), %rdi
	movl	%ebx, %esi
	callq	_LD_SH2
	callq	_XORI_B4_128_SB
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r8
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r13
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	movq	-160(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r15
	movq	%r12, %r8
	movq	%rbx, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r12
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	movq	%r14, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r14
	movq	%rax, 64(%rsp)
	movq	%r12, 56(%rsp)
	movq	%r15, 48(%rsp)
	movq	%r13, 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)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_HEVC_BIW_RND_CLIP4
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	movq	%r15, %r9
	callq	_PCKEV_B2_SH
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_ST_SH2
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r14
	movq	%rbx, %r8
	movq	%r13, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %rbx
	movq	%rax, 16(%rsp)
	movq	%r14, 8(%rsp)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_HEVC_BIW_RND_CLIP2
	movq	%rbx, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	___msa_pckev_b
	leaq	64(%r12), %rcx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%r15d, %r8d
	callq	_ST_D2
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movq	-168(%rbp), %r15                ## 8-byte Reload
	addq	-152(%rbp), %r15                ## 8-byte Folded Reload
	addq	-144(%rbp), %r13                ## 8-byte Folded Reload
	addq	-136(%rbp), %r12                ## 8-byte Folded Reload
	movq	%r12, -128(%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_24w_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_24w_msa
_hevc_hz_biwgt_4t_24w_msa:              ; @hevc_hz_biwgt_4t_24w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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, x6
	mov	x25, x5
	stur	x4, [x29, #-96]                 ; 8-byte Folded Spill
	stp	w1, w3, [x29, #-116]            ; 8-byte Folded Spill
	mov	x22, x2
	mov	x23, x0
	ldrh	w26, [x29, #16]
	ldp	w21, w8, [x29, #20]
	stur	w8, [x29, #-104]                ; 4-byte Folded Spill
	ldp	w27, 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	x20, x23, #4
	mov	x0, x19
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	ldur	w8, [x29, #-104]                ; 4-byte Folded Reload
	add	w8, w27, w8
	lsl	w8, w8, w28
	bfi	w26, w21, #16, #16
	add	w0, w8, w21, lsl #13
	bl	___msa_fill_w
	str	w0, [sp, #116]                  ; 4-byte Folded Spill
	mov	x0, x26
	bl	___msa_fill_w
	str	w0, [sp, #100]                  ; 4-byte Folded Spill
	add	w0, w28, #1
	bl	___msa_fill_w
	str	w0, [sp, #96]                   ; 4-byte Folded Spill
	ldp	w8, w9, [x29, #-116]            ; 8-byte Folded Reload
	lsl	w8, w8, #1
	lsl	w9, w9, #1
	add	x10, x24, #2
	str	x10, [sp, #88]                  ; 8-byte Folded Spill
	str	w25, [sp, #120]                 ; 4-byte Folded Spill
	lsl	w10, w25, #1
	add	x11, x24, #8
	sbfiz	x8, x8, #2, #32
	stp	x8, x11, [sp, #72]              ; 16-byte Folded Spill
	str	x24, [sp, #104]                 ; 8-byte Folded Spill
	add	x11, x24, #10
	sbfiz	x8, x9, #2, #32
	stp	x8, x11, [sp, #56]              ; 16-byte Folded Spill
	mov	w8, #-16
	sbfiz	x9, x10, #2, #32
	str	x9, [sp, #48]                   ; 8-byte Folded Spill
	mov	x19, x24
	ldr	x25, [sp, #88]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #116]                 ; 4-byte Folded Reload
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	stur	w8, [x29, #-108]                ; 4-byte Folded Spill
	stur	x20, [x29, #-104]               ; 8-byte Folded Spill
	mov	x0, x20
	ldur	w23, [x29, #-116]               ; 4-byte Folded Reload
	mov	x1, x23
	bl	_LD_SB2
	add	x0, x20, #64
	mov	x1, x23
	bl	_LD_SB2
	mov	x0, x22
	ldur	w23, [x29, #-112]               ; 4-byte Folded Reload
	mov	x1, x23
	bl	_LD_SH2
	add	x0, x22, #32
	mov	x1, x23
	bl	_LD_SH2
	add	x0, x22, #64
	mov	x1, x23
	bl	_LD_SH2
	bl	_XORI_B4_128_SB
	mov	x4, x19
	mov	x5, x25
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x27, x0
	ldr	x20, [sp, #80]                  ; 8-byte Folded Reload
	mov	x4, x20
	ldr	x21, [sp, #64]                  ; 8-byte Folded Reload
	mov	x5, x21
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	mov	x4, x19
	mov	x5, x25
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	mov	x4, x20
	mov	x5, x21
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x26, x0
	stp	x23, x0, [sp, #32]
	stp	x27, x28, [sp, #16]
	ldp	w21, w20, [sp, #96]             ; 8-byte Folded Reload
	stp	w21, w24, [sp, #4]
	str	w20, [sp]
	mov	x0, x27
	mov	x1, x28
	mov	x2, x23
	mov	x3, x26
	bl	_HEVC_BIW_RND_CLIP4
	mov	x0, x28
	mov	x1, x27
	mov	x2, x26
	mov	x3, x23
	mov	x4, x27
	mov	x5, x28
	bl	_PCKEV_B2_SH
	mov	x0, x27
	mov	x1, x28
	ldur	x28, [x29, #-96]                ; 8-byte Folded Reload
	mov	x2, x28
	ldr	w27, [sp, #120]                 ; 4-byte Folded Reload
	mov	x3, x27
	bl	_ST_SH2
	mov	x4, x19
	mov	x5, x25
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x23, x0
	mov	x4, x19
	mov	x5, x25
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x26, x0
	str	x0, [sp]
	mov	x0, x23
	mov	x1, x26
	mov	x4, x20
	ldur	x20, [x29, #-104]               ; 8-byte Folded Reload
	mov	x5, x21
	mov	x6, x24
	mov	x7, x23
	bl	_HEVC_BIW_RND_CLIP2
	mov	x0, x26
	mov	x1, x23
	bl	___msa_pckev_b
	add	x3, x28, #64
	mov	w1, #0
	mov	w2, #1
	mov	x4, x27
	bl	_ST_D2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	ldp	x9, x8, [sp, #48]               ; 16-byte Folded Reload
	add	x22, x22, x8
	ldur	w8, [x29, #-108]                ; 4-byte Folded Reload
	add	x28, x28, x9
	stur	x28, [x29, #-96]                ; 8-byte Folded Spill
	adds	w8, w8, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	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_24w_msa
.subsections_via_symbols
