	.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_yuv2rgb
LCPI0_0:
	.quad	0x3ff989374bc6a7f0              ## double 1.5960000000000001
LCPI0_1:
	.quad	0x3ff29fbe76c8b439              ## double 1.1639999999999999
LCPI0_2:
	.quad	0xbfd916872b020c4a              ## double -0.39200000000000002
LCPI0_3:
	.quad	0xbfea04189374bc6a              ## double -0.81299999999999994
LCPI0_4:
	.quad	0x400022d0e5604189              ## double 2.0169999999999999
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hb_yuv2rgb
	.p2align	4, 0x90
_hb_yuv2rgb:                            ## @hb_yuv2rgb
	.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
	addl	$-16, %edx
	cvtsi2sd	%edx, %xmm0
	movzbl	%al, %eax
	addl	$-128, %ecx
	cvtsi2sd	%ecx, %xmm1
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	mulsd	LCPI0_1(%rip), %xmm0
	addsd	%xmm0, %xmm2
	cvttsd2si	%xmm2, %ecx
	addl	$-128, %eax
	xorps	%xmm2, %xmm2
	cvtsi2sd	%eax, %xmm2
	movsd	LCPI0_2(%rip), %xmm3            ## xmm3 = mem[0],zero
	mulsd	%xmm2, %xmm3
	addsd	%xmm0, %xmm3
	mulsd	LCPI0_3(%rip), %xmm1
	addsd	%xmm3, %xmm1
	cvttsd2si	%xmm1, %eax
	mulsd	LCPI0_4(%rip), %xmm2
	addsd	%xmm0, %xmm2
	cvttsd2si	%xmm2, %edx
	xorl	%esi, %esi
	testl	%ecx, %ecx
	cmovlel	%esi, %ecx
	testl	%eax, %eax
	cmovlel	%esi, %eax
	testl	%edx, %edx
	cmovgl	%edx, %esi
	cmpl	$255, %ecx
	movl	$255, %edx
	cmovael	%edx, %ecx
	cmpl	$255, %eax
	cmovael	%edx, %eax
	cmpl	$255, %esi
	cmovael	%edx, %esi
	shll	$16, %ecx
	orl	%esi, %ecx
	shll	$8, %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_yuv2rgb                     ; -- Begin function hb_yuv2rgb
	.p2align	2
_hb_yuv2rgb:                            ; @hb_yuv2rgb
	.cfi_startproc
; %bb.0:
	ubfx	w8, w0, #16, #8
	ubfx	w9, w0, #8, #8
	sub	w8, w8, #16
	scvtf	d0, w8
	and	w8, w0, #0xff
	sub	w9, w9, #128
	scvtf	d1, w9
	mov	x9, #42992
	movk	x9, #19398, lsl #16
	movk	x9, #35127, lsl #32
	movk	x9, #16377, lsl #48
	fmov	d2, x9
	fmul	d2, d1, d2
	mov	x9, #46137
	movk	x9, #30408, lsl #16
	movk	x9, #40894, lsl #32
	movk	x9, #16370, lsl #48
	fmov	d3, x9
	fmadd	d2, d0, d3, d2
	fcvtzs	w9, d2
	sub	w8, w8, #128
	scvtf	d2, w8
	mov	x8, #3146
	movk	x8, #11010, lsl #16
	movk	x8, #5767, lsl #32
	movk	x8, #49113, lsl #48
	fmov	d4, x8
	fmul	d4, d2, d4
	fmadd	d4, d0, d3, d4
	mov	x8, #48234
	movk	x8, #37748, lsl #16
	movk	x8, #1048, lsl #32
	movk	x8, #49130, lsl #48
	fmov	d5, x8
	fmadd	d1, d1, d5, d4
	fcvtzs	w8, d1
	mov	x10, #16777
	movk	x10, #58720, lsl #16
	movk	x10, #8912, lsl #32
	movk	x10, #16384, lsl #48
	fmov	d1, x10
	fmul	d1, d2, d1
	fmadd	d0, d0, d3, d1
	fcvtzs	w10, d0
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	cmp	w10, #0
	csel	w10, w10, wzr, gt
	mov	w11, #255
	cmp	w9, #255
	csel	w9, w9, w11, lo
	cmp	w8, #255
	csel	w8, w8, w11, lo
	cmp	w10, #255
	csel	w10, w10, w11, lo
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #8
	orr	w0, w8, w10
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
