	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getPixelColorRGBA16
_getPixelColorRGBA16:                   ## @getPixelColorRGBA16
	.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
	movq	16(%rbp), %r10
	movl	$85, %eax
	cmpl	$16, (%r10)
	jne	LBB0_19
## %bb.1:
	movq	8(%r10), %r11
	movq	_LCT_GREY@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r11
	jne	LBB0_5
## %bb.2:
	movzbl	(%r8,%r9,2), %eax
	shll	$8, %eax
	movzbl	1(%r8,%r9,2), %ebx
	orl	%eax, %ebx
	movw	%bx, (%rdx)
	movw	%bx, (%rsi)
	movw	%bx, (%rdi)
	cmpq	$0, 32(%r10)
	je	LBB0_11
## %bb.3:
	leaq	(%r9,%r9), %rax
	leaq	(%r9,%r9), %rdx
	incq	%rdx
	movzbl	(%r8,%rax), %eax
	shll	$8, %eax
	movzbl	(%r8,%rdx), %edx
	orl	%eax, %edx
	cmpl	16(%r10), %edx
	jne	LBB0_11
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_5:
	movq	_LCT_RGB@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r11
	jne	LBB0_12
## %bb.6:
	addq	%r9, %r9
	leaq	(%r9,%r9,2), %r9
	movzbl	(%r8,%r9), %ebx
	shll	$8, %ebx
	movq	%r9, %r11
	orq	$1, %r11
	movzbl	(%r8,%r11), %eax
	orl	%ebx, %eax
	movw	%ax, (%rdi)
	movzwl	2(%r8,%r9), %eax
	rolw	$8, %ax
	movw	%ax, (%rsi)
	movzwl	4(%r8,%r9), %eax
	rolw	$8, %ax
	movw	%ax, (%rdx)
	cmpq	$0, 32(%r10)
	je	LBB0_11
## %bb.7:
	movzbl	(%r8,%r9), %eax
	shll	$8, %eax
	movzbl	(%r8,%r11), %edx
	orl	%eax, %edx
	cmpl	16(%r10), %edx
	jne	LBB0_11
## %bb.8:
	movzwl	2(%r8,%r9), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	cmpl	20(%r10), %eax
	jne	LBB0_11
## %bb.9:
	movzwl	4(%r8,%r9), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	cmpl	24(%r10), %eax
	je	LBB0_4
LBB0_11:
	movw	$-1, %ax
	jmp	LBB0_18
LBB0_12:
	movq	_LCT_GREY_ALPHA@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r11
	jne	LBB0_15
## %bb.13:
	movzbl	(%r8,%r9,4), %eax
	shll	$8, %eax
	movzbl	1(%r8,%r9,4), %ebx
	orl	%eax, %ebx
	movw	%bx, (%rdx)
	movw	%bx, (%rsi)
	movw	%bx, (%rdi)
	movzbl	2(%r8,%r9,4), %edx
	shll	$8, %edx
	movzbl	3(%r8,%r9,4), %eax
	jmp	LBB0_17
LBB0_15:
	movq	_LCT_RGBA@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r11
	jne	LBB0_19
## %bb.16:
	movzbl	(%r8,%r9,8), %eax
	shll	$8, %eax
	movzbl	1(%r8,%r9,8), %ebx
	orl	%eax, %ebx
	movw	%bx, (%rdi)
	movzbl	2(%r8,%r9,8), %eax
	shll	$8, %eax
	movzbl	3(%r8,%r9,8), %edi
	orl	%eax, %edi
	movw	%di, (%rsi)
	movzbl	4(%r8,%r9,8), %eax
	shll	$8, %eax
	movzbl	5(%r8,%r9,8), %esi
	orl	%eax, %esi
	movw	%si, (%rdx)
	movzbl	6(%r8,%r9,8), %edx
	shll	$8, %edx
	movzbl	7(%r8,%r9,8), %eax
LBB0_17:
	orl	%edx, %eax
LBB0_18:
	movw	%ax, (%rcx)
	xorl	%eax, %eax
LBB0_19:
	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	_getPixelColorRGBA16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getPixelColorRGBA16
_getPixelColorRGBA16:                   ; @getPixelColorRGBA16
	.cfi_startproc
; %bb.0:
	ldr	w8, [x6]
	cmp	w8, #16
	b.ne	LBB0_17
; %bb.1:
	ldr	x8, [x6, #8]
Lloh0:
	adrp	x9, _LCT_GREY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LCT_GREY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	lsl	x8, x5, #1
	ldrb	w10, [x4, x8]
	mov	w9, #1
	bfi	x9, x5, #1, #63
	ldrb	w11, [x4, x9]
	bfi	w11, w10, #8, #24
	strh	w11, [x2]
	strh	w11, [x1]
	strh	w11, [x0]
	ldr	x10, [x6, #32]
	cbz	x10, LBB0_10
; %bb.3:
	ldrb	w8, [x4, x8]
	ldrb	w9, [x4, x9]
	bfi	w9, w8, #8, #8
	ldr	w8, [x6, #16]
	cmp	w9, w8
	b.ne	LBB0_10
LBB0_4:
	mov	w8, #0
	b	LBB0_16
LBB0_5:
Lloh3:
	adrp	x9, _LCT_RGB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LCT_RGB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	add	x9, x5, x5, lsl #1
	lsl	x8, x9, #1
	ldrb	w10, [x4, x8]
	mov	w11, #1
	bfi	x11, x9, #1, #63
	ldrb	w9, [x4, x11]
	bfi	w9, w10, #8, #24
	strh	w9, [x0]
	add	x10, x8, #2
	ldrh	w9, [x4, x10]
	rev	w9, w9
	lsr	w9, w9, #16
	strh	w9, [x1]
	add	x9, x8, #4
	ldrh	w12, [x4, x9]
	rev	w12, w12
	lsr	w12, w12, #16
	strh	w12, [x2]
	ldr	x12, [x6, #32]
	cbz	x12, LBB0_10
; %bb.7:
	ldrb	w12, [x4, x8]
	ldrb	w11, [x4, x11]
	bfi	w11, w12, #8, #8
	ldr	w12, [x6, #16]
	cmp	w11, w12
	b.ne	LBB0_10
; %bb.8:
	ldrb	w10, [x4, x10]
	add	x11, x8, #3
	ldrb	w11, [x4, x11]
	bfi	w11, w10, #8, #8
	ldr	w10, [x6, #20]
	cmp	w11, w10
	b.ne	LBB0_10
; %bb.9:
	ldrb	w9, [x4, x9]
	add	x8, x8, #5
	ldrb	w8, [x4, x8]
	bfi	w8, w9, #8, #8
	ldr	w9, [x6, #24]
	cmp	w8, w9
	b.eq	LBB0_4
LBB0_10:
	mov	w8, #65535
	b	LBB0_16
LBB0_11:
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_13
; %bb.12:
	add	x8, x4, x5, lsl #2
	ldrb	w9, [x8]
	ldrb	w10, [x8, #1]
	bfi	w10, w9, #8, #24
	strh	w10, [x2]
	strh	w10, [x1]
	strh	w10, [x0]
	ldrb	w9, [x8, #2]
	ldrb	w8, [x8, #3]
	b	LBB0_15
LBB0_13:
Lloh9:
	adrp	x9, _LCT_RGBA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LCT_RGBA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
	add	x8, x4, x5, lsl #3
	ldrb	w9, [x8]
	ldrb	w10, [x8, #1]
	bfi	w10, w9, #8, #24
	strh	w10, [x0]
	ldrb	w9, [x8, #2]
	ldrb	w10, [x8, #3]
	bfi	w10, w9, #8, #24
	strh	w10, [x1]
	ldrb	w9, [x8, #4]
	ldrb	w10, [x8, #5]
	bfi	w10, w9, #8, #24
	strh	w10, [x2]
	ldrb	w9, [x8, #6]
	ldrb	w8, [x8, #7]
LBB0_15:
	bfi	w8, w9, #8, #24
LBB0_16:
	mov	w0, #0
	strh	w8, [x3]
	ret
LBB0_17:
	mov	w0, #85
	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	_getPixelColorRGBA16
.subsections_via_symbols
