	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h263_h_loop_filter_msa
_h263_h_loop_filter_msa:                ## @h263_h_loop_filter_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
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	_h263_loop_filter_strength_msa@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %r14
	addq	$-8, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	subq	$32, %rsp
	callq	_LD_UB8
	subq	$16, %rsp
	callq	_TRANSPOSE8x4_UB_UB
	addq	$48, %rsp
	callq	___msa_ilvr_b
	movslq	%eax, %rdi
	movq	%rdi, %rsi
	callq	___msa_hsub_u_h
	movl	%eax, %ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	callq	___msa_ilvr_b
	movslq	%eax, %rdi
	movq	%rdi, %rsi
	callq	___msa_hsub_u_h
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,4), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	negl	%ebx
	sarl	$3, %ebx
	negl	%ebx
	leaq	(%r14,%r14), %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	negq	%rdi
	callq	___msa_fill_h
	movl	%eax, %r13d
	xorl	%edx, %edx
	cmpl	%ebx, %eax
	setle	%dl
	movslq	%ebx, %rdi
	movq	%rdx, %rsi
	callq	___msa_bmz_v
	movq	%rax, %r12
	subl	%r12d, %r13d
	negq	%r14
	movq	%r14, %rdi
	callq	___msa_fill_h
	xorl	%edx, %edx
	cmpl	%r12d, %eax
	setg	%dl
	movslq	%r12d, %rdi
	movslq	%r13d, %rsi
	callq	___msa_bmnz_v
	movq	%rax, %r12
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ebx
	sarl	$3, %ebx
	movq	%r15, %rdi
	callq	___msa_fill_h
	movl	%eax, %r15d
	xorl	%edx, %edx
	cmpl	%eax, %ebx
	setle	%dl
	movslq	%ebx, %rdi
	movq	%rdx, %rsi
	callq	___msa_bmz_v
	movq	%rax, %rbx
	subl	%ebx, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	___msa_fill_h
	xorl	%edx, %edx
	cmpl	%ebx, %eax
	setl	%dl
	movslq	%ebx, %rdi
	movslq	%r15d, %rsi
	callq	___msa_bmnz_v
	movq	%rax, %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	___msa_clti_s_h
	movslq	%ebx, %r15
	movslq	%r12d, %rbx
	movslq	%eax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	___msa_bmnz_v
	movq	%rax, %r14
	negl	%ebx
	sarl	%ebx
	sarl	%r15d
	movslq	%r15d, %rdi
	movslq	%ebx, %rsi
	movq	%r12, %rdx
	callq	___msa_bmnz_v
	movq	%rax, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %eax
	negl	%eax
	sarl	$2, %eax
	movl	%eax, %ecx
	negl	%ecx
	xorl	%edx, %edx
	cmpl	%ebx, %eax
	setg	%dl
	movslq	%ecx, %rdi
	movq	%rbx, %rsi
	shlq	$32, %rsi
	negq	%rsi
	sarq	$32, %rsi
	callq	___msa_bmnz_v
	movq	%rax, %r15
	movl	%r12d, %eax
	sarl	$2, %eax
	xorl	%edx, %edx
	cmpl	%ebx, %eax
	setle	%dl
	movslq	%eax, %rdi
	movslq	%ebx, %rsi
	callq	___msa_bmz_v
	movq	%rax, %rbx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	___msa_clti_s_h
	movslq	%r15d, %rdi
	movslq	%ebx, %rsi
	movslq	%eax, %r15
	movq	%r15, %rdx
	callq	___msa_bmz_v
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movl	%r14d, %r9d
	callq	_PCKEV_B2_SH
	movl	$128, %esi
	callq	___msa_xori_b
	movslq	%r14d, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	___msa_adds_s_b
	movq	%rax, %rdi
	movl	$128, %esi
	callq	___msa_xori_b
	movq	%rax, %r14
	movq	%rbx, %rsi
	callq	___msa_subsus_u_b
	movq	%r14, %rdi
	movq	%rax, %rcx
	movl	%r15d, %r8d
	callq	_ILVR_B2_SH
	movl	%r15d, %esi
	callq	___msa_ilvr_h
	movq	%rax, %rbx
	movl	%r15d, %esi
	callq	___msa_ilvl_h
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$2, %r8d
	movl	$3, %r9d
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	$3
	pushq	$2
	pushq	$1
	pushq	$0
	callq	_ST_W8
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h263_loop_filter_strength_msa,8,3 ## @h263_loop_filter_strength_msa
	.no_dead_strip	_h263_h_loop_filter_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h263_h_loop_filter_msa
_h263_h_loop_filter_msa:                ; @h263_h_loop_filter_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _h263_loop_filter_strength_msa@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h263_loop_filter_strength_msa@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x22, [x8, x2, lsl #3]
	sub	x20, x0, #8
	mov	x0, x20
	bl	_LD_UB8
	bl	_TRANSPOSE8x4_UB_UB
	bl	___msa_ilvr_b
	sxtw	x0, w0
	mov	x1, x0
	bl	___msa_hsub_u_h
	mov	x21, x0
	bl	___msa_ilvr_b
	sxtw	x0, w0
	mov	x1, x0
	bl	___msa_hsub_u_h
	add	w23, w21, w0, lsl #2
	neg	w8, w23
	neg	w26, w8, asr #3
	lsl	x25, x22, #1
	neg	x0, x25
	bl	___msa_fill_h
	mov	x24, x0
	cmp	w0, w26
	cset	w1, le
	sxtw	x0, w26
	mov	x2, x1
	bl	___msa_bmz_v
	mov	x26, x0
	sub	w24, w24, w26
	neg	x0, x22
	bl	___msa_fill_h
	cmp	w0, w26
	cset	w2, gt
	sxtw	x0, w26
	sxtw	x1, w24
	bl	___msa_bmnz_v
	mov	x24, x0
	asr	w26, w23, #3
	mov	x0, x25
	bl	___msa_fill_h
	mov	x25, x0
	cmp	w26, w0
	cset	w1, le
	sbfx	x0, x23, #3, #29
	mov	x2, x1
	bl	___msa_bmz_v
	mov	x26, x0
	sub	w25, w25, w26
	mov	x0, x22
	bl	___msa_fill_h
	cmp	w0, w26
	cset	w2, lt
	sxtw	x0, w26
	sxtw	x1, w25
	bl	___msa_bmnz_v
	mov	x22, x0
	mov	x25, x22
	mov	x0, x23
	mov	w1, #0
	bl	___msa_clti_s_h
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w22
	sxtw	x1, w24
	sxtw	x23, w0
	mov	x0, x8
	mov	x2, x23
	bl	___msa_bmnz_v
	mov	x22, x0
	neg	w8, w24
	sbfx	x0, x25, #1, #31
	sbfx	x1, x8, #1, #31
	mov	x2, x23
	bl	___msa_bmnz_v
	mov	x23, x0
	neg	w8, w21
	asr	w8, w8, #2
	neg	w9, w8
	cmp	w8, w23
	cset	w2, gt
	sxtw	x0, w9
	neg	x8, x23, lsl #32
	asr	x1, x8, #32
	bl	___msa_bmnz_v
	mov	x24, x0
	asr	w8, w21, #2
	cmp	w8, w23
	cset	w2, le
	sbfx	x0, x21, #2, #30
	sxtw	x1, w23
	bl	___msa_bmz_v
	mov	x23, x0
	mov	x0, x21
	mov	w1, #0
	bl	___msa_clti_s_h
	mov	x25, x0
	sxtw	x0, w24
	sxtw	x1, w23
	sxtw	x2, w25
	bl	___msa_bmz_v
	mov	x1, x0
	mov	x0, x21
	mov	x2, x21
	mov	x3, x22
	mov	x4, x1
	mov	x5, x22
	bl	_PCKEV_B2_SH
	mov	w1, #128
	bl	___msa_xori_b
	sxtw	x21, w22
	mov	x1, x21
	bl	___msa_adds_s_b
	mov	w1, #128
	bl	___msa_xori_b
	mov	x22, x0
	mov	x1, x21
	bl	___msa_subsus_u_b
	mov	x3, x0
	mov	x0, x22
	mov	x4, x25
	bl	_ILVR_B2_SH
	mov	x1, x25
	bl	___msa_ilvr_h
	mov	x21, x0
	mov	x1, x25
	bl	___msa_ilvl_h
	mov	x1, x0
	stp	x20, x19, [sp, #8]
	mov	x8, #2
	movk	x8, #3, lsl #32
	str	x8, [sp]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1
	mov	w4, #2
	mov	w5, #3
	mov	w6, #0
	mov	w7, #1
	bl	_ST_W8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_h263_loop_filter_strength_msa,8,3 ; @h263_loop_filter_strength_msa
	.no_dead_strip	_h263_h_loop_filter_msa
.subsections_via_symbols
