	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_sao_band_filter_0_8_msa ## -- Begin function ff_hevc_sao_band_filter_0_8_msa
	.p2align	4, 0x90
_ff_hevc_sao_band_filter_0_8_msa:       ## @ff_hevc_sao_band_filter_0_8_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	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	24(%rbp), %edx
	movl	16(%rbp), %r15d
	cmpl	$16, %r15d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jae	LBB0_1
## %bb.2:
	cmpl	$8, %r15d
	jae	LBB0_3
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_5:
	movl	24(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_hevc_sao_band_filter_4width_msa
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r8, %rax
	leal	15(%r15), %r12d
	testl	%r15d, %r15d
	cmovnsl	%r15d, %r12d
	andl	$-16, %r12d
	subl	%r12d, %r15d
	movl	%edx, 8(%rsp)
	movl	%r12d, (%rsp)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	%r9d, %r8d
	movq	%rax, %r9
	callq	_hevc_sao_band_filter_16multiple_msa
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %r14
	leaq	(%rbx,%rax,4), %rbx
	cmpl	$8, %r15d
	jb	LBB0_4
LBB0_3:
	movl	24(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_hevc_sao_band_filter_8width_msa
	addq	$32, %r14
	addq	$32, %rbx
	movl	%r15d, %eax
	sarb	$7, %al
	shrb	$5, %al
	addb	%r15b, %al
	andb	$-8, %al
	subb	%al, %r15b
	movsbl	%r15b, %r15d
	testl	%r15d, %r15d
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_sao_band_filter_0_8_msa ; -- Begin function ff_hevc_sao_band_filter_0_8_msa
	.p2align	2
_ff_hevc_sao_band_filter_0_8_msa:       ; @ff_hevc_sao_band_filter_0_8_msa
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x7
	mov	x26, x6
	mov	x21, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	cmp	w6, #16
	b.hs	LBB0_4
; %bb.1:
	cmp	w26, #8
	b.hs	LBB0_5
LBB0_2:
	cbz	w26, LBB0_6
LBB0_3:
	mov	x0, x25
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_hevc_sao_band_filter_4width_msa
LBB0_4:
	negs	w8, w26
	and	w8, w8, #0xf
	and	w9, w26, #0xf
	csneg	w27, w9, w8, mi
	sub	w26, w26, w27
	mov	x0, x25
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x26
	mov	x7, x19
	bl	_hevc_sao_band_filter_16multiple_msa
	sbfiz	x8, x26, #2, #32
	add	x25, x25, x8
	add	x24, x24, x8
	mov	x26, x27
	cmp	w26, #8
	b.lo	LBB0_2
LBB0_5:
	mov	x0, x25
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	bl	_hevc_sao_band_filter_8width_msa
	add	x25, x25, #32
	add	x24, x24, #32
	sxtb	w8, w26
	ubfx	w8, w8, #12, #3
	add	w8, w26, w8
	and	w8, w8, #0xf8
	sub	w8, w26, w8
	sxtb	w26, w8
	cbnz	w26, LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
