	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ycbcr2rgb
_ycbcr2rgb:                             ## @ycbcr2rgb
	.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	%r9, %r12
	movq	16(%rbp), %r14
	shll	$4, %r8d
	subl	%r8d, %esi
	addl	$-2048, %edx                    ## imm = 0xF800
	addl	$-2048, %ecx                    ## imm = 0xF800
	movl	(%rdi), %eax
	imull	%esi, %eax
	movl	4(%rdi), %ebx
	imull	%edx, %ebx
	addl	%eax, %ebx
	movl	8(%rdi), %eax
	imull	%ecx, %eax
	addl	%ebx, %eax
	movl	%eax, (%r9)
	movl	12(%rdi), %eax
	imull	%esi, %eax
	movl	16(%rdi), %ebx
	imull	%edx, %ebx
	addl	%eax, %ebx
	movl	20(%rdi), %eax
	imull	%ecx, %eax
	addl	%ebx, %eax
	movl	%eax, (%r14)
	imull	24(%rdi), %esi
	imull	28(%rdi), %edx
	movq	24(%rbp), %r15
	addl	%esi, %edx
	imull	32(%rdi), %ecx
	addl	%edx, %ecx
	movl	%ecx, (%r15)
	movl	(%r9), %edi
	sarl	$12, %edi
	xorl	%esi, %esi
	movl	$4080, %edx                     ## imm = 0xFF0
	callq	_clamp
	movl	%eax, (%r12)
	movl	(%r14), %edi
	sarl	$12, %edi
	xorl	%esi, %esi
	movl	$4080, %edx                     ## imm = 0xFF0
	callq	_clamp
	movl	%eax, (%r14)
	movl	(%r15), %edi
	sarl	$12, %edi
	xorl	%esi, %esi
	movl	$4080, %edx                     ## imm = 0xFF0
	callq	_clamp
	movl	%eax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ycbcr2rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ycbcr2rgb
_ycbcr2rgb:                             ; @ycbcr2rgb
	.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, x7
	mov	x20, x6
	mov	x21, x5
	sub	w8, w1, w4, lsl #4
	sub	w9, w2, #2048
	sub	w10, w3, #2048
	ldp	w11, w12, [x0]
	mul	w11, w11, w8
	madd	w11, w12, w9, w11
	ldr	w12, [x0, #8]
	madd	w11, w12, w10, w11
	str	w11, [x5]
	ldp	w11, w12, [x0, #12]
	mul	w11, w11, w8
	madd	w11, w12, w9, w11
	ldr	w12, [x0, #20]
	madd	w11, w12, w10, w11
	str	w11, [x6]
	ldp	w11, w12, [x0, #24]
	mul	w8, w11, w8
	madd	w8, w12, w9, w8
	ldr	w9, [x0, #32]
	madd	w8, w9, w10, w8
	str	w8, [x7]
	ldr	w8, [x5]
	asr	w0, w8, #12
	mov	w1, #0
	mov	w2, #4080
	bl	_clamp
	str	w0, [x21]
	ldr	w8, [x20]
	asr	w0, w8, #12
	mov	w1, #0
	mov	w2, #4080
	bl	_clamp
	str	w0, [x20]
	ldr	w8, [x19]
	asr	w0, w8, #12
	mov	w1, #0
	mov	w2, #4080
	bl	_clamp
	str	w0, [x19]
	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	_ycbcr2rgb
.subsections_via_symbols
