	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgba16ToPixel
_rgba16ToPixel:                         ## @rgba16ToPixel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	$85, %eax
	cmpl	$16, (%rdx)
	jne	LBB0_11
## %bb.1:
	movq	8(%rdx), %rdx
	movq	_LCT_GREY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_3
## %bb.2:
	movb	%ch, (%rdi,%rsi,2)
	leaq	(%rsi,%rsi), %rax
	incq	%rax
	jmp	LBB0_10
LBB0_3:
	movl	%r8d, %ebx
	movq	_LCT_RGB@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.4:
	addq	%rsi, %rsi
	leaq	(%rsi,%rsi,2), %rax
	rolw	$8, %cx
	movw	%cx, (%rdi,%rax)
	movb	%bh, 2(%rdi,%rax)
	movb	%bl, 3(%rdi,%rax)
	movl	%r9d, %ecx
	movb	%ch, 4(%rdi,%rax)
	leaq	(%rsi,%rsi,2), %rax
	addq	$5, %rax
	jmp	LBB0_9
LBB0_5:
	movzwl	16(%rbp), %r10d
	movq	_LCT_GREY_ALPHA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_7
## %bb.6:
	rolw	$8, %cx
	movw	%cx, (%rdi,%rsi,4)
	movl	%r10d, %ecx
	movb	%ch, 2(%rdi,%rsi,4)
	leaq	3(,%rsi,4), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_LCT_RGBA@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpq	(%r8), %rdx
	jne	LBB0_11
## %bb.8:
	rolw	$8, %cx
	movw	%cx, (%rdi,%rsi,8)
	movb	%bh, 2(%rdi,%rsi,8)
	movb	%bl, 3(%rdi,%rsi,8)
	movl	%r9d, %eax
	movb	%ah, 4(%rdi,%rsi,8)
	movb	%al, 5(%rdi,%rsi,8)
	movl	%r10d, %ecx
	movb	%ch, 6(%rdi,%rsi,8)
	leaq	7(,%rsi,8), %rax
LBB0_9:
                                        ## kill: def $cx killed $cx killed $ecx def $ecx
LBB0_10:
	movb	%cl, (%rdi,%rax)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LCT_GREY,8,3                   ## @LCT_GREY
	.comm	_LCT_RGB,8,3                    ## @LCT_RGB
	.comm	_LCT_GREY_ALPHA,8,3             ## @LCT_GREY_ALPHA
	.comm	_LCT_RGBA,8,3                   ## @LCT_RGBA
	.no_dead_strip	_rgba16ToPixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgba16ToPixel
_rgba16ToPixel:                         ; @rgba16ToPixel
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2]
	cmp	w8, #16
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x2, #8]
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.2:
	lsr	w8, w3, #8
	lsl	x9, x1, #1
	strb	w8, [x0, x9]
	mov	w9, #1
	bfi	x9, x1, #1, #63
	b	LBB0_10
LBB0_3:
	mov	w0, #85
	ret
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_6
; %bb.5:
	lsr	w8, w3, #8
	add	x9, x1, x1, lsl #1
	lsl	x9, x9, #1
	add	x10, x0, x9
	strb	w8, [x10]
	strb	w3, [x10, #1]
	lsr	w8, w4, #8
	strb	w8, [x10, #2]
	strb	w4, [x10, #3]
	lsr	w8, w5, #8
	strb	w8, [x10, #4]
	add	x9, x9, #5
	mov	x3, x5
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x9, _LCT_GREY_ALPHA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCT_GREY_ALPHA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	lsr	w8, w3, #8
	lsl	x9, x1, #2
	add	x9, x0, x9
	strb	w8, [x9]
	strb	w3, [x9, #1]
	lsr	w8, w6, #8
	strb	w8, [x9, #2]
	mov	w9, #3
	bfi	x9, x1, #2, #62
	mov	x3, x6
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x9, _LCT_RGBA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LCT_RGBA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	lsr	w8, w3, #8
	lsl	x9, x1, #3
	add	x10, x0, x9
	strb	w8, [x10]
	strb	w3, [x10, #1]
	lsr	w8, w4, #8
	strb	w8, [x10, #2]
	strb	w4, [x10, #3]
	lsr	w8, w5, #8
	strb	w8, [x10, #4]
	strb	w5, [x10, #5]
	lsr	w8, w6, #8
	mov	w9, #7
	bfi	x9, x1, #3, #61
	mov	x3, x6
	strb	w8, [x10, #6]
LBB0_10:
	strb	w3, [x0, x9]
LBB0_11:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LCT_GREY,8,3                   ; @LCT_GREY
	.comm	_LCT_RGB,8,3                    ; @LCT_RGB
	.comm	_LCT_GREY_ALPHA,8,3             ; @LCT_GREY_ALPHA
	.comm	_LCT_RGBA,8,3                   ; @LCT_RGBA
	.no_dead_strip	_rgba16ToPixel
.subsections_via_symbols
