	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgba8ToPixel
_rgba8ToPixel:                          ## @rgba8ToPixel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdx), %rdx
	movq	_LCT_GREY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.1:
	movl	8(%rbx), %edx
	cmpl	$16, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$8, %edx
	jne	LBB0_14
## %bb.3:
	movb	%r8b, (%r15,%r14)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_5:
	movb	16(%rbp), %dil
	movq	_LCT_RGB@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_9
## %bb.6:
	cmpl	$8, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	leaq	(%r14,%r14,2), %rax
	movb	%r8b, (%r15,%rax)
	movb	%r9b, 1(%r15,%rax)
	movb	%dil, 2(%r15,%rax)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_9:
	movb	24(%rbp), %r10b
	movq	_LCT_PALETTE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_16
## %bb.10:
	movzbl	%r8b, %esi
	movzbl	%r9b, %edx
	movzbl	%dil, %eax
	movzbl	%r10b, %r8d
	movq	%rcx, %rdi
	movl	%eax, %ecx
	callq	_color_tree_get
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movl	8(%rbx), %edx
	cmpl	$8, %edx
	jne	LBB0_15
## %bb.13:
	movb	%al, (%r15,%r14)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_4:
	movb	%r8b, 1(%r15,%r14,2)
	movb	%r8b, (%r15,%r14,2)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_14:
	movzbl	%r8b, %esi
	movb	$8, %cl
	subb	%dl, %cl
	shrl	%cl, %esi
	movl	$-1, %eax
	movl	%edx, %ecx
	shll	%cl, %eax
	notl	%eax
	andl	%esi, %eax
LBB0_15:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_addColorBits
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_8:
	leaq	(%r14,%r14,2), %rax
	movb	%r8b, 1(%r15,%rax,2)
	movb	%r8b, (%r15,%rax,2)
	movb	%r9b, 3(%r15,%rax,2)
	movb	%r9b, 2(%r15,%rax,2)
	movb	%dil, 5(%r15,%rax,2)
	movb	%dil, 4(%r15,%rax,2)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_16:
	movq	_LCT_GREY_ALPHA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_21
## %bb.17:
	movl	8(%rbx), %ecx
	xorl	%eax, %eax
	cmpl	$16, %ecx
	je	LBB0_20
## %bb.18:
	cmpl	$8, %ecx
	jne	LBB0_25
## %bb.19:
	movb	%r8b, (%r15,%r14,2)
	movb	%r10b, 1(%r15,%r14,2)
	jmp	LBB0_25
LBB0_21:
	movq	_LCT_RGBA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jne	LBB0_25
## %bb.22:
	cmpl	$8, 8(%rbx)
	jne	LBB0_24
## %bb.23:
	movb	%r8b, (%r15,%r14,4)
	movb	%r9b, 1(%r15,%r14,4)
	movb	%dil, 2(%r15,%r14,4)
	movb	%r10b, 3(%r15,%r14,4)
	jmp	LBB0_25
LBB0_11:
	movl	$82, %eax
	jmp	LBB0_25
LBB0_20:
	movb	%r8b, 1(%r15,%r14,4)
	movb	%r8b, (%r15,%r14,4)
	movb	%r10b, 3(%r15,%r14,4)
	movb	%r10b, 2(%r15,%r14,4)
	jmp	LBB0_25
LBB0_24:
	movb	%r8b, 1(%r15,%r14,8)
	movb	%r8b, (%r15,%r14,8)
	movb	%r9b, 3(%r15,%r14,8)
	movb	%r9b, 2(%r15,%r14,8)
	movb	%dil, 5(%r15,%r14,8)
	movb	%dil, 4(%r15,%r14,8)
	movb	%r10b, 7(%r15,%r14,8)
	movb	%r10b, 6(%r15,%r14,8)
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LCT_GREY,8,3                   ## @LCT_GREY
	.comm	_LCT_RGB,8,3                    ## @LCT_RGB
	.comm	_LCT_PALETTE,8,3                ## @LCT_PALETTE
	.comm	_LCT_GREY_ALPHA,8,3             ## @LCT_GREY_ALPHA
	.comm	_LCT_RGBA,8,3                   ## @LCT_RGBA
	.no_dead_strip	_rgba8ToPixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgba8ToPixel
_rgba8ToPixel:                          ; @rgba8ToPixel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _LCT_GREY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LCT_GREY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w2, [x21, #8]
	cmp	w2, #16
	b.eq	LBB0_11
; %bb.2:
	cmp	w2, #8
	b.ne	LBB0_12
; %bb.3:
	mov	w0, #0
	strb	w4, [x20, x19]
	b	LBB0_26
LBB0_4:
Lloh3:
	adrp	x9, _LCT_RGB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LCT_RGB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x21, #8]
	cmp	w8, #8
	b.ne	LBB0_14
; %bb.6:
	mov	w0, #0
	add	x8, x19, x19, lsl #1
	add	x8, x20, x8
	strb	w4, [x8]
	strb	w5, [x8, #1]
	strb	w6, [x8, #2]
	b	LBB0_26
LBB0_7:
Lloh6:
	adrp	x9, _LCT_PALETTE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCT_PALETTE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.8:
	mov	x0, x3
	mov	x1, x4
	mov	x2, x5
	mov	x3, x6
	mov	x4, x7
	bl	_color_tree_get
	tbnz	w0, #31, LBB0_23
; %bb.9:
	mov	x3, x0
	ldr	w2, [x21, #8]
	cmp	w2, #8
	b.ne	LBB0_13
; %bb.10:
	mov	w0, #0
	strb	w3, [x20, x19]
	b	LBB0_26
LBB0_11:
	mov	w0, #0
	add	x8, x20, x19, lsl #1
	strb	w4, [x8, #1]
	strb	w4, [x8]
	b	LBB0_26
LBB0_12:
	mov	w8, #8
	sub	w8, w8, w2
	lsr	w8, w4, w8
	mov	w9, #-1
	lsl	w9, w9, w2
	bic	w3, w8, w9
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_addColorBits
	mov	w0, #0
	b	LBB0_26
LBB0_14:
	mov	w0, #0
	mov	w8, #6
	madd	x8, x19, x8, x20
	strb	w4, [x8, #1]
	strb	w4, [x8]
	strb	w5, [x8, #3]
	strb	w5, [x8, #2]
	strb	w6, [x8, #5]
	strb	w6, [x8, #4]
	b	LBB0_26
LBB0_15:
Lloh9:
	adrp	x9, _LCT_GREY_ALPHA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LCT_GREY_ALPHA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.16:
	ldr	w8, [x21, #8]
	cmp	w8, #16
	b.eq	LBB0_24
; %bb.17:
	cmp	w8, #8
	b.ne	LBB0_22
; %bb.18:
	mov	w0, #0
	add	x8, x20, x19, lsl #1
	strb	w4, [x8]
	strb	w7, [x8, #1]
	b	LBB0_26
LBB0_19:
Lloh12:
	adrp	x9, _LCT_RGBA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LCT_RGBA@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	ldr	w8, [x21, #8]
	cmp	w8, #8
	b.ne	LBB0_25
; %bb.21:
	mov	w0, #0
	add	x8, x20, x19, lsl #2
	strb	w4, [x8]
	strb	w5, [x8, #1]
	strb	w6, [x8, #2]
	strb	w7, [x8, #3]
	b	LBB0_26
LBB0_22:
	mov	w0, #0
	b	LBB0_26
LBB0_23:
	mov	w0, #82
	b	LBB0_26
LBB0_24:
	mov	w0, #0
	add	x8, x20, x19, lsl #2
	strb	w4, [x8, #1]
	strb	w4, [x8]
	strb	w7, [x8, #3]
	strb	w7, [x8, #2]
	b	LBB0_26
LBB0_25:
	mov	w0, #0
	add	x8, x20, x19, lsl #3
	strb	w4, [x8, #1]
	strb	w4, [x8]
	strb	w5, [x8, #3]
	strb	w5, [x8, #2]
	strb	w6, [x8, #5]
	strb	w6, [x8, #4]
	strb	w7, [x8, #7]
	strb	w7, [x8, #6]
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LCT_GREY,8,3                   ; @LCT_GREY
	.comm	_LCT_RGB,8,3                    ; @LCT_RGB
	.comm	_LCT_PALETTE,8,3                ; @LCT_PALETTE
	.comm	_LCT_GREY_ALPHA,8,3             ; @LCT_GREY_ALPHA
	.comm	_LCT_RGBA,8,3                   ; @LCT_RGBA
	.no_dead_strip	_rgba8ToPixel
.subsections_via_symbols
