	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avc_biwgt_8x16_msa
_avc_biwgt_8x16_msa:                    ## @avc_biwgt_8x16_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	16(%rbp), %eax
	incl	%eax
	orl	$1, %eax
	shll	%cl, %eax
	movl	%r9d, %r14d
                                        ## kill: def $r8d killed $r8d def $r8
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	leal	(%r14,%r8), %ebx
	shll	$7, %ebx
	addl	%eax, %ebx
	movl	%r8d, %edi
	callq	___msa_fill_b
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	___msa_fill_b
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	incl	%r15d
	movl	%r15d, %edi
	callq	___msa_fill_h
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	___msa_ilvev_b
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leal	(,%rdx,4), %eax
	movslq	%eax, %rcx
	leal	(,%rdx,8), %eax
	cltq
	leaq	(,%rcx,8), %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$-2, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %r15
	callq	_LD4
	movq	-128(%rbp), %r14                ## 8-byte Reload
	leaq	(%r14,%r13), %rbx
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	movq	%r12, %rdi
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movl	%r15d, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	leaq	(%r12,%r14), %rdi
	movl	%r15d, %esi
	callq	_LD4
	callq	_INSERT_D2_UB
	callq	_INSERT_D2_UB
	callq	_XORI_B4_128_UB
	callq	_XORI_B4_128_UB
	subq	$48, %rsp
	callq	_ILVR_B4_SB
	callq	_ILVL_B4_SB
	addq	$48, %rsp
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, %r14d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, %r13d
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	___msa_dpadd_s_h
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	___msa_dpadd_s_h
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	___msa_dpadd_s_h
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	movl	%r13d, %esi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	movl	%r15d, %ecx
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_SRA_4V
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	callq	_SRA_4V
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%r12d, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r9d
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	movq	-104(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	callq	_CLIP_SH8_0_255
	subq	$16, %rsp
	movl	%r13d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	%r12
	pushq	%r15
	callq	_PCKEV_B4_UB
	addq	$48, %rsp
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	movq	-136(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	pushq	$1
	pushq	$0
	pushq	$1
	pushq	$0
	pushq	$1
	pushq	$0
	callq	_ST_D8
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	addq	$64, %rsp
	movq	-144(%rbp), %r13                ## 8-byte Reload
	addq	-112(%rbp), %r13                ## 8-byte Folded Reload
	addq	-120(%rbp), %r12                ## 8-byte Folded Reload
	incl	%eax
	jne	LBB0_1
## %bb.2:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_avc_biwgt_8x16_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_8x16_msa
_avc_biwgt_8x16_msa:                    ; @avc_biwgt_8x16_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	x22, x5
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, 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, x22
	bl	___msa_fill_b
	mov	x26, x0
	mov	x0, x24
	bl	___msa_fill_h
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	add	w0, w23, #1
	bl	___msa_fill_h
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	mov	x0, x26
	mov	x1, x25
	bl	___msa_ilvev_b
	str	w0, [sp, #64]                   ; 4-byte Folded Spill
	lsl	w8, w19, #2
	stur	w19, [x29, #-84]                ; 4-byte Folded Spill
	lsl	w9, w19, #3
	sbfiz	x10, x8, #3, #32
	sbfiz	x8, x8, #2, #32
	stp	x8, x10, [sp, #48]              ; 16-byte Folded Spill
	mov	w8, #-2
	sbfiz	x9, x9, #2, #32
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	str	x21, [sp, #80]                  ; 8-byte Folded Spill
	mov	x0, x21
	ldur	w22, [x29, #-84]                ; 4-byte Folded Reload
	mov	x1, x22
	bl	_LD4
	ldr	x19, [sp, #48]                  ; 8-byte Folded Reload
	add	x25, x21, x19
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	mov	x0, x25
	mov	x1, x22
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	mov	x0, x20
	mov	x1, x22
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	add	x0, x20, x19
	mov	x1, x22
	bl	_LD4
	bl	_INSERT_D2_UB
	bl	_INSERT_D2_UB
	bl	_XORI_B4_128_UB
	bl	_XORI_B4_128_UB
	bl	_ILVR_B4_SB
	bl	_ILVL_B4_SB
	ldr	w22, [sp, #72]                  ; 4-byte Folded Reload
	mov	x0, x22
	ldr	w24, [sp, #64]                  ; 4-byte Folded Reload
	mov	x1, x24
	bl	___msa_dpadd_s_h
	mov	x25, x0
	mov	x0, x22
	mov	x1, x24
	bl	___msa_dpadd_s_h
	mov	x26, x0
	mov	x0, x22
	mov	x1, x24
	bl	___msa_dpadd_s_h
	mov	x27, x0
	mov	x0, x22
	mov	x1, x24
	bl	___msa_dpadd_s_h
	mov	x28, x0
	mov	x0, x22
	mov	x1, x24
	bl	___msa_dpadd_s_h
	mov	x23, x0
	mov	x0, x22
	mov	x1, x24
	bl	___msa_dpadd_s_h
	mov	x19, x0
	mov	x0, x22
	mov	x1, x24
	bl	___msa_dpadd_s_h
	mov	x21, x0
	mov	x0, x22
	mov	x1, x24
	bl	___msa_dpadd_s_h
	mov	x22, x0
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	mov	x3, x28
	mov	x24, x20
	ldr	w20, [sp, #68]                  ; 4-byte Folded Reload
	mov	x4, x20
	bl	_SRA_4V
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x20
	mov	x20, x24
	bl	_SRA_4V
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	mov	x3, x28
	mov	x4, x23
	mov	x5, x19
	mov	x6, x21
	mov	x7, x22
	bl	_CLIP_SH8_0_255
	mov	x0, x26
	mov	x1, x25
	mov	x2, x28
	mov	x3, x27
	mov	x4, x19
	mov	x5, x23
	mov	x6, x22
	mov	x7, x21
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
	bl	_PCKEV_B4_UB
	ldur	w8, [x29, #-84]                 ; 4-byte Folded Reload
	str	w8, [sp, #24]
	mov	x8, #4294967296
	stp	x8, x24, [sp, #8]
	str	x8, [sp]
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	mov	w7, #1
	bl	_ST_D8
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x21, x21, x8
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	add	x20, x24, x9
	adds	w8, w8, #1
	b.lo	LBB0_1
; %bb.2:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_avc_biwgt_8x16_msa
.subsections_via_symbols
