	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgb_to_yuv
_rgb_to_yuv:                            ## @rgb_to_yuv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %eax
	movzbl	%ah, %edx
	movzbl	%al, %r15d
	shrl	$16, %eax
	movzbl	%al, %r12d
	movl	%r12d, %eax
	shll	$8, %eax
	orl	%r12d, %eax
	imull	$504, %edx, %ecx                ## imm = 0x1F8
	movl	%edx, %r13d
	imull	$98, %r15d, %edx
	addl	%eax, %edx
	leal	(%rcx,%rdx), %eax
	addl	$16000, %eax                    ## imm = 0x3E80
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_clip_uint8
	movl	%eax, %ebx
	imull	$-148, %r12d, %eax
	imull	$-291, %r13d, %ecx              ## imm = 0xFEDD
	imull	$439, %r15d, %edx               ## imm = 0x1B7
	addl	%eax, %edx
	leal	(%rcx,%rdx), %eax
	addl	$128000, %eax                   ## imm = 0x1F400
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_clip_uint8
	movl	%eax, %r14d
	imull	$439, %r12d, %eax               ## imm = 0x1B7
	imull	$-368, %r13d, %ecx              ## imm = 0xFE90
	imull	$-71, %r15d, %edx
	addl	%eax, %edx
	leal	(%rcx,%rdx), %eax
	addl	$128000, %eax                   ## imm = 0x1F400
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_clip_uint8
	shll	$16, %ebx
	shll	$8, %eax
	orl	%r14d, %ebx
	orl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rgb_to_yuv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgb_to_yuv
_rgb_to_yuv:                            ; @rgb_to_yuv
	.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
	ubfx	w21, w0, #16, #8
	ubfx	w22, w0, #8, #8
	and	w23, w0, #0xff
	mov	x8, x21
	bfi	w8, w21, #8, #8
	mov	w9, #504
	mov	w10, #98
	madd	w8, w23, w10, w8
	madd	w8, w22, w9, w8
	mov	w9, #16000
	add	w8, w8, w9
	mov	w24, #19923
	movk	w24, #4194, lsl #16
	umull	x8, w8, w24
	lsr	x0, x8, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_av_clip_uint8
	mov	x19, x0
	mov	w8, #-148
	mul	w8, w21, w8
	mov	w9, #-291
	mov	w25, #439
	madd	w8, w23, w25, w8
	madd	w8, w22, w9, w8
	mov	w26, #62464
	movk	w26, #1, lsl #16
	add	w8, w8, w26
	umull	x8, w8, w24
	lsr	x0, x8, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_av_clip_uint8
	mov	x20, x0
	mul	w8, w21, w25
	mov	w9, #-368
	mov	w10, #-71
	madd	w8, w23, w10, w8
	madd	w8, w22, w9, w8
	add	w8, w8, w26
	umull	x8, w8, w24
	lsr	x0, x8, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_av_clip_uint8
	orr	w8, w20, w19, lsl #16
	orr	w0, w8, w0, lsl #8
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rgb_to_yuv
.subsections_via_symbols
