	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function YUV2RGB
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x406fe00000000000              ## double 255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_YUV2RGB:                               ## @YUV2RGB
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %r13
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	movsd	24(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	addsd	16(%rbx), %xmm1
	addsd	32(%rbx), %xmm2
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	mulsd	%xmm3, %xmm1
	mulsd	%xmm3, %xmm2
	leaq	-64(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_Colours_YUV2RGB
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %esi
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edx
	movsd	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %ecx
	movl	%r15d, %edi
	movq	%r14, %r8
	callq	_Colours_SetRGB
	incl	%r15d
	addq	$40, %rbx
	cmpl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_YUV2RGB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function YUV2RGB
_YUV2RGB:                               ; @YUV2RGB
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
	fmov	d8, #0.50000000
	mov	x22, #246290604621824
	movk	x22, #16495, lsl #48
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d0, d1, [x19]
	ldp	d2, d3, [x19, #16]
	ldr	d4, [x19, #32]
	fadd	d1, d1, d2
	fmul	d1, d1, d8
	fadd	d2, d3, d4
	fmul	d2, d2, d8
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_Colours_YUV2RGB
	ldr	d0, [sp, #24]
	fmov	d1, x22
	fmul	d0, d0, d1
	fcvtzs	w1, d0
	ldr	d0, [sp, #16]
	fmul	d0, d0, d1
	fcvtzs	w2, d0
	ldr	d0, [sp, #8]
	fmul	d0, d0, d1
	fcvtzs	w3, d0
	mov	x0, x21
	mov	x4, x20
	bl	_Colours_SetRGB
	add	w21, w21, #1
	add	x19, x19, #40
	cmp	w21, #256
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_YUV2RGB
.subsections_via_symbols
