	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function PicoDoHighPal555
LCPI0_0:
	.long	3758153728                      ## 0xe000e000
	.long	3758153728                      ## 0xe000e000
	.long	3758153728                      ## 0xe000e000
	.long	3758153728                      ## 0xe000e000
LCPI0_1:
	.long	117442304                       ## 0x7000700
	.long	117442304                       ## 0x7000700
	.long	117442304                       ## 0x7000700
	.long	117442304                       ## 0x7000700
LCPI0_2:
	.long	1835036                         ## 0x1c001c
	.long	1835036                         ## 0x1c001c
	.long	1835036                         ## 0x1c001c
	.long	1835036                         ## 0x1c001c
LCPI0_3:
	.long	140576865                       ## 0x8610861
	.long	140576865                       ## 0x8610861
	.long	140576865                       ## 0x8610861
	.long	140576865                       ## 0x8610861
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_PicoDoHighPal555
	.p2align	4, 0x90
_PicoDoHighPal555:                      ## @PicoDoHighPal555
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	$0, 8(%rax)
	movq	(%rax), %r8
	movq	_HighPal@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%r9, %rdx
	subq	%r8, %rdx
	cmpq	$15, %rdx
	ja	LBB0_9
## %bb.1:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rdx,4), %esi
	movl	%esi, %ecx
	shll	$12, %ecx
	andl	$-536813568, %ecx               ## imm = 0xE000E000
	movl	%esi, %eax
	andl	$14680288, %eax                 ## imm = 0xE000E0
	leal	(%rcx,%rax,8), %eax
	shrl	$7, %esi
	andl	$1835036, %esi                  ## imm = 0x1C001C
	orl	%eax, %esi
	movl	%esi, %eax
	shrl	$4, %eax
	andl	$140576865, %eax                ## imm = 0x8610861
	orl	%esi, %eax
	movl	%eax, (%r9,%rdx,4)
	incq	%rdx
	cmpq	$32, %rdx
	jne	LBB0_2
## %bb.3:
	testl	%edi, %edi
	jne	LBB0_4
	jmp	LBB0_8
LBB0_9:
	movdqu	(%r8), %xmm4
	movdqa	%xmm4, %xmm2
	pslld	$12, %xmm2
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [3758153728,3758153728,3758153728,3758153728]
	pand	%xmm0, %xmm2
	movdqa	%xmm4, %xmm3
	pslld	$3, %xmm3
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [117442304,117442304,117442304,117442304]
	pand	%xmm1, %xmm3
	por	%xmm2, %xmm3
	psrld	$7, %xmm4
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [1835036,1835036,1835036,1835036]
	pand	%xmm2, %xmm4
	por	%xmm3, %xmm4
	movdqa	%xmm4, %xmm5
	psrld	$4, %xmm5
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [140576865,140576865,140576865,140576865]
	pand	%xmm3, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, (%r9)
	movdqu	16(%r8), %xmm4
	movdqa	%xmm4, %xmm5
	pslld	$12, %xmm5
	pand	%xmm0, %xmm5
	movdqa	%xmm4, %xmm6
	pslld	$3, %xmm6
	pand	%xmm1, %xmm6
	por	%xmm5, %xmm6
	psrld	$7, %xmm4
	pand	%xmm2, %xmm4
	por	%xmm6, %xmm4
	movdqa	%xmm4, %xmm5
	psrld	$4, %xmm5
	pand	%xmm3, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, 16(%r9)
	movdqu	32(%r8), %xmm4
	movdqa	%xmm4, %xmm5
	pslld	$12, %xmm5
	pand	%xmm0, %xmm5
	movdqa	%xmm4, %xmm6
	pslld	$3, %xmm6
	pand	%xmm1, %xmm6
	por	%xmm5, %xmm6
	psrld	$7, %xmm4
	pand	%xmm2, %xmm4
	por	%xmm6, %xmm4
	movdqa	%xmm4, %xmm5
	psrld	$4, %xmm5
	pand	%xmm3, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, 32(%r9)
	movdqu	48(%r8), %xmm4
	movdqa	%xmm4, %xmm5
	pslld	$12, %xmm5
	pand	%xmm0, %xmm5
	movdqa	%xmm4, %xmm6
	pslld	$3, %xmm6
	pand	%xmm1, %xmm6
	por	%xmm5, %xmm6
	psrld	$7, %xmm4
	pand	%xmm2, %xmm4
	por	%xmm6, %xmm4
	movdqa	%xmm4, %xmm5
	psrld	$4, %xmm5
	pand	%xmm3, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, 48(%r9)
	movdqu	64(%r8), %xmm4
	movdqa	%xmm4, %xmm5
	pslld	$12, %xmm5
	pand	%xmm0, %xmm5
	movdqa	%xmm4, %xmm6
	pslld	$3, %xmm6
	pand	%xmm1, %xmm6
	por	%xmm5, %xmm6
	psrld	$7, %xmm4
	pand	%xmm2, %xmm4
	por	%xmm6, %xmm4
	movdqa	%xmm4, %xmm5
	psrld	$4, %xmm5
	pand	%xmm3, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, 64(%r9)
	movdqu	80(%r8), %xmm4
	movdqa	%xmm4, %xmm5
	pslld	$12, %xmm5
	pand	%xmm0, %xmm5
	movdqa	%xmm4, %xmm6
	pslld	$3, %xmm6
	pand	%xmm1, %xmm6
	por	%xmm5, %xmm6
	psrld	$7, %xmm4
	pand	%xmm2, %xmm4
	por	%xmm6, %xmm4
	movdqa	%xmm4, %xmm5
	psrld	$4, %xmm5
	pand	%xmm3, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, 80(%r9)
	movdqu	96(%r8), %xmm4
	movdqa	%xmm4, %xmm5
	pslld	$12, %xmm5
	pand	%xmm0, %xmm5
	movdqa	%xmm4, %xmm6
	pslld	$3, %xmm6
	pand	%xmm1, %xmm6
	por	%xmm5, %xmm6
	psrld	$7, %xmm4
	pand	%xmm2, %xmm4
	por	%xmm6, %xmm4
	movdqa	%xmm4, %xmm5
	psrld	$4, %xmm5
	pand	%xmm3, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, 96(%r9)
	movdqu	112(%r8), %xmm4
	movdqa	%xmm4, %xmm5
	pslld	$12, %xmm5
	pand	%xmm0, %xmm5
	movdqa	%xmm4, %xmm0
	pslld	$3, %xmm0
	pand	%xmm1, %xmm0
	por	%xmm5, %xmm0
	psrld	$7, %xmm4
	pand	%xmm2, %xmm4
	por	%xmm0, %xmm4
	movdqa	%xmm4, %xmm0
	psrld	$4, %xmm0
	pand	%xmm3, %xmm0
	por	%xmm4, %xmm0
	movdqu	%xmm0, 112(%r9)
	testl	%edi, %edi
	je	LBB0_8
LBB0_4:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rcx,4), %eax
	shrl	%eax
	andl	$1938715534, %eax               ## imm = 0x738E738E
	movl	%ecx, %edx
	andl	$-98, %edx
	movl	%eax, 384(%r9,%rdx,4)
	movl	%ecx, %edx
	andl	$-34, %edx
	movl	%eax, 128(%r9,%rdx,4)
	movl	4(%r9,%rcx,4), %eax
	shrl	%eax
	andl	$1938715534, %eax               ## imm = 0x738E738E
	leal	1(%rcx), %edx
	shlq	$2, %rdx
	movq	%rdx, %rsi
	orq	$384, %rsi                      ## imm = 0x180
	movl	%eax, (%r9,%rsi)
	orq	$128, %rdx
	movl	%eax, (%r9,%rdx)
	addq	$2, %rcx
	cmpq	$32, %rcx
	jne	LBB0_5
## %bb.6:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rcx,4), %eax
	shrl	%eax
	andl	$1938715534, %eax               ## imm = 0x738E738E
	leal	1938715534(%rax), %edx
	shrl	$4, %edx
	andl	$140576865, %edx                ## imm = 0x8610861
	addl	%edx, %eax
	addl	$1938715534, %eax               ## imm = 0x738E738E
	movl	%ecx, %edx
	andl	$-66, %edx
	movl	%eax, 256(%r9,%rdx,4)
	movl	4(%r9,%rcx,4), %eax
	shrl	%eax
	andl	$1938715534, %eax               ## imm = 0x738E738E
	leal	1938715534(%rax), %edx
	shrl	$4, %edx
	andl	$140576865, %edx                ## imm = 0x8610861
	addl	%edx, %eax
	addl	$1938715534, %eax               ## imm = 0x738E738E
	leal	1(%rcx), %edx
	orq	$64, %rdx
	shlq	$2, %rdx
	movl	%eax, (%r9,%rdx)
	addq	$2, %rcx
	cmpq	$32, %rcx
	jne	LBB0_7
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,16,3                      ## @Pico
	.comm	_HighPal,8,3                    ## @HighPal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoDoHighPal555               ; -- Begin function PicoDoHighPal555
	.p2align	2
_PicoDoHighPal555:                      ; @PicoDoHighPal555
	.cfi_startproc
; %bb.0:
	mov	w8, #2145
	movk	w8, #2145, lsl #16
Lloh0:
	adrp	x9, _Pico@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Pico@GOTPAGEOFF]
	str	xzr, [x9, #8]
	ldr	x10, [x9]
Lloh2:
	adrp	x9, _HighPal@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HighPal@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	sub	x11, x9, x10
	cmp	x11, #15
	b.hi	LBB0_4
; %bb.1:
	mov	x11, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x11]
	lsl	w13, w12, #12
	and	w13, w13, #0xe000e000
	lsl	w14, w12, #3
	and	w14, w14, #0x7000700
	orr	w13, w13, w14
	lsr	w12, w12, #7
	and	w12, w12, #0x1c001c
	orr	w12, w13, w12
	and	w13, w8, w12, lsr #4
	orr	w12, w13, w12
	str	w12, [x9, x11]
	add	x11, x11, #4
	cmp	x11, #128
	b.ne	LBB0_2
; %bb.3:
	cbnz	w0, LBB0_5
	b	LBB0_9
LBB0_4:
	ldr	q2, [x10]
	shl.4s	v1, v2, #12
	movi.8h	v0, #224, lsl #8
	and.16b	v3, v1, v0
	shl.4s	v4, v2, #3
	movi.8h	v1, #7, lsl #8
	and.16b	v4, v4, v1
	orr.16b	v3, v3, v4
	ushr.4s	v4, v2, #7
	movi.8h	v2, #28
	and.16b	v4, v4, v2
	orr.16b	v4, v3, v4
	ushr.4s	v5, v4, #4
	dup.4s	v3, w8
	and.16b	v5, v5, v3
	orr.16b	v4, v5, v4
	str	q4, [x9]
	ldr	q4, [x10, #16]
	shl.4s	v5, v4, #12
	and.16b	v5, v5, v0
	shl.4s	v6, v4, #3
	and.16b	v6, v6, v1
	orr.16b	v5, v5, v6
	ushr.4s	v4, v4, #7
	and.16b	v4, v4, v2
	orr.16b	v4, v5, v4
	ushr.4s	v5, v4, #4
	and.16b	v5, v5, v3
	orr.16b	v4, v5, v4
	str	q4, [x9, #16]
	ldr	q4, [x10, #32]
	shl.4s	v5, v4, #12
	and.16b	v5, v5, v0
	shl.4s	v6, v4, #3
	and.16b	v6, v6, v1
	orr.16b	v5, v5, v6
	ushr.4s	v4, v4, #7
	and.16b	v4, v4, v2
	orr.16b	v4, v5, v4
	ushr.4s	v5, v4, #4
	and.16b	v5, v5, v3
	orr.16b	v4, v5, v4
	str	q4, [x9, #32]
	ldr	q4, [x10, #48]
	shl.4s	v5, v4, #12
	and.16b	v5, v5, v0
	shl.4s	v6, v4, #3
	and.16b	v6, v6, v1
	orr.16b	v5, v5, v6
	ushr.4s	v4, v4, #7
	and.16b	v4, v4, v2
	orr.16b	v4, v5, v4
	ushr.4s	v5, v4, #4
	and.16b	v5, v5, v3
	orr.16b	v4, v5, v4
	str	q4, [x9, #48]
	ldr	q4, [x10, #64]
	shl.4s	v5, v4, #12
	and.16b	v5, v5, v0
	shl.4s	v6, v4, #3
	and.16b	v6, v6, v1
	orr.16b	v5, v5, v6
	ushr.4s	v4, v4, #7
	and.16b	v4, v4, v2
	orr.16b	v4, v5, v4
	ushr.4s	v5, v4, #4
	and.16b	v5, v5, v3
	orr.16b	v4, v5, v4
	str	q4, [x9, #64]
	ldr	q4, [x10, #80]
	shl.4s	v5, v4, #12
	and.16b	v5, v5, v0
	shl.4s	v6, v4, #3
	and.16b	v6, v6, v1
	orr.16b	v5, v5, v6
	ushr.4s	v4, v4, #7
	and.16b	v4, v4, v2
	orr.16b	v4, v5, v4
	ushr.4s	v5, v4, #4
	and.16b	v5, v5, v3
	orr.16b	v4, v5, v4
	str	q4, [x9, #80]
	ldr	q4, [x10, #96]
	shl.4s	v5, v4, #12
	and.16b	v5, v5, v0
	shl.4s	v6, v4, #3
	and.16b	v6, v6, v1
	orr.16b	v5, v5, v6
	ushr.4s	v4, v4, #7
	and.16b	v4, v4, v2
	orr.16b	v4, v5, v4
	ushr.4s	v5, v4, #4
	and.16b	v5, v5, v3
	orr.16b	v4, v5, v4
	str	q4, [x9, #96]
	ldr	q4, [x10, #112]
	shl.4s	v5, v4, #12
	and.16b	v0, v5, v0
	shl.4s	v5, v4, #3
	and.16b	v1, v5, v1
	orr.16b	v0, v0, v1
	ushr.4s	v1, v4, #7
	and.16b	v1, v1, v2
	orr.16b	v0, v0, v1
	ushr.4s	v1, v0, #4
	and.16b	v1, v1, v3
	orr.16b	v0, v1, v0
	str	q0, [x9, #112]
	cbz	w0, LBB0_9
LBB0_5:
	mov	x12, #0
	mov	w10, #-97
	mov	w11, #29582
	movk	w11, #29582, lsl #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9, x12, lsl #2]
	and	w13, w11, w13, lsr #1
	and	x14, x12, x10
	lsl	x14, x14, #2
	orr	x14, x14, #0x180
	str	w13, [x9, x14]
	add	x14, x10, #64
	and	x14, x12, x14
	lsl	x14, x14, #2
	orr	x14, x14, #0x80
	str	w13, [x9, x14]
	add	x12, x12, #1
	cmp	x12, #32
	b.ne	LBB0_6
; %bb.7:
	mov	x12, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9, x12, lsl #2]
	and	w13, w11, w13, lsr #1
	add	w13, w13, w11
	and	w14, w8, w13, lsr #4
	orr	w13, w14, w13
	add	x14, x10, #32
	and	x14, x12, x14
	lsl	x14, x14, #2
	orr	x14, x14, #0x100
	str	w13, [x9, x14]
	add	x12, x12, #1
	cmp	x12, #32
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,16,3                      ; @Pico
	.comm	_HighPal,8,3                    ; @HighPal
.subsections_via_symbols
