	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avg_width8_msa
_avg_width8_msa:                        ## @avg_width8_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$4, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$8, %ecx
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_LD4
	leal	(,%r15,4), %eax
	movslq	%eax, %r12
	leaq	(%rbx,%r12,4), %rdi
	movl	%r15d, %esi
	callq	_LD4
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_LD4
	leaq	(%r14,%r12,4), %rdi
	movl	%r15d, %esi
	callq	_LD4
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_AVER_UB4_UB
	addq	$48, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	%r15
	pushq	%r14
	pushq	$1
	pushq	$0
	pushq	$1
	pushq	$0
	pushq	$1
	pushq	$0
	callq	_ST_D8
	addq	$64, %rsp
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_LD4
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_LD4
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edx, %edx
	callq	_INSERT_D2_UB
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_AVER_UB2_UB
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	%r15
	pushq	%r14
	callq	_ST_D4
	addq	$16, %rsp
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_avg_width8_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avg_width8_msa
_avg_width8_msa:                        ; @avg_width8_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w3, #4
	b.eq	LBB0_4
; %bb.1:
	cmp	w3, #8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_LD4
	lsl	w8, w19, #2
	sbfiz	x22, x8, #2, #32
	add	x0, x21, x22
	mov	x1, x19
	bl	_LD4
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x0, x20
	mov	x1, x19
	bl	_LD4
	add	x0, x20, x22
	mov	x1, x19
	bl	_LD4
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_AVER_UB4_UB
	str	w19, [sp, #24]
	mov	x8, #4294967296
	stp	x8, x20, [sp, #8]
	str	x8, [sp]
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	mov	w7, #1
	bl	_ST_D8
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_LD4
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x0, x20
	mov	x1, x19
	bl	_LD4
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x2, #0
	bl	_INSERT_D2_UB
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_AVER_UB2_UB
	mov	x0, #0
	mov	x1, #0
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	x6, x20
	mov	x7, 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
	add	sp, sp, #80
	b	_ST_D4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_avg_width8_msa
.subsections_via_symbols
