	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_biwgt_8t_24w_msa
_hevc_hz_biwgt_8t_24w_msa:              ## @hevc_hz_biwgt_8t_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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -80(%rbp)                 ## 4-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movzwl	32(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %r12d
	movl	64(%rbp), %r14d
	movl	56(%rbp), %ebx
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LD_SB
	movq	%rax, %r13
	addl	48(%rbp), %ebx
	leaq	-12(%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, %ecx
	shll	%cl, %ebx
	movl	%r12d, %r15d
	shll	$16, %r15d
	addl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	shll	$13, %r12d
	addl	%ebx, %r12d
	movl	%r12d, %edi
	callq	___msa_fill_w
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	%r15d, %edi
	callq	___msa_fill_w
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	incl	%r14d
	movl	%r14d, %edi
	callq	___msa_fill_w
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_LD_SH
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SH
	leaq	2(%r13), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	leaq	4(%r13), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leaq	6(%r13), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leaq	8(%r13), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	10(%r13), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	leaq	12(%r13), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r13, -176(%rbp)                ## 8-byte Spill
	addq	$14, %r13
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	$16, %esi
	callq	_LD_SB2
	movslq	-64(%rbp), %r14                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_LD_SH2
	leaq	64(%rbx), %rdi
	movq	%rbx, %r12
	callq	_LD_SH
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	-72(%rbp), %rbx                 ## 4-byte Folded Reload
	callq	_XORI_B2_128_SB
	movslq	-80(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r14,4), %r15
	addq	$-12, %r15
	shlq	$2, %r14
	movq	%r14, -216(%rbp)                ## 8-byte Spill
	leaq	(%r12,%rbx,4), %r12
	shlq	$2, %rbx
	movq	%rbx, -208(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movl	$-31, %ecx
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-168(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	movq	-160(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	movq	-152(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	movq	-120(%rbp), %r9                 ## 8-byte Reload
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, %r12
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r15, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, %r13
	movq	-192(%rbp), %r14                ## 8-byte Reload
	movq	%r14, (%rsp)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-184(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_HEVC_BIW_RND_CLIP2
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_ILVRL_H2_SW
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	___msa_dpadd_s_w
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	callq	___msa_dpadd_s_w
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_SRAR_W2_SW
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	___msa_pckev_h
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_CLIP_SH_0_255
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_LD_SB2
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_LD_SH2
	leaq	64(%r12), %rdi
	callq	_LD_SH
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_XORI_B2_128_SB
	movq	%r14, %rdx
	movq	%r14, %rcx
	movq	%r14, %r9
	callq	_PCKEV_B2_SH
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r14d
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ST_SH
	leaq	64(%rbx), %rsi
	movl	%r14d, %edi
	callq	_SD
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	addq	-216(%rbp), %r15                ## 8-byte Folded Reload
	addq	-208(%rbp), %r12                ## 8-byte Folded Reload
	addq	-200(%rbp), %rbx                ## 8-byte Folded Reload
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	incl	%ecx
	jne	LBB0_1
## %bb.2:
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-168(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rcx
	movq	-160(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	movq	-152(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	movq	-120(%rbp), %r9                 ## 8-byte Reload
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, %r15
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, %r12
	movq	-192(%rbp), %r13                ## 8-byte Reload
	movq	%r13, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-184(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_HEVC_BIW_RND_CLIP2
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_ILVRL_H2_SW
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	___msa_dpadd_s_w
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	___msa_dpadd_s_w
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_SRAR_W2_SW
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___msa_pckev_h
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_CLIP_SH_0_255
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	movq	%rbx, %r9
	callq	_PCKEV_B2_SH
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r14d
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ST_SH
	addq	$64, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SD                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_hevc_mask_arr,8,3           ## @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hz_biwgt_8t_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_8t_24w_msa
_hevc_hz_biwgt_8t_24w_msa:              ; @hevc_hz_biwgt_8t_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	x22, x6
	stp	x5, x4, [x29, #-104]            ; 16-byte Folded Spill
	stur	x3, [x29, #-112]                ; 8-byte Folded Spill
	mov	x24, x2
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	mov	x23, x0
	ldrh	w21, [x29, #16]
	ldp	w20, 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	x19, x0
	sub	x28, x23, #12
	add	w8, w27, w25
	lsl	w8, w8, w26
	bfi	w21, w20, #16, #16
	add	w0, w8, w20, lsl #13
	bl	___msa_fill_w
	str	x0, [sp, #120]                  ; 8-byte Folded Spill
	mov	x0, x21
	bl	___msa_fill_w
	str	x0, [sp, #112]                  ; 8-byte Folded Spill
	add	w0, w26, #1
	bl	___msa_fill_w
	str	x0, [sp, #104]                  ; 8-byte Folded Spill
	mov	x0, x22
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	bl	_SPLATI_H4_SH
	add	x9, x19, #2
	add	x8, x19, #4
	stp	x8, x9, [sp, #80]               ; 16-byte Folded Spill
	add	x9, x19, #6
	add	x8, x19, #8
	stp	x8, x9, [sp, #64]               ; 16-byte Folded Spill
	add	x9, x19, #10
	add	x8, x19, #12
	stp	x8, x9, [sp, #48]               ; 16-byte Folded Spill
	str	x19, [sp, #96]                  ; 8-byte Folded Spill
	add	x8, x19, #14
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	x0, x28
	mov	w1, #16
	bl	_LD_SB2
	mov	x0, x24
	mov	w1, #8
	bl	_LD_SH2
	add	x0, x24, #64
	bl	_LD_SH
	mov	x26, x0
	bl	_XORI_B2_128_SB
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	x8, x8, x23
	sub	x21, x8, #12
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x24, x24, x8
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	w8, #-31
                                        ; implicit-def: $x28
                                        ; implicit-def: $x27
	ldr	x22, [sp, #80]                  ; 8-byte Folded Reload
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	stur	w8, [x29, #-112]                ; 4-byte Folded Spill
	stur	x21, [x29, #-104]               ; 8-byte Folded Spill
	ldp	x20, x19, [sp, #88]             ; 16-byte Folded Reload
	mov	x2, x19
	mov	x3, x20
	mov	x4, x22
	mov	x21, x27
	ldr	x27, [sp, #72]                  ; 8-byte Folded Reload
	mov	x5, x27
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x25, x0
	ldp	x3, x2, [sp, #56]               ; 16-byte Folded Reload
	ldp	x5, x4, [sp, #40]               ; 16-byte Folded Reload
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x23, x26
	mov	x26, x0
	mov	x2, x19
	mov	x3, x20
	mov	x4, x22
	mov	x5, x27
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x20, x0
	mov	x0, x25
	mov	x1, x26
	ldp	x19, x26, [sp, #104]            ; 16-byte Folded Reload
	mov	x4, x26
	mov	x5, x19
	ldr	x25, [sp, #120]                 ; 8-byte Folded Reload
	mov	x6, x25
	bl	_HEVC_BIW_RND_CLIP2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x28
	bl	_ILVRL_H2_SW
	mov	x0, x25
	mov	x1, x21
	ldur	x21, [x29, #-104]               ; 8-byte Folded Reload
	mov	x2, x26
	bl	___msa_dpadd_s_w
	mov	x27, x0
	mov	x0, x25
	mov	x1, x28
	mov	x2, x26
	bl	___msa_dpadd_s_w
	mov	x28, x0
	mov	x0, x27
	mov	x1, x28
	mov	x2, x19
	bl	_SRAR_W2_SW
	mov	x0, x28
	mov	x1, x27
	bl	___msa_pckev_h
	mov	x20, x0
	bl	_CLIP_SH_0_255
	mov	x0, x21
	mov	w1, #16
	bl	_LD_SB2
	mov	x0, x24
	mov	w1, #8
	bl	_LD_SH2
	add	x0, x24, #64
	bl	_LD_SH
	mov	x26, x0
	bl	_XORI_B2_128_SB
	mov	x2, x20
	mov	x3, x20
	mov	x5, x20
	bl	_PCKEV_B2_SH
	mov	x0, x20
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x20, x0
	ldur	x19, [x29, #-96]                ; 8-byte Folded Reload
	mov	x1, x19
	bl	_ST_SH
	add	x1, x19, #64
	mov	x0, x20
	bl	_SD
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x21, x21, x8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x19, x19, x8
	ldur	w8, [x29, #-112]                ; 4-byte Folded Reload
	stur	x19, [x29, #-96]                ; 8-byte Folded Spill
	adds	w8, w8, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x21, x19, [sp, #88]             ; 16-byte Folded Reload
	mov	x2, x19
	mov	x3, x21
	ldp	x24, x22, [sp, #72]             ; 16-byte Folded Reload
	mov	x4, x22
	mov	x5, x24
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x20, x0
	ldp	x3, x2, [sp, #56]               ; 16-byte Folded Reload
	ldp	x5, x4, [sp, #40]               ; 16-byte Folded Reload
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x23, x0
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	mov	x5, x24
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x24, x0
	mov	x0, x20
	mov	x1, x23
	ldp	x19, x23, [sp, #104]            ; 16-byte Folded Reload
	mov	x4, x23
	mov	x5, x19
	ldr	x21, [sp, #120]                 ; 8-byte Folded Reload
	mov	x6, x21
	bl	_HEVC_BIW_RND_CLIP2
	mov	x0, x24
	mov	x1, x26
	mov	x2, x27
	mov	x3, x28
	bl	_ILVRL_H2_SW
	mov	x0, x21
	mov	x1, x27
	mov	x2, x23
	bl	___msa_dpadd_s_w
	mov	x20, x0
	mov	x0, x21
	mov	x1, x28
	mov	x2, x23
	bl	___msa_dpadd_s_w
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_SRAR_W2_SW
	mov	x0, x21
	mov	x1, x20
	bl	___msa_pckev_h
	mov	x20, x0
	bl	_CLIP_SH_0_255
	mov	x2, x20
	mov	x3, x20
	mov	x5, x20
	bl	_PCKEV_B2_SH
	mov	x0, x20
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x20, x0
	ldur	x19, [x29, #-96]                ; 8-byte Folded Reload
	mov	x1, x19
	bl	_ST_SH
	add	x1, x19, #64
	mov	x0, x20
	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
	b	_SD
	.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_24w_msa
.subsections_via_symbols
