	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgba2ycocg
_rgba2ycocg:                            ## @rgba2ycocg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %edi
	movl	4(%rsi), %r15d
	incl	%r15d
	sarl	%r15d
	movl	8(%rsi), %eax
	leal	(%rdi,%rax), %ebx
	addl	$2, %ebx
	sarl	$2, %ebx
	subl	%eax, %edi
	incl	%edi
	sarl	%edi
	subl	$-128, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_clip_uint8
	movl	%eax, (%r14)
	movl	%r15d, %edi
	subl	%ebx, %edi
	subl	$-128, %edi
	callq	_av_clip_uint8
	movl	%eax, 4(%r14)
	movl	$0, 8(%r14)
	addl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_av_clip_uint8
	movl	%eax, 12(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rgba2ycocg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgba2ycocg
_rgba2ycocg:                            ; @rgba2ycocg
	.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
	mov	x19, x0
	ldp	w8, w9, [x1]
	add	w9, w9, #1
	asr	w20, w9, #1
	ldr	w9, [x1, #8]
	add	w10, w8, w9
	add	w10, w10, #2
	asr	w21, w10, #2
	sub	w8, w8, w9
	add	w8, w8, #1
	asr	w8, w8, #1
	add	w0, w8, #128
	bl	_av_clip_uint8
	str	w0, [x19]
	sub	w8, w20, w21
	add	w0, w8, #128
	bl	_av_clip_uint8
	stp	w0, wzr, [x19, #4]
	add	w0, w21, w20
	bl	_av_clip_uint8
	str	w0, [x19, #12]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rgba2ycocg
.subsections_via_symbols
