	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palette_init
_palette_init:                          ## @palette_init
	.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
	xorl	%r12d, %r12d
	movq	_pixel_lut@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r14d
	andl	$7, %r14d
	movl	%r12d, %ebx
	shrl	$3, %ebx
	andl	$7, %ebx
	movl	%r12d, %r15d
	shrl	$6, %r15d
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_MAKE_PIXEL
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r12,8)
	leal	(%r14,%r14), %edi
	leal	(%rbx,%rbx), %esi
	leal	(%r15,%r15), %edx
	callq	_MAKE_PIXEL
	movq	(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%r12,8)
	addl	$7, %r14d
	addl	$7, %ebx
	addl	$7, %r15d
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_MAKE_PIXEL
	movq	(%r13), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx,%r12,8)
	incq	%r12
	cmpq	$512, %r12                      ## imm = 0x200
	jne	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movq	_pixel_lut_m4@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	andl	$12, %esi
	movl	%r15d, %edi
	andl	$12, %edi
	movl	%ebx, %edx
	shrl	$2, %edx
	andl	$12, %edx
	callq	_MAKE_PIXEL
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	addl	$4, %r15d
	cmpq	$64, %rbx
	jne	LBB0_3
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pixel_lut,8,3                  ## @pixel_lut
	.comm	_pixel_lut_m4,8,3               ## @pixel_lut_m4
	.no_dead_strip	_palette_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palette_init
_palette_init:                          ; @palette_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, #0
Lloh0:
	adrp	x23, _pixel_lut@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pixel_lut@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	and	w19, w22, #0x7
	ubfx	w20, w22, #3, #3
	ubfx	x21, x22, #6, #26
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_MAKE_PIXEL
	ldr	x8, [x23]
	lsl	x24, x22, #3
	ldr	x8, [x8]
	str	x0, [x8, x24]
	lsl	w0, w19, #1
	lsl	w1, w20, #1
	lsl	w2, w21, #1
	bl	_MAKE_PIXEL
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	str	x0, [x8, x24]
	add	w0, w19, #7
	add	w1, w20, #7
	add	w2, w21, #7
	bl	_MAKE_PIXEL
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	str	x0, [x8, x24]
	add	x22, x22, #1
	cmp	x22, #512
	b.ne	LBB0_1
; %bb.2:
	mov	w19, #0
	mov	x20, #0
Lloh2:
	adrp	x21, _pixel_lut_m4@GOTPAGE
Lloh3:
	ldr	x21, [x21, _pixel_lut_m4@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	w1, w20, #0xc
	and	w0, w19, #0xc
	ubfx	x8, x20, #2, #30
	and	w2, w8, #0xc
	bl	_MAKE_PIXEL
	ldr	x8, [x21]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	add	w19, w19, #4
	cmp	x20, #64
	b.ne	LBB0_3
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_pixel_lut,8,3                  ; @pixel_lut
	.comm	_pixel_lut_m4,8,3               ; @pixel_lut_m4
	.no_dead_strip	_palette_init
.subsections_via_symbols
