	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_sao_edge_filter_8_msa  ## -- Begin function ff_hevc_sao_edge_filter_8_msa
	.p2align	4, 0x90
_ff_hevc_sao_edge_filter_8_msa:         ## @ff_hevc_sao_edge_filter_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
	cmpl	$3, %r8d
	ja	LBB0_27
## %bb.1:
	movl	%r9d, %r15d
	movq	%rcx, %r11
	movl	%edx, %r10d
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movl	16(%rbp), %r9d
	movq	_MAX_PB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	%r12d, %r12d
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	sarl	$2, %r12d
	movl	%r8d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%r11, -56(%rbp)                 ## 8-byte Spill
	movl	%r10d, -44(%rbp)                ## 4-byte Spill
	jmpq	*%rax
LBB0_2:
	cmpl	$16, %r15d
	jb	LBB0_4
## %bb.3:
	leal	15(%r15), %r13d
	testl	%r15d, %r15d
	cmovnsl	%r15d, %r13d
	andl	$-16, %r13d
	subl	%r13d, %r15d
	movl	%r9d, (%rsp)
	movq	%r14, %rdi
	movl	%r10d, %esi
	movq	%rdx, %rbx
	movl	%r12d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r9d
	callq	_hevc_sao_edge_filter_0degree_16multiple_msa
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movq	%rbx, %rdx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movslq	%r13d, %rax
	leaq	(%r14,%rax,4), %r14
	leaq	(%rbx,%rax,4), %rdx
LBB0_4:
	cmpl	$8, %r15d
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jb	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	%r10d, %esi
	movq	%rdx, %r13
	movl	%r12d, %ecx
	movl	%r9d, %ebx
	callq	_hevc_sao_edge_filter_0degree_8width_msa
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movq	%r13, %rdx
	movl	%ebx, %r9d
	addq	$32, %r14
	addq	$32, %rdx
	movl	%r15d, %eax
	sarb	$7, %al
	shrb	$5, %al
	addb	%r15b, %al
	andb	$-8, %al
	subb	%al, %r15b
	movsbl	%r15b, %r15d
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_27
## %bb.7:
	movq	%r14, %rdi
	movl	%r10d, %esi
	movl	%r12d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hevc_sao_edge_filter_0degree_4width_msa ## TAILCALL
LBB0_14:
	cmpl	$16, %r15d
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	jb	LBB0_16
## %bb.15:
	leal	15(%r15), %ebx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ebx
	andl	$-16, %ebx
	subl	%ebx, %r15d
	movl	%r9d, (%rsp)
	movq	%r14, %rdi
	movl	%r10d, %esi
	movq	%rdx, %r13
	movl	%r12d, %ecx
	movq	%r11, %r8
	movl	%ebx, %r9d
	callq	_hevc_sao_edge_filter_45degree_16multiple_msa
	movq	%r13, %rdx
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %r14
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
LBB0_16:
	cmpl	$8, %r15d
	jae	LBB0_18
## %bb.17:
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	testl	%r15d, %r15d
	jne	LBB0_20
	jmp	LBB0_27
LBB0_21:
	cmpl	$16, %r15d
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	jb	LBB0_23
## %bb.22:
	leal	15(%r15), %ebx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ebx
	andl	$-16, %ebx
	subl	%ebx, %r15d
	movl	%r9d, (%rsp)
	movq	%r14, %rdi
	movl	%r10d, %esi
	movq	%rdx, %r13
	movl	%r12d, %ecx
	movq	%r11, %r8
	movl	%ebx, %r9d
	callq	_hevc_sao_edge_filter_135degree_16multiple_msa
	movq	%r13, %rdx
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %r14
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
LBB0_23:
	cmpl	$8, %r15d
	jae	LBB0_25
## %bb.24:
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	testl	%r15d, %r15d
	jne	LBB0_28
	jmp	LBB0_27
LBB0_8:
	cmpl	$16, %r15d
	jae	LBB0_9
## %bb.10:
	cmpl	$8, %r15d
	jae	LBB0_11
LBB0_12:
	testl	%r15d, %r15d
	jne	LBB0_13
	jmp	LBB0_27
LBB0_18:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_hevc_sao_edge_filter_45degree_8width_msa
	movq	%r13, %r8
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %r9d
	addq	$32, %r14
	addq	$32, %rdx
	movl	%r15d, %eax
	sarb	$7, %al
	shrb	$5, %al
	addb	%r15b, %al
	andb	$-8, %al
	subb	%al, %r15b
	movsbl	%r15b, %r15d
	testl	%r15d, %r15d
	je	LBB0_27
LBB0_20:
	movq	%r14, %rdi
	movl	%r12d, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hevc_sao_edge_filter_45degree_4width_msa ## TAILCALL
LBB0_25:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r8
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_hevc_sao_edge_filter_135degree_8width_msa
	movq	%r13, %r8
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %r9d
	addq	$32, %r14
	addq	$32, %rdx
	movl	%r15d, %eax
	sarb	$7, %al
	shrb	$5, %al
	addb	%r15b, %al
	andb	$-8, %al
	subb	%al, %r15b
	movsbl	%r15b, %r15d
	testl	%r15d, %r15d
	je	LBB0_27
LBB0_28:
	movq	%r14, %rdi
	movl	%r12d, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hevc_sao_edge_filter_135degree_4width_msa ## TAILCALL
LBB0_9:
	leal	15(%r15), %ebx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ebx
	andl	$-16, %ebx
	subl	%ebx, %r15d
	movl	%r9d, (%rsp)
	movq	%r14, %rdi
	movl	%r10d, %esi
	movq	%rdx, %r13
	movl	%r12d, %ecx
	movq	%r11, %r8
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r9d
	callq	_hevc_sao_edge_filter_90degree_16multiple_msa
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movq	%r13, %rdx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %r14
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
	cmpl	$8, %r15d
	jb	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	movl	%r10d, %esi
	movq	%rdx, %r13
	movl	%r12d, %ecx
	movq	%r11, %r8
	movl	%r9d, %ebx
	callq	_hevc_sao_edge_filter_90degree_8width_msa
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movq	%r13, %rdx
	movl	%ebx, %r9d
	addq	$32, %r14
	addq	$32, %rdx
	movl	%r15d, %eax
	sarb	$7, %al
	shrb	$5, %al
	addb	%r15b, %al
	andb	$-8, %al
	subb	%al, %r15b
	movsbl	%r15b, %r15d
	testl	%r15d, %r15d
	je	LBB0_27
LBB0_13:
	movq	%r14, %rdi
	movl	%r10d, %esi
	movl	%r12d, %ecx
	movq	%r11, %r8
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hevc_sao_edge_filter_90degree_4width_msa ## TAILCALL
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_MAX_PB_SIZE,4,2                ## @MAX_PB_SIZE
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ## @AV_INPUT_BUFFER_PADDING_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_sao_edge_filter_8_msa  ; -- Begin function ff_hevc_sao_edge_filter_8_msa
	.p2align	2
_ff_hevc_sao_edge_filter_8_msa:         ; @ff_hevc_sao_edge_filter_8_msa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w4, #3
	b.hi	LBB0_26
; %bb.1:
	mov	x19, x6
	mov	x25, x5
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _MAX_PB_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PB_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8, lsl #1
	asr	w23, w8, #2
	mov	w8, w4
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w25, #16
	b.hs	LBB0_14
; %bb.3:
	cmp	w25, #8
	b.hs	LBB0_15
LBB0_4:
	cbnz	w25, LBB0_16
	b	LBB0_26
LBB0_5:
	cmp	w25, #16
	b.hs	LBB0_17
; %bb.6:
	cmp	w25, #8
	b.hs	LBB0_18
LBB0_7:
	cbnz	w25, LBB0_19
	b	LBB0_26
LBB0_8:
	cmp	w25, #16
	b.hs	LBB0_20
; %bb.9:
	cmp	w25, #8
	b.hs	LBB0_21
LBB0_10:
	cbnz	w25, LBB0_22
	b	LBB0_26
LBB0_11:
	cmp	w25, #16
	b.hs	LBB0_23
; %bb.12:
	cmp	w25, #8
	b.hs	LBB0_24
LBB0_13:
	cbnz	w25, LBB0_25
	b	LBB0_26
LBB0_14:
	negs	w8, w25
	and	w8, w8, #0xf
	and	w9, w25, #0xf
	csneg	w26, w9, w8, mi
	sub	w25, w25, w26
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x25
	mov	x6, x19
	bl	_hevc_sao_edge_filter_0degree_16multiple_msa
	sbfiz	x8, x25, #2, #32
	add	x24, x24, x8
	add	x21, x21, x8
	mov	x25, x26
	cmp	w25, #8
	b.lo	LBB0_4
LBB0_15:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x19
	bl	_hevc_sao_edge_filter_0degree_8width_msa
	add	x24, x24, #32
	add	x21, x21, #32
	sxtb	w8, w25
	ubfx	w8, w8, #12, #3
	add	w8, w25, w8
	and	w8, w8, #0xf8
	sub	w8, w25, w8
	sxtb	w25, w8
	cbz	w25, LBB0_26
LBB0_16:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, 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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hevc_sao_edge_filter_0degree_4width_msa
LBB0_17:
	negs	w8, w25
	and	w8, w8, #0xf
	and	w9, w25, #0xf
	csneg	w26, w9, w8, mi
	sub	w25, w25, w26
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x25
	mov	x6, x19
	bl	_hevc_sao_edge_filter_45degree_16multiple_msa
	sbfiz	x8, x25, #2, #32
	add	x24, x24, x8
	add	x21, x21, x8
	mov	x25, x26
	cmp	w25, #8
	b.lo	LBB0_7
LBB0_18:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x19
	bl	_hevc_sao_edge_filter_45degree_8width_msa
	add	x24, x24, #32
	add	x21, x21, #32
	sxtb	w8, w25
	ubfx	w8, w8, #12, #3
	add	w8, w25, w8
	and	w8, w8, #0xf8
	sub	w8, w25, w8
	sxtb	w25, w8
	cbz	w25, LBB0_26
LBB0_19:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, 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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hevc_sao_edge_filter_45degree_4width_msa
LBB0_20:
	negs	w8, w25
	and	w8, w8, #0xf
	and	w9, w25, #0xf
	csneg	w26, w9, w8, mi
	sub	w25, w25, w26
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x25
	mov	x6, x19
	bl	_hevc_sao_edge_filter_135degree_16multiple_msa
	sbfiz	x8, x25, #2, #32
	add	x24, x24, x8
	add	x21, x21, x8
	mov	x25, x26
	cmp	w25, #8
	b.lo	LBB0_10
LBB0_21:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x19
	bl	_hevc_sao_edge_filter_135degree_8width_msa
	add	x24, x24, #32
	add	x21, x21, #32
	sxtb	w8, w25
	ubfx	w8, w8, #12, #3
	add	w8, w25, w8
	and	w8, w8, #0xf8
	sub	w8, w25, w8
	sxtb	w25, w8
	cbz	w25, LBB0_26
LBB0_22:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, 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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hevc_sao_edge_filter_135degree_4width_msa
LBB0_23:
	negs	w8, w25
	and	w8, w8, #0xf
	and	w9, w25, #0xf
	csneg	w26, w9, w8, mi
	sub	w25, w25, w26
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x25
	mov	x6, x19
	bl	_hevc_sao_edge_filter_90degree_16multiple_msa
	sbfiz	x8, x25, #2, #32
	add	x24, x24, x8
	add	x21, x21, x8
	mov	x25, x26
	cmp	w25, #8
	b.lo	LBB0_13
LBB0_24:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x19
	bl	_hevc_sao_edge_filter_90degree_8width_msa
	add	x24, x24, #32
	add	x21, x21, #32
	sxtb	w8, w25
	ubfx	w8, w8, #12, #3
	add	w8, w25, w8
	and	w8, w8, #0xf8
	sub	w8, w25, w8
	sxtb	w25, w8
	cbz	w25, LBB0_26
LBB0_25:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, 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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hevc_sao_edge_filter_90degree_4width_msa
LBB0_26:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX_PB_SIZE,4,2                ; @MAX_PB_SIZE
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ; @AV_INPUT_BUFFER_PADDING_SIZE
.subsections_via_symbols
