	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_hv_bil_and_aver_dst_4w_msa
_common_hv_bil_and_aver_dst_4w_msa:     ## @common_hv_bil_and_aver_dst_4w_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	%r8d, %ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	callq	_LD_SB
	cmpl	$2, %ebx
	jb	LBB0_3
## %bb.1:
	movl	%eax, %r12d
	sarl	%ebx
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r14,%rax,4), %r14
	addl	%eax, %eax
	cltq
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	shlq	$2, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_SB2
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_LD_UB2
	movl	$1, (%rsp)
	xorl	%edi, %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_SLDI_B3_SB
	movl	%r12d, %esi
	callq	_ILVR_B3_UB
	callq	_HADD_UB3_UH
	callq	_ADD2
	movl	$2, %edx
	callq	_SRARI_H2_UH
	callq	_PCKEV_B2_UB
	callq	_AVER_UB2_UB
	xorl	%esi, %esi
	callq	___msa_copy_u_w
	movl	%r12d, %ebx
	movl	%eax, %r12d
	xorl	%esi, %esi
	callq	___msa_copy_u_w
	movl	%eax, %r13d
	movl	%r12d, %edi
	movl	%ebx, %r12d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	%r15, %rsi
	callq	_SW
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax), %rsi
	movl	%r13d, %edi
	callq	_SW
	addq	-80(%rbp), %r14                 ## 8-byte Folded Reload
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_common_hv_bil_and_aver_dst_4w_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function common_hv_bil_and_aver_dst_4w_msa
_common_hv_bil_and_aver_dst_4w_msa:     ; @common_hv_bil_and_aver_dst_4w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	str	x3, [sp, #24]                   ; 8-byte Folded Spill
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_LD_SB
	cmp	w22, #2
	b.lo	LBB0_3
; %bb.1:
	asr	w26, w22, #1
	add	x22, x23, w21, sxtw #2
	lsl	w8, w21, #1
	sbfiz	x27, x8, #2, #32
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sbfiz	x28, x8, #3, #32
	sbfiz	x19, x8, #2, #32
	mov	w23, w0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w26, w26, #1
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_LD_SB2
	mov	x0, x20
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_LD_UB2
	stp	xzr, xzr, [sp]
	mov	x0, #0
	mov	x1, x23
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	w6, #1
	mov	x7, #0
	bl	_SLDI_B3_SB
	mov	x0, #0
	mov	x1, x23
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_ILVR_B3_UB
	bl	_HADD_UB3_UH
	bl	_ADD2
	mov	w2, #2
	bl	_SRARI_H2_UH
	bl	_PCKEV_B2_UB
	bl	_AVER_UB2_UB
	mov	w1, #0
	bl	___msa_copy_u_w
	mov	x24, x0
	mov	w1, #0
	bl	___msa_copy_u_w
	mov	x25, x0
	mov	x0, x24
	mov	x1, x20
	bl	_SW
	add	x1, x20, x19
	mov	x0, x25
	bl	_SW
	add	x22, x22, x27
	add	x20, x20, x28
	cbnz	w26, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_common_hv_bil_and_aver_dst_4w_msa
.subsections_via_symbols
