	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avc_biwgt_4x4_msa
_avc_biwgt_4x4_msa:                     ## @avc_biwgt_4x4_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	16(%rbp), %eax
	incl	%eax
	orl	$1, %eax
	shll	%cl, %eax
	movl	%r9d, %r12d
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leal	(%r12,%r8), %ebx
	shll	$7, %ebx
	addl	%eax, %ebx
	movl	%r8d, %edi
	callq	___msa_fill_b
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	___msa_fill_b
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, %r13d
	incl	%r14d
	movl	%r14d, %edi
	callq	___msa_fill_h
	movl	%eax, %r14d
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	___msa_ilvev_b
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_LW4
	callq	_INSERT_W4_UB
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LW4
	callq	_INSERT_W4_UB
	callq	_XORI_B2_128_UB
	callq	_ILVRL_B2_SB
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	___msa_dpadd_s_h
	movl	%r14d, %ecx
	sarl	%cl, %r12d
	movl	%eax, %ebx
	sarl	%cl, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_CLIP_SH2_0_255
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	___msa_pckev_b
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsp)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$3, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_ST_W4
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_avc_biwgt_4x4_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avc_biwgt_4x4_msa
_avc_biwgt_4x4_msa:                     ; @avc_biwgt_4x4_msa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x5
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	add	w8, w6, #1
	orr	w8, w8, #0x1
	lsl	w8, w8, w3
	add	w9, w5, w4
	add	w24, w8, w9, lsl #7
	mov	x0, x4
	bl	___msa_fill_b
	mov	x25, x0
	mov	x0, x21
	bl	___msa_fill_b
	mov	x21, x0
	mov	x0, x24
	bl	___msa_fill_h
	mov	x24, x0
	add	w0, w22, #1
	bl	___msa_fill_h
	mov	x22, x0
	mov	x0, x21
	mov	x1, x25
	bl	___msa_ilvev_b
	mov	x21, x0
	mov	x0, x23
	mov	x1, x19
	bl	_LW4
	bl	_INSERT_W4_UB
	mov	x0, x20
	mov	x1, x19
	bl	_LW4
	bl	_INSERT_W4_UB
	bl	_XORI_B2_128_UB
	bl	_ILVRL_B2_SB
	mov	x0, x24
	mov	x1, x21
	bl	___msa_dpadd_s_h
	mov	x23, x0
	mov	x0, x24
	mov	x1, x21
	bl	___msa_dpadd_s_h
	asr	w21, w23, w22
	asr	w22, w0, w22
	mov	x0, x21
	mov	x1, x22
	bl	_CLIP_SH2_0_255
	mov	x0, x22
	mov	x1, x21
	bl	___msa_pckev_b
	mov	w1, #0
	mov	w2, #1
	mov	w3, #2
	mov	w4, #3
	mov	x5, x20
	mov	x6, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ST_W4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_avc_biwgt_4x4_msa
.subsections_via_symbols
