	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_biwgt_4t_32w_msa
_hevc_hz_biwgt_4t_32w_msa:              ## @hevc_hz_biwgt_4t_32w_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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movzwl	32(%rbp), %r13d
	movl	40(%rbp), %r14d
	movl	64(%rbp), %r12d
	movl	56(%rbp), %ebx
	movq	16(%rbp), %r15
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LD_SB
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_LD_SH
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPLATI_H2_SH
	addl	48(%rbp), %ebx
	movl	%r12d, %ecx
	shll	%cl, %ebx
	movl	%r14d, %r15d
	shll	$16, %r15d
	orl	%r13d, %r15d
	shll	$13, %r14d
	addl	%ebx, %r14d
	movl	%r14d, %edi
	callq	___msa_fill_w
	movl	%eax, %r14d
	movl	%r15d, %edi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	callq	___msa_fill_w
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	incl	%r12d
	movl	%r12d, %edi
	callq	___msa_fill_w
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	2(%rdx), %rsi
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	leaq	8(%rdx), %rsi
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	addq	$10, %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	addq	$-4, %rcx
	movslq	-64(%rbp), %rdx                 ## 4-byte Folded Reload
	movslq	-44(%rbp), %rsi                 ## 4-byte Folded Reload
	movslq	-48(%rbp), %rdi                 ## 4-byte Folded Reload
	shlq	$2, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	shlq	$2, %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$16, %esi
	callq	_LD_SB2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	96(%rax), %rdi
	callq	_LD_SB
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_LD_SH4
	movq	%r14, %rdx
	callq	_XORI_B3_128_SB
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %r12d
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	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, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	movq	%r14, %rcx
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_VSHF_B2_SB
	callq	_HEVC_FILT_4TAP_SH
	movl	%eax, %ebx
	movl	%eax, 64(%rsp)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, 56(%rsp)
	movl	%r13d, 48(%rsp)
	movl	%r12d, 40(%rsp)
	movl	%r14d, 32(%rsp)
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rsp)
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rsp)
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_HEVC_BIW_RND_CLIP4
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_PCKEV_B2_SH
	movl	%r12d, %edi
	movl	%r13d, %esi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	movl	$16, %ecx
	callq	_ST_SH2
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	-120(%rbp), %r15                ## 8-byte Folded Reload
	addq	-112(%rbp), %rbx                ## 8-byte Folded Reload
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	decl	%eax
	jne	LBB0_2
LBB0_3:
	addq	$184, %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_32w_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_32w_msa
_hevc_hz_biwgt_4t_32w_msa:              ; @hevc_hz_biwgt_4t_32w_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
	mov	x19, x7
	mov	x24, x6
	stp	x5, x3, [sp, #40]               ; 16-byte Folded Spill
	mov	x20, x4
	mov	x21, x2
	str	x1, [sp, #72]                   ; 8-byte Folded Spill
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldrh	w25, [x29, #16]
	ldp	w26, w28, [x29, #20]
	ldp	w27, w23, [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	x22, x0
	mov	x0, x24
	bl	_LD_SH
	mov	w1, #0
	mov	w2, #1
	bl	_SPLATI_H2_SH
	add	w8, w27, w28
	lsl	w8, w8, w23
	bfi	w25, w26, #16, #16
	add	w0, w8, w26, lsl #13
	bl	___msa_fill_w
	stur	w0, [x29, #-84]                 ; 4-byte Folded Spill
	mov	x0, x25
	bl	___msa_fill_w
	str	w0, [sp, #88]                   ; 4-byte Folded Spill
	add	w0, w23, #1
	bl	___msa_fill_w
	str	w0, [sp, #84]                   ; 4-byte Folded Spill
	cbz	w19, LBB0_3
; %bb.1:
	add	x26, x22, #2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	sbfiz	x9, x8, #2, #32
	add	x8, x22, #8
	stp	x8, x9, [sp, #64]               ; 16-byte Folded Spill
	add	x9, x22, #10
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	sub	x23, x8, #4
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	sbfiz	x8, x8, #2, #32
	stp	x8, x9, [sp, #48]               ; 16-byte Folded Spill
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	mov	x0, x23
	mov	w1, #16
	bl	_LD_SB2
	add	x0, x23, #96
	bl	_LD_SB
	mov	x24, x0
	mov	x0, x21
	mov	w1, #8
	bl	_LD_SH4
	mov	x2, x24
	bl	_XORI_B3_128_SB
	mov	x4, x22
	mov	x5, x26
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x25, x0
	ldp	x5, x4, [sp, #56]               ; 16-byte Folded Reload
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x27, x0
	mov	x4, x22
	mov	x5, x26
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x28, x0
	mov	x0, x24
	mov	x1, x24
	mov	x2, x24
	mov	x3, x24
	mov	x4, x22
	mov	x5, x26
	bl	_VSHF_B2_SB
	bl	_HEVC_FILT_4TAP_SH
	mov	x24, x0
	stp	w28, w0, [sp, #20]
	stp	w25, w27, [sp, #12]
	ldur	w9, [x29, #-84]                 ; 4-byte Folded Reload
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #4]
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	str	w8, [sp]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x28
	mov	x3, x24
	bl	_HEVC_BIW_RND_CLIP4
	mov	x0, x27
	mov	x1, x25
	mov	x2, x24
	mov	x3, x28
	mov	x4, x25
	mov	x5, x27
	bl	_PCKEV_B2_SH
	mov	x0, x25
	mov	x1, x27
	mov	x2, x20
	mov	w3, #16
	bl	_ST_SH2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x23, x23, x8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x21, x21, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	cbnz	w19, LBB0_2
LBB0_3:
	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_32w_msa
.subsections_via_symbols
