	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv30_weak_loop_filter
_rv30_weak_loop_filter:                 ## @rv30_weak_loop_filter
	.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	%ecx, %r12d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	_ff_crop_tab@GOTPCREL(%rip), %rax
	movq	_MAX_NEG_CROP@GOTPCREL(%rip), %rdi
	movslq	(%rdi), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	%rdi, %r15
	leal	(%rsi,%rsi), %eax
	negl	%eax
	movslq	%eax, %r9
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movslq	%esi, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, %eax
	negl	%eax
	movslq	%eax, %r14
	movl	%ecx, %eax
	negl	%eax
	movl	%eax, %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r13
	movl	(%rbx,%r9,4), %eax
	subl	(%rbx,%rdi,4), %eax
	movl	(%rbx), %ecx
	subl	(%rbx,%r14,4), %ecx
	leal	(%rax,%rcx,4), %edi
	sarl	$3, %edi
	movl	%r12d, %edx
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	callq	_av_clip
	movslq	(%rbx,%r14,4), %rcx
	cltq
	addq	%rax, %rcx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15,%rcx,4), %ecx
	movl	%ecx, (%rbx,%r14,4)
	movslq	(%rbx), %rcx
	subq	%rax, %rcx
	movl	(%r15,%rcx,4), %eax
	movl	%eax, (%rbx)
	leaq	(%rbx,%r13,4), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%r15,%rax,4), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subl	(%r15,%rcx,4), %eax
	movl	(%rbx,%r13,4), %ecx
	subl	(%r15,%r14,4), %ecx
	leal	(%rax,%rcx,4), %edi
	sarl	$3, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_av_clip
	movslq	(%r15,%r14,4), %rcx
	cltq
	addq	%rax, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, (%r15,%r14,4)
	movslq	(%rbx,%r13,4), %rcx
	subq	%rax, %rcx
	movl	(%rdx,%rcx,4), %eax
	movl	%eax, (%rbx,%r13,4)
	leaq	(%r15,%r13,4), %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%r12,%rax,4), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subl	(%r12,%rcx,4), %eax
	movl	(%r15,%r13,4), %ecx
	subl	(%r12,%r14,4), %ecx
	leal	(%rax,%rcx,4), %edi
	sarl	$3, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	movslq	(%r12,%r14,4), %rcx
	cltq
	addq	%rax, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, (%r12,%r14,4)
	movslq	(%r15,%r13,4), %rcx
	subq	%rax, %rcx
	movl	(%rdx,%rcx,4), %eax
	movl	%eax, (%r15,%r13,4)
	leaq	(%r12,%r13,4), %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subl	(%rbx,%rcx,4), %eax
	movl	(%r12,%r13,4), %ecx
	subl	(%rbx,%r14,4), %ecx
	leal	(%rax,%rcx,4), %edi
	sarl	$3, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	movslq	(%rbx,%r14,4), %rcx
	cltq
	addq	%rax, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, (%rbx,%r14,4)
	movslq	(%r12,%r13,4), %rcx
	subq	%rax, %rcx
	movl	(%rdx,%rcx,4), %eax
	movl	%eax, (%r12,%r13,4)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_crop_tab,8,3                ## @ff_crop_tab
	.comm	_MAX_NEG_CROP,4,2               ## @MAX_NEG_CROP
	.no_dead_strip	_rv30_weak_loop_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv30_weak_loop_filter
_rv30_weak_loop_filter:                 ; @rv30_weak_loop_filter
	.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
	mov	x19, x3
	mov	x21, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ff_crop_tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_crop_tab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MAX_NEG_CROP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_NEG_CROP@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x23, x8, x9, lsl #2
	neg	w20, w3
	sbfiz	x25, x1, #3, #32
	sub	x8, x0, x25
	ldr	w8, [x8]
	sbfiz	x24, x1, #2, #32
	ldr	w9, [x0, x24]
	sub	w8, w8, w9
	sub	x26, x0, x24
	ldr	w9, [x26]
	ldr	w10, [x0]
	sub	w9, w10, w9
	add	w8, w8, w9, lsl #2
	asr	w0, w8, #3
	mov	x1, x20
	mov	x2, x3
	bl	_av_clip
	ldr	w8, [x26]
	add	w8, w8, w0
	ldr	w8, [x23, w8, sxtw #2]
	str	w8, [x26]
	ldr	w8, [x22]
	sub	w8, w8, w0
	ldr	w8, [x23, w8, sxtw #2]
	str	w8, [x22]
	sbfiz	x21, x21, #2, #32
	add	x22, x22, x21
	sub	x8, x22, x25
	ldr	w8, [x8]
	ldr	w9, [x22, x24]
	sub	w8, w8, w9
	sub	x26, x22, x24
	ldr	w9, [x26]
	ldr	w10, [x22]
	sub	w9, w10, w9
	add	w8, w8, w9, lsl #2
	asr	w0, w8, #3
	mov	x1, x20
	mov	x2, x19
	bl	_av_clip
	ldr	w8, [x26]
	add	w8, w8, w0
	ldr	w8, [x23, w8, sxtw #2]
	str	w8, [x26]
	ldr	w8, [x22]
	sub	w8, w8, w0
	ldr	w8, [x23, w8, sxtw #2]
	str	w8, [x22]
	add	x22, x22, x21
	sub	x8, x22, x25
	ldr	w8, [x8]
	ldr	w9, [x22, x24]
	sub	w8, w8, w9
	sub	x26, x22, x24
	ldr	w9, [x26]
	ldr	w10, [x22]
	sub	w9, w10, w9
	add	w8, w8, w9, lsl #2
	asr	w0, w8, #3
	mov	x1, x20
	mov	x2, x19
	bl	_av_clip
	ldr	w8, [x26]
	add	w8, w8, w0
	ldr	w8, [x23, w8, sxtw #2]
	str	w8, [x26]
	ldr	w8, [x22]
	sub	w8, w8, w0
	ldr	w8, [x23, w8, sxtw #2]
	str	w8, [x22]
	add	x21, x22, x21
	sub	x8, x21, x25
	ldr	w8, [x8]
	ldr	w9, [x21, x24]
	sub	w8, w8, w9
	sub	x22, x21, x24
	ldr	w9, [x22]
	ldr	w10, [x21]
	sub	w9, w10, w9
	add	w8, w8, w9, lsl #2
	asr	w0, w8, #3
	mov	x1, x20
	mov	x2, x19
	bl	_av_clip
	ldr	w8, [x22]
	add	w8, w8, w0
	ldr	w8, [x23, w8, sxtw #2]
	str	w8, [x22]
	ldr	w8, [x21]
	sub	w8, w8, w0
	ldr	w8, [x23, w8, sxtw #2]
	str	w8, [x21]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_crop_tab,8,3                ; @ff_crop_tab
	.comm	_MAX_NEG_CROP,4,2               ; @MAX_NEG_CROP
	.no_dead_strip	_rv30_weak_loop_filter
.subsections_via_symbols
