	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function hb_rgb2yuv
LCPI0_0:
	.quad	0xbfc2f1a9fbe76c8b              ## double -0.14799999999999999
LCPI0_1:
	.quad	0x4060000000000000              ## double 128
LCPI0_2:
	.quad	0xbfd29fbe76c8b439              ## double -0.29099999999999998
LCPI0_3:
	.quad	0x3fdc189374bc6a7f              ## double 0.439
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_4:
	.quad	0x3fd072b020c49ba6              ## double 0.25700000000000001
	.quad	0x3fdc189374bc6a7f              ## double 0.439
LCPI0_5:
	.quad	0x4030000000000000              ## double 16
	.quad	0x4060000000000000              ## double 128
LCPI0_6:
	.quad	0x3fe020c49ba5e354              ## double 0.504
	.quad	0xbfd78d4fdf3b645a              ## double -0.36799999999999999
LCPI0_7:
	.quad	0x3fb916872b020c4a              ## double 0.098000000000000003
	.quad	0xbfb22d0e56041893              ## double -0.070999999999999994
LCPI0_8:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hb_rgb2yuv
	.p2align	4, 0x90
_hb_rgb2yuv:                            ## @hb_rgb2yuv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movzbl	%ah, %ecx
	movl	%edi, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	cvtsi2sd	%edx, %xmm1
	cvtsi2sd	%ecx, %xmm2
	movzbl	%al, %eax
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	addsd	LCPI0_1(%rip), %xmm3
	movsd	LCPI0_2(%rip), %xmm4            ## xmm4 = mem[0],zero
	mulsd	%xmm2, %xmm4
	addsd	%xmm3, %xmm4
	movsd	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero
	mulsd	%xmm0, %xmm3
	addsd	%xmm4, %xmm3
	cvttsd2si	%xmm3, %eax
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovgl	%eax, %edx
	cmpl	$255, %edx
	movl	$255, %ecx
	cmovbl	%edx, %ecx
	movddup	%xmm1, %xmm1                    ## xmm1 = xmm1[0,0]
	mulpd	LCPI0_4(%rip), %xmm1
	addpd	LCPI0_5(%rip), %xmm1
	movddup	%xmm2, %xmm2                    ## xmm2 = xmm2[0,0]
	mulpd	LCPI0_6(%rip), %xmm2
	addpd	%xmm1, %xmm2
	movddup	%xmm0, %xmm0                    ## xmm0 = xmm0[0,0]
	mulpd	LCPI0_7(%rip), %xmm0
	addpd	%xmm2, %xmm0
	cvttpd2dq	%xmm0, %xmm0
	xorpd	%xmm1, %xmm1
	pmaxsd	%xmm0, %xmm1
	pminud	LCPI0_8(%rip), %xmm1
	movdqa	%xmm1, %xmm0
	pslld	$16, %xmm0
	pslld	$8, %xmm1
	pshufd	$85, %xmm1, %xmm1               ## xmm1 = xmm1[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	orl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_rgb2yuv                     ; -- Begin function hb_rgb2yuv
	.p2align	2
_hb_rgb2yuv:                            ; @hb_rgb2yuv
	.cfi_startproc
; %bb.0:
	ubfx	w8, w0, #16, #8
	scvtf	d0, w8
	ubfx	w8, w0, #8, #8
	scvtf	d1, w8
	and	w8, w0, #0xff
	scvtf	d2, w8
	mov	x8, #39846
	movk	x8, #8388, lsl #16
	movk	x8, #29360, lsl #32
	movk	x8, #16336, lsl #48
	fmov	d3, x8
	fmov	d4, #16.00000000
	fmadd	d3, d0, d3, d4
	mov	x8, #58196
	movk	x8, #39845, lsl #16
	movk	x8, #8388, lsl #32
	movk	x8, #16352, lsl #48
	fmov	d4, x8
	fmadd	d3, d1, d4, d3
	mov	x8, #3146
	movk	x8, #11010, lsl #16
	movk	x8, #5767, lsl #32
	movk	x8, #16313, lsl #48
	fmov	d4, x8
	fmadd	d3, d2, d4, d3
	fcvtzs	w8, d3
	mov	x9, #4638707616191610880
	fmov	d3, x9
	mov	x9, #27787
	movk	x9, #64487, lsl #16
	movk	x9, #61865, lsl #32
	movk	x9, #49090, lsl #48
	fmov	d4, x9
	fmadd	d4, d0, d4, d3
	mov	x9, #46137
	movk	x9, #30408, lsl #16
	movk	x9, #40894, lsl #32
	movk	x9, #49106, lsl #48
	fmov	d5, x9
	fmadd	d4, d1, d5, d4
	mov	x9, #27263
	movk	x9, #29884, lsl #16
	movk	x9, #6291, lsl #32
	movk	x9, #16348, lsl #48
	fmov	d5, x9
	fmadd	d4, d2, d5, d4
	fcvtzs	w9, d4
	fmadd	d0, d0, d5, d3
	mov	x10, #25690
	movk	x10, #57147, lsl #16
	movk	x10, #36175, lsl #32
	movk	x10, #49111, lsl #48
	fmov	d3, x10
	fmadd	d0, d1, d3, d0
	mov	x10, #6291
	movk	x10, #22020, lsl #16
	movk	x10, #11534, lsl #32
	movk	x10, #49074, lsl #48
	fmov	d1, x10
	fmadd	d0, d2, d1, d0
	fcvtzs	w10, d0
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	cmp	w10, #0
	csel	w10, w10, wzr, gt
	mov	w11, #255
	cmp	w8, #255
	csel	w8, w8, w11, lo
	cmp	w9, #255
	csel	w9, w9, w11, lo
	cmp	w10, #255
	csel	w10, w10, w11, lo
	lsl	w8, w8, #16
	orr	w8, w8, w10, lsl #8
	orr	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
