	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hv_biwgt_4t_8x2_msa
_hevc_hv_biwgt_4t_8x2_msa:              ## @hevc_hv_biwgt_4t_8x2_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -76(%rbp)                 ## 4-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%esi, %ebx
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movzwl	32(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %r13d
	movl	64(%rbp), %r14d
	movl	56(%rbp), %r12d
	movq	24(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r15
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LD_SB
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	notl	%ebx
	movslq	%ebx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_LD_SH
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_LD_SH
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%rax, %rsi
	callq	_UNPCK_R_SB_SH
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SPLATI_W2_SH
	addl	48(%rbp), %r12d
	movl	%r14d, %ecx
	shll	%cl, %r12d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	2(%rax), %r15
	movl	%r13d, %ebx
	shll	$16, %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	shll	$7, %r13d
	movl	%r13d, %edi
	callq	___msa_fill_w
	movl	%eax, %r13d
	shll	$6, %r13d
	movl	%r12d, %edi
	callq	___msa_fill_w
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	___msa_fill_w
	cltq
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	incl	%r14d
	movl	%r14d, %edi
	callq	___msa_fill_w
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%r13d, %r12d
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_SB5
	callq	_XORI_B5_128_SB
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_SH2
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r14
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %rbx
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r15
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r13
	callq	_HEVC_FILT_4TAP_SH
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ILVRL_H2_SH
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ILVRL_H2_SH
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ILVRL_H2_SH
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ILVRL_H2_SH
	callq	_HEVC_FILT_4TAP
	movl	%eax, %r14d
	callq	_HEVC_FILT_4TAP
	movl	%eax, %r15d
	callq	_HEVC_FILT_4TAP
	movl	%eax, %r12d
	callq	_HEVC_FILT_4TAP
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	$6, %r8d
	callq	_SRA_4V
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_PCKEV_H2_SH
	callq	_ILVRL_H2_SH
	callq	_ILVRL_H2_SH
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	___msa_dpadd_s_w
	movl	%eax, %r14d
	movl	%ebx, %edi
	movq	%r13, %rdx
	callq	___msa_dpadd_s_w
	movl	%eax, %r15d
	movl	%ebx, %edi
	movq	%r13, %rdx
	callq	___msa_dpadd_s_w
	movl	%eax, %r12d
	movl	%ebx, %edi
	movq	%r13, %rdx
	callq	___msa_dpadd_s_w
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_SRAR_W4_SW
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_PCKEV_H2_SH
	callq	_CLIP_SH2_0_255
	callq	___msa_pckev_b
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ST_D2                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_hevc_mask_arr,4,2           ## @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hv_biwgt_4t_8x2_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_hv_biwgt_4t_8x2_msa
_hevc_hv_biwgt_4t_8x2_msa:              ; @hevc_hv_biwgt_4t_8x2_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x7
	mov	x22, x6
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	str	x2, [sp]                        ; 8-byte Folded Spill
	mov	x27, x1
	mov	x19, x0
	ldrh	w23, [x29, #16]
	ldp	w20, w28, [x29, #20]
	ldp	w26, w25, [x29, #28]
Lloh0:
	adrp	x8, _ff_hevc_mask_arr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_hevc_mask_arr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LD_SB
	mov	x24, x0
	mvn	w8, w27
	add	x19, x19, w8, sxtw #2
	mov	x0, x22
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	mov	x0, x21
	bl	_LD_SH
	mov	x21, x0
	mov	x1, x0
	bl	_UNPCK_R_SB_SH
	mov	x0, x21
	mov	w1, #0
	bl	_SPLATI_W2_SH
	add	w8, w26, w28
	lsl	w21, w8, w25
	add	x28, x24, #2
	bfi	w23, w20, #16, #16
	lsl	w0, w20, #7
	bl	___msa_fill_w
	mov	x20, x0
	mov	x0, x21
	bl	___msa_fill_w
	mov	x21, x0
	mov	x0, x23
	bl	___msa_fill_w
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	add	w0, w25, #1
	bl	___msa_fill_w
	mov	x26, x0
	add	w23, w21, w20, lsl #6
	mov	x0, x19
	mov	x1, x27
	bl	_LD_SB5
	bl	_XORI_B5_128_SB
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_LD_SH2
	mov	x4, x24
	mov	x5, x28
	bl	_VSHF_B2_SB
	mov	x4, x24
	mov	x5, x28
	bl	_VSHF_B2_SB
	mov	x4, x24
	mov	x5, x28
	bl	_VSHF_B2_SB
	mov	x4, x24
	mov	x5, x28
	bl	_VSHF_B2_SB
	mov	x4, x24
	mov	x5, x28
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x19, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x20, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x21, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x24, x0
	bl	_HEVC_FILT_4TAP_SH
	mov	x25, x0
	mov	x0, x20
	mov	x1, x19
	bl	_ILVRL_H2_SH
	mov	x0, x21
	mov	x1, x20
	bl	_ILVRL_H2_SH
	mov	x0, x24
	mov	x1, x21
	bl	_ILVRL_H2_SH
	mov	x0, x25
	mov	x1, x24
	bl	_ILVRL_H2_SH
	bl	_HEVC_FILT_4TAP
	mov	x19, x0
	bl	_HEVC_FILT_4TAP
	mov	x20, x0
	bl	_HEVC_FILT_4TAP
	mov	x21, x0
	bl	_HEVC_FILT_4TAP
	mov	x24, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x24
	mov	w4, #6
	bl	_SRA_4V
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x21
	bl	_PCKEV_H2_SH
	bl	_ILVRL_H2_SH
	bl	_ILVRL_H2_SH
	mov	x0, x23
	mov	x2, x22
	bl	___msa_dpadd_s_w
	mov	x19, x0
	mov	x0, x23
	mov	x2, x22
	bl	___msa_dpadd_s_w
	mov	x20, x0
	mov	x0, x23
	mov	x2, x22
	bl	___msa_dpadd_s_w
	mov	x21, x0
	mov	x0, x23
	mov	x2, x22
	bl	___msa_dpadd_s_w
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x26
	bl	_SRAR_W4_SW
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_PCKEV_H2_SH
	bl	_CLIP_SH2_0_255
	bl	___msa_pckev_b
	mov	w1, #0
	mov	w2, #1
	ldr	x3, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w4, [sp, #28]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ST_D2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_hevc_mask_arr,4,2           ; @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hv_biwgt_4t_8x2_msa
.subsections_via_symbols
