	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_hz_biwgt_8t_12w_msa
_hevc_hz_biwgt_8t_12w_msa:              ## @hevc_hz_biwgt_8t_12w_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	$264, %rsp                      ## imm = 0x108
	.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, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	64(%rbp), %r14d
	movl	56(%rbp), %edi
	movzwl	32(%rbp), %eax
	movl	40(%rbp), %edx
	addq	$-12, %r13
	movl	%edx, %r12d
	shll	$16, %r12d
	orl	%eax, %r12d
	shll	$13, %edx
	addl	48(%rbp), %edi
	movl	%r14d, %ecx
	shll	%cl, %edi
	addl	%edx, %edi
	callq	___msa_fill_w
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	___msa_fill_w
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	incl	%r14d
	movl	%r14d, %edi
	callq	___msa_fill_w
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rdi
	callq	_LD_SH
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_SPLATI_H4_SH
	movq	_ff_hevc_mask_arr@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_LD_SB
	leaq	2(%rax), %rcx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	leaq	4(%rax), %rcx
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	addq	$6, %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	(%r14), %rdi
	addq	$64, %rdi
	callq	_LD_SB
	leaq	2(%rax), %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	leaq	4(%rax), %rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	addq	$6, %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	leal	(,%r15,4), %eax
	movslq	%eax, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	shlq	$2, %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$-4, %eax
                                        ## implicit-def: $r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, -224(%rbp)                ## 8-byte Spill
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SH4
	callq	_XORI_B4_128_SB
	movq	-208(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	movq	-200(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	movq	-192(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r8
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%rbx, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%rbx, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%rbx, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%r15, 40(%rsp)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 32(%rsp)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 24(%rsp)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-232(%rbp), %rsi                ## 8-byte Reload
	movq	-216(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, %rcx
	callq	_HEVC_BIW_RND_CLIP4
	movq	%r15, %rsi
	movq	%r15, %r8
	callq	_PCKEV_B2_SH
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%rsp)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, (%rsp)
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ST_D4
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	32(%rax), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SB4
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	32(%rax), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SH4
	callq	_ILVR_D2_SH
	callq	_XORI_B4_128_SB
	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), %r15                ## 8-byte Reload
	movq	%r15, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	movq	%r15, %r9
	callq	_VSHF_B4_SB
	callq	_HEVC_FILT_8TAP_SH
	movq	-224(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, 8(%rsp)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_HEVC_BIW_RND_CLIP2
	movq	%rbx, %rsi
	callq	___msa_pckev_b
	movq	%rax, %r15
	leaq	32(%r14), %r9
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	callq	_ST_W4
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movq	-120(%rbp), %r13                ## 8-byte Reload
	addq	-144(%rbp), %r13                ## 8-byte Folded Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	addq	-136(%rbp), %rbx                ## 8-byte Folded Reload
	addq	-128(%rbp), %r14                ## 8-byte Folded Reload
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	incl	%eax
	jne	LBB0_1
## %bb.2:
	addq	$264, %rsp                      ## imm = 0x108
	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_12w_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_12w_msa
_hevc_hz_biwgt_8t_12w_msa:              ; @hevc_hz_biwgt_8t_12w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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, #-120]                ; 8-byte Folded Spill
	mov	x26, x3
	mov	x20, x2
	mov	x27, x1
	ldp	w8, w23, [x29, #28]
	ldp	w10, w9, [x29, #20]
	ldrh	w21, [x29, #16]
	sub	x22, x0, #12
	bfi	w21, w10, #16, #16
	add	w8, w8, w9
	lsl	w8, w8, w23
	add	w0, w8, w10, lsl #13
	bl	___msa_fill_w
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
	mov	x0, x21
	bl	___msa_fill_w
	stur	w0, [x29, #-140]                ; 4-byte Folded Spill
	add	w0, w23, #1
	bl	___msa_fill_w
	str	w0, [sp, #144]                  ; 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
Lloh0:
	adrp	x19, _ff_hevc_mask_arr@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ff_hevc_mask_arr@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_LD_SB
	add	x9, x0, #2
	add	x8, x0, #4
	stp	x8, x9, [sp, #120]              ; 16-byte Folded Spill
	str	x0, [sp, #136]                  ; 8-byte Folded Spill
	add	x8, x0, #6
	str	x8, [sp, #112]                  ; 8-byte Folded Spill
	ldr	x8, [x19]
	add	x0, x8, #64
	bl	_LD_SB
	stp	w27, w26, [x29, #-136]          ; 8-byte Folded Spill
	lsl	w8, w27, #2
	lsl	w9, w26, #2
	add	x10, x0, #2
	str	x10, [sp, #96]                  ; 8-byte Folded Spill
	stur	w25, [x29, #-128]               ; 4-byte Folded Spill
	lsl	w10, w25, #2
	add	x11, x0, #4
	sbfiz	x8, x8, #2, #32
	stp	x8, x11, [sp, #80]              ; 16-byte Folded Spill
	str	x0, [sp, #104]                  ; 8-byte Folded Spill
	add	x11, x0, #6
	sbfiz	x8, x9, #2, #32
	stp	x8, x11, [sp, #64]              ; 16-byte Folded Spill
                                        ; implicit-def: $x25
	mov	w8, #-4
	sbfiz	x9, x10, #2, #32
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	stur	w8, [x29, #-124]                ; 4-byte Folded Spill
	stp	x22, x20, [x29, #-104]          ; 16-byte Folded Spill
	mov	x0, x22
	ldur	w24, [x29, #-136]               ; 4-byte Folded Reload
	mov	x1, x24
	bl	_LD_SB4
	mov	x0, x20
	ldur	w21, [x29, #-132]               ; 4-byte Folded Reload
	mov	x1, x21
	bl	_LD_SH4
	bl	_XORI_B4_128_SB
	ldp	x23, x20, [sp, #128]            ; 16-byte Folded Reload
	mov	x2, x20
	mov	x3, x23
	ldp	x22, x28, [sp, #112]            ; 16-byte Folded Reload
	mov	x4, x28
	mov	x5, x22
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x27, x0
	mov	x2, x20
	mov	x3, x23
	mov	x4, x28
	mov	x5, x22
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x26, x0
	mov	x2, x20
	mov	x3, x23
	mov	x4, x28
	mov	x5, x22
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x19, x0
	mov	x2, x20
	mov	x3, x23
	mov	x4, x28
	mov	x5, x22
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x3, x0
	str	x25, [sp, #16]
	ldur	w8, [x29, #-108]                ; 4-byte Folded Reload
	ldr	w20, [sp, #144]                 ; 4-byte Folded Reload
	stp	w20, w8, [sp, #4]
	ldur	w23, [x29, #-140]               ; 4-byte Folded Reload
	str	w23, [sp]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x19
	bl	_HEVC_BIW_RND_CLIP4
	mov	x1, x25
	mov	x4, x25
	bl	_PCKEV_B2_SH
	mov	x0, x25
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	ldur	x27, [x29, #-120]               ; 8-byte Folded Reload
	mov	x6, x27
	ldur	w26, [x29, #-128]               ; 4-byte Folded Reload
	mov	x7, x26
	bl	_ST_D4
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	x0, x8, #32
	mov	x1, x24
	bl	_LD_SB4
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	add	x0, x8, #32
	mov	x1, x21
	bl	_LD_SH4
	bl	_ILVR_D2_SH
	bl	_XORI_B4_128_SB
	ldp	x24, x22, [sp, #96]             ; 16-byte Folded Reload
	mov	x2, x22
	mov	x3, x24
	ldr	x21, [sp, #88]                  ; 8-byte Folded Reload
	mov	x4, x21
	ldr	x28, [sp, #72]                  ; 8-byte Folded Reload
	mov	x5, x28
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x19, x0
	mov	x2, x22
	ldur	x22, [x29, #-104]               ; 8-byte Folded Reload
	mov	x3, x24
	mov	x4, x21
	mov	x5, x28
	bl	_VSHF_B4_SB
	bl	_HEVC_FILT_8TAP_SH
	mov	x1, x0
	mov	x0, x19
	mov	x4, x23
	mov	x5, x20
	ldur	x20, [x29, #-96]                ; 8-byte Folded Reload
	ldur	w6, [x29, #-108]                ; 4-byte Folded Reload
	mov	x7, x25
	bl	_HEVC_BIW_RND_CLIP2
	mov	x1, x25
	bl	___msa_pckev_b
	mov	x25, x0
	add	x5, x27, #32
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	mov	x6, x26
	bl	_ST_W4
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	add	x22, x22, x8
	ldp	x9, x8, [sp, #56]               ; 16-byte Folded Reload
	add	x20, x20, x8
	ldur	w8, [x29, #-124]                ; 4-byte Folded Reload
	add	x27, x27, x9
	stur	x27, [x29, #-120]               ; 8-byte Folded Spill
	adds	w8, w8, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_hevc_mask_arr,8,3           ; @ff_hevc_mask_arr
	.no_dead_strip	_hevc_hz_biwgt_8t_12w_msa
.subsections_via_symbols
