	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loop_filter_c1
_loop_filter_c1:                        ## @loop_filter_c1
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_P0@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_Q0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %eax
	subl	%esi, %eax
	movl	%eax, %edi
	negl	%edi
	cmovsl	%eax, %edi
	cmpl	%edx, %edi
	jge	LBB0_4
## %bb.1:
	movq	_P1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	subl	%ebx, %eax
	movl	%eax, %edi
	negl	%edi
	cmovsl	%eax, %edi
	cmpl	%ecx, %edi
	jge	LBB0_4
## %bb.2:
	movq	_Q1@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %eax
	subl	%esi, %eax
	movl	%eax, %edi
	negl	%edi
	cmovsl	%eax, %edi
	cmpl	%ecx, %edi
	jge	LBB0_4
## %bb.3:
	subl	%ebx, %esi
	leal	(%rsi,%rsi,2), %edi
	addl	%edx, %edi
	subl	%r9d, %edi
	addl	$4, %edi
	sarl	$3, %edi
	movl	%r8d, %esi
	negl	%esi
	movl	%r8d, %edx
	callq	_av_clip
	movl	%eax, %r14d
	movl	(%r12), %edi
	addl	%eax, %edi
	callq	_av_clip_uint8
	movl	%eax, (%r12)
	movl	(%r15), %edi
	subl	%r14d, %edi
	callq	_av_clip_uint8
	movl	%eax, (%r15)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P0,4,2                         ## @P0
	.comm	_Q0,4,2                         ## @Q0
	.comm	_P1,4,2                         ## @P1
	.comm	_Q1,4,2                         ## @Q1
	.no_dead_strip	_loop_filter_c1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loop_filter_c1
_loop_filter_c1:                        ; @loop_filter_c1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _P0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _P0@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x20, _Q0@GOTPAGE
Lloh3:
	ldr	x20, [x20, _Q0@GOTPAGEOFF]
	ldr	w9, [x20]
	subs	w10, w8, w9
	cneg	w10, w10, mi
	cmp	w10, w2
	b.ge	LBB0_4
; %bb.1:
Lloh4:
	adrp	x10, _P1@GOTPAGE
Lloh5:
	ldr	x10, [x10, _P1@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	subs	w11, w10, w8
	cneg	w11, w11, mi
	cmp	w11, w3
	b.ge	LBB0_4
; %bb.2:
Lloh7:
	adrp	x11, _Q1@GOTPAGE
Lloh8:
	ldr	x11, [x11, _Q1@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	subs	w12, w11, w9
	cneg	w12, w12, mi
	cmp	w12, w3
	b.ge	LBB0_4
; %bb.3:
	sub	w8, w9, w8
	add	w8, w8, w8, lsl #1
	add	w8, w8, w10
	sub	w8, w8, w11
	add	w8, w8, #4
	asr	w0, w8, #3
	neg	w1, w4
	mov	x2, x4
	bl	_av_clip
	mov	x19, x0
	ldr	w8, [x21]
	add	w0, w8, w0
	bl	_av_clip_uint8
	str	w0, [x21]
	ldr	w8, [x20]
	sub	w0, w8, w19
	bl	_av_clip_uint8
	str	w0, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_P0,4,2                         ; @P0
	.comm	_Q0,4,2                         ; @Q0
	.comm	_P1,4,2                         ; @P1
	.comm	_Q1,4,2                         ; @Q1
	.no_dead_strip	_loop_filter_c1
.subsections_via_symbols
