	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avc_biwgt_8x8_msa
_avc_biwgt_8x8_msa:                     ## @avc_biwgt_8x8_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	16(%rbp), %eax
	incl	%eax
	orl	$1, %eax
	shll	%cl, %eax
	movl	%r9d, %r15d
                                        ## kill: def $r8d killed $r8d def $r8
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leal	(%r15,%r8), %ebx
	shll	$7, %ebx
	addl	%eax, %ebx
	movl	%r8d, %edi
	callq	___msa_fill_b
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	___msa_fill_b
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, %r13d
	incl	%r12d
	movl	%r12d, %edi
	callq	___msa_fill_h
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	___msa_ilvev_b
	movl	%eax, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	leal	(,%rbx,4), %eax
	movslq	%eax, %r14
	leaq	(%r12,%r14,4), %rdi
	movl	%ebx, %esi
	movq	%rbx, %r12
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	leaq	(%rbx,%r14,4), %rdi
	movl	%r12d, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	subq	$16, %rsp
	callq	_XORI_B8_128_UB
	addq	$16, %rsp
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	callq	_ILVRL_B2_SB
	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	%eax, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, %r14d
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	___msa_dpadd_s_h
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	___msa_dpadd_s_h
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r15d
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %r8d
	callq	_SRA_4V
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r13d, %r8d
	callq	_SRA_4V
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r9d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	pushq	%r13
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	pushq	%r12
	callq	_CLIP_SH8_0_255
	addq	$16, %rsp
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_PCKEV_B2_UB
	movl	%r15d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_PCKEV_B2_UB
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	$1
	pushq	$0
	pushq	$1
	pushq	$0
	pushq	$1
	pushq	$0
	callq	_ST_D8
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_avc_biwgt_8x8_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_8x8_msa
_avc_biwgt_8x8_msa:                     ; @avc_biwgt_8x8_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x5
	mov	x23, x3
	mov	x20, x2
	mov	x27, x1
	mov	x24, x0
	add	w8, w6, #1
	orr	w8, w8, #0x1
	lsl	w8, w8, w3
	add	w9, w5, w4
	add	w22, w8, w9, lsl #7
	mov	x0, x4
	bl	___msa_fill_b
	mov	x25, x0
	mov	x0, x21
	bl	___msa_fill_b
	mov	x26, x0
	mov	x0, x22
	bl	___msa_fill_h
	mov	x22, x0
	add	w0, w23, #1
	bl	___msa_fill_h
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x26
	mov	x1, x25
	bl	___msa_ilvev_b
	mov	x23, x0
	mov	x0, x24
	mov	x1, x20
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	lsl	w8, w20, #2
	sbfiz	x19, x8, #2, #32
	add	x0, x24, x19
	mov	x1, x20
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x27
	mov	x1, x20
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	add	x0, x27, x19
	mov	x1, x20
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	bl	_XORI_B8_128_UB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	bl	_ILVRL_B2_SB
	mov	x0, x22
	mov	x1, x23
	bl	___msa_dpadd_s_h
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	bl	___msa_dpadd_s_h
	mov	x25, x0
	mov	x0, x22
	mov	x1, x23
	bl	___msa_dpadd_s_h
	mov	x26, x0
	mov	x0, x22
	mov	x1, x23
	bl	___msa_dpadd_s_h
	mov	x27, x0
	mov	x0, x22
	mov	x1, x23
	bl	___msa_dpadd_s_h
	mov	x28, x0
	mov	x0, x22
	mov	x1, x23
	bl	___msa_dpadd_s_h
	mov	x19, x0
	mov	x0, x22
	mov	x1, x23
	bl	___msa_dpadd_s_h
	mov	x21, x0
	mov	x0, x22
	mov	x1, x23
	bl	___msa_dpadd_s_h
	mov	x22, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	mov	x3, x27
	ldr	w23, [sp, #44]                  ; 4-byte Folded Reload
	mov	x4, x23
	bl	_SRA_4V
	mov	x0, x28
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	bl	_SRA_4V
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	mov	x3, x27
	mov	x4, x28
	mov	x5, x19
	mov	x6, x21
	mov	x7, x22
	bl	_CLIP_SH8_0_255
	mov	x0, x25
	mov	x1, x24
	mov	x2, x27
	mov	x3, x26
	bl	_PCKEV_B2_UB
	mov	x0, x19
	mov	x1, x28
	mov	x2, x22
	mov	x3, x21
	bl	_PCKEV_B2_UB
	str	w20, [sp, #24]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	mov	x8, #4294967296
	stp	x8, x9, [sp, #8]
	str	x8, [sp]
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	mov	w7, #1
	bl	_ST_D8
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_avc_biwgt_8x8_msa
.subsections_via_symbols
