	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function bleed_phosphors_xrgb8888
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bleed_phosphors_xrgb8888:              ## @bleed_phosphors_xrgb8888
	.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
	movq	%rsi, %r15
	testl	%edx, %edx
	je	LBB0_9
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	(%r15,%rax,4), %edi
	callq	_red_xrgb8888
	movl	%eax, %ecx
	imull	(%r13), %eax
	movq	8(%r13), %rdx
	imull	(%rdx,%rcx,4), %eax
	movl	%eax, %edi
	callq	_clamp8
	leal	1(%rbx), %ecx
	movl	(%r15,%rcx,4), %edi
	movl	%eax, %esi
	callq	_set_red_xrgb8888
	addl	$2, %ebx
	cmpl	%r14d, %ebx
	jb	LBB0_2
## %bb.3:
	movl	%r14d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_green_xrgb8888
	movl	%eax, %ecx
	shrl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rcx, %xmm1
	mulsd	LCPI0_0(%rip), %xmm1
	movl	(%r13), %eax
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rax, %xmm2
	mulsd	%xmm1, %xmm2
	movq	8(%r13), %rax
	movl	(%rax,%rcx,4), %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	mulsd	%xmm2, %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_clamp8
	movl	(%r15,%rbx,4), %edi
	movl	%eax, %esi
	callq	_set_green_xrgb8888
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
## %bb.5:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_set_blue_xrgb8888
	cmpl	$2, %r14d
	jb	LBB0_8
## %bb.6:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	(%r15,%rax,4), %edi
	callq	_blue_xrgb8888
	movl	%eax, %ecx
	imull	(%r13), %eax
	movq	8(%r13), %rdx
	imull	(%rdx,%rcx,4), %eax
	movl	%eax, %edi
	callq	_clamp8
	leal	1(%rbx), %ecx
	movl	(%r15,%rcx,4), %edi
	movl	%eax, %esi
	callq	_set_blue_xrgb8888
	addl	$2, %ebx
	cmpl	%r14d, %ebx
	jb	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r15), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_blue_xrgb8888              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bleed_phosphors_xrgb8888
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bleed_phosphors_xrgb8888
_bleed_phosphors_xrgb8888:              ; @bleed_phosphors_xrgb8888
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x1
	cbz	w2, LBB0_9
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, w22, uxtw #2]
	bl	_red_xrgb8888
	ldr	w8, [x21]
	mul	w8, w8, w0
	ldr	x9, [x21, #8]
	ldr	w9, [x9, w0, uxtw #2]
	mul	w0, w8, w9
	bl	_clamp8
	mov	x1, x0
	add	w8, w22, #1
	ldr	w0, [x19, w8, uxtw #2]
	bl	_set_red_xrgb8888
	add	w22, w22, #2
	cmp	w22, w20
	b.lo	LBB0_2
; %bb.3:
	mov	x22, #0
	mov	w8, w20
	lsl	x23, x8, #2
	fmov	d8, #0.50000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, x22]
	bl	_green_xrgb8888
	lsr	w8, w0, #1
	ucvtf	d0, w8
	ucvtf	d1, w0
	fmul	d1, d1, d8
	ldr	s2, [x21]
	ucvtf	d2, d2
	fmul	d1, d1, d2
	ldr	x8, [x21, #8]
	ldr	s2, [x8, w0, uxtw #2]
	ucvtf	d2, d2
	fmadd	d0, d1, d2, d0
	fcvtzu	w0, d0
	bl	_clamp8
	mov	x1, x0
	ldr	w0, [x19, x22]
	bl	_set_green_xrgb8888
	add	x22, x22, #4
	cmp	x23, x22
	b.ne	LBB0_4
; %bb.5:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_set_blue_xrgb8888
	cmp	w20, #2
	b.lo	LBB0_8
; %bb.6:
	mov	w22, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, w22, uxtw #2]
	bl	_blue_xrgb8888
	ldr	w8, [x21]
	mul	w8, w8, w0
	ldr	x9, [x21, #8]
	ldr	w9, [x9, w0, uxtw #2]
	mul	w0, w8, w9
	bl	_clamp8
	mov	x1, x0
	add	w8, w22, #1
	ldr	w0, [x19, w8, uxtw #2]
	bl	_set_blue_xrgb8888
	add	w22, w22, #2
	cmp	w22, w20
	b.lo	LBB0_7
LBB0_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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x19]
	mov	w1, #0
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_set_blue_xrgb8888
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bleed_phosphors_xrgb8888
.subsections_via_symbols
