	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loop_filter_c2
_loop_filter_c2:                        ## @loop_filter_c2
	.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), %r9
	movl	(%r9), %edi
	movq	_Q0@GOTPCREL(%rip), %r8
	movl	(%r8), %r14d
	movl	%edi, %eax
	subl	%r14d, %eax
	movl	%eax, %esi
	negl	%esi
	cmovsl	%eax, %esi
	cmpl	%edx, %esi
	jge	LBB0_8
## %bb.1:
	movq	_P1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %ebx
	subl	%edi, %ebx
	movl	%ebx, %eax
	negl	%eax
	cmovsl	%ebx, %eax
	cmpl	%ecx, %eax
	jge	LBB0_8
## %bb.2:
	movq	_Q1@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	%r11d, %ebx
	subl	%r14d, %ebx
	movl	%ebx, %eax
	negl	%eax
	cmovsl	%ebx, %eax
	cmpl	%ecx, %eax
	jge	LBB0_8
## %bb.3:
	leal	(%rdi,%r14), %r12d
	leal	(%rdi,%r14), %r10d
	addl	$2, %r10d
	sarl	$2, %edx
	addl	$2, %edx
	movq	_P2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	subl	%edi, %eax
	movl	%eax, %ebx
	negl	%ebx
	cmovsl	%eax, %ebx
	leal	(%r15,%r15), %eax
	addl	%edi, %r15d
	cmpl	%edx, %esi
	cmovgel	%eax, %r15d
	cmpl	%ecx, %ebx
	cmovgel	%eax, %r15d
	leal	(%r15,%r12), %eax
	addl	$2, %eax
	sarl	$2, %eax
	movl	%eax, (%r9)
	movq	_Q2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%r14d, %eax
	movl	%eax, %esi
	negl	%esi
	cmovsl	%eax, %esi
	cmpl	%ecx, %esi
	jge	LBB0_6
## %bb.4:
	movl	%r14d, %eax
	subl	%edi, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	cmpl	%edx, %ecx
	jge	LBB0_6
## %bb.5:
	addl	%r14d, %r11d
	jmp	LBB0_7
LBB0_6:
	addl	%r11d, %r11d
LBB0_7:
	addl	%r10d, %r11d
	sarl	$2, %r11d
	movl	%r11d, (%r8)
LBB0_8:
	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
	.comm	_P2,4,2                         ## @P2
	.comm	_Q2,4,2                         ## @Q2
	.no_dead_strip	_loop_filter_c2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loop_filter_c2
_loop_filter_c2:                        ; @loop_filter_c2
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x11, _P0@GOTPAGE
Lloh1:
	ldr	x11, [x11, _P0@GOTPAGEOFF]
	ldr	w10, [x11]
Lloh2:
	adrp	x8, _Q0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Q0@GOTPAGEOFF]
	ldr	w9, [x8]
	subs	w12, w10, w9
	cneg	w14, w12, mi
	cmp	w14, w2
	b.ge	LBB0_8
; %bb.1:
Lloh4:
	adrp	x12, _P1@GOTPAGE
Lloh5:
	ldr	x12, [x12, _P1@GOTPAGEOFF]
Lloh6:
	ldr	w15, [x12]
	subs	w12, w15, w10
	cneg	w12, w12, mi
	cmp	w12, w3
	b.ge	LBB0_8
; %bb.2:
Lloh7:
	adrp	x12, _Q1@GOTPAGE
Lloh8:
	ldr	x12, [x12, _Q1@GOTPAGEOFF]
Lloh9:
	ldr	w13, [x12]
	subs	w12, w13, w9
	cneg	w12, w12, mi
	cmp	w12, w3
	b.ge	LBB0_8
; %bb.3:
	add	w12, w10, w9
	add	w12, w12, #2
	asr	w16, w2, #2
Lloh10:
	adrp	x17, _P2@GOTPAGE
Lloh11:
	ldr	x17, [x17, _P2@GOTPAGEOFF]
	add	w16, w16, #2
Lloh12:
	ldr	w17, [x17]
	subs	w17, w17, w10
	cneg	w17, w17, mi
	cmp	w14, w16
	ccmp	w17, w3, #0, lt
	lsl	w14, w15, #1
	add	w15, w15, w10
	csel	w14, w15, w14, lt
	add	w14, w14, w12
	asr	w14, w14, #2
	str	w14, [x11]
Lloh13:
	adrp	x11, _Q2@GOTPAGE
Lloh14:
	ldr	x11, [x11, _Q2@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	subs	w11, w11, w9
	cneg	w11, w11, mi
	cmp	w11, w3
	b.ge	LBB0_6
; %bb.4:
	subs	w10, w9, w10
	cneg	w10, w10, mi
	cmp	w10, w16
	b.ge	LBB0_6
; %bb.5:
	add	w9, w13, w9
	b	LBB0_7
LBB0_6:
	lsl	w9, w13, #1
LBB0_7:
	add	w9, w9, w12
	asr	w9, w9, #2
	str	w9, [x8]
LBB0_8:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_P0,4,2                         ; @P0
	.comm	_Q0,4,2                         ; @Q0
	.comm	_P1,4,2                         ; @P1
	.comm	_Q1,4,2                         ; @Q1
	.comm	_P2,4,2                         ; @P2
	.comm	_Q2,4,2                         ; @Q2
	.no_dead_strip	_loop_filter_c2
.subsections_via_symbols
