	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palette_sample
_palette_sample:                        ## @palette_sample
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_6
## %bb.1:
	movq	(%rdi), %r10
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rax,4), %rax
	addq	%rdi, %rax
	jmpq	*%rax
LBB0_2:
	movq	(%r10,%rsi,8), %rax
	movq	%rax, (%rdx)
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	popq	%rbp
	jmp	_gl_problem                     ## TAILCALL
LBB0_5:
	leal	(,%rsi,4), %eax
	cltq
	movq	(%r10,%rax,8), %rax
	movq	%rax, (%rdx)
	leal	1(,%rsi,4), %eax
	cltq
	movq	(%r10,%rax,8), %rax
	movq	%rax, (%rcx)
	leal	2(,%rsi,4), %eax
	cltq
	movq	(%r10,%rax,8), %rax
	movq	%rax, (%r8)
	leal	3(,%rsi,4), %eax
	cltq
	movq	(%r10,%rax,8), %rax
	jmp	LBB0_8
LBB0_4:
	leaq	(%rsi,%rsi,2), %rax
	movq	(%r10,%rax,8), %rsi
	movq	%rsi, (%rdx)
	movq	8(%r10,%rax,8), %rdx
	movq	%rdx, (%rcx)
	movq	16(%r10,%rax,8), %rax
	movq	%rax, (%r8)
	popq	%rbp
	retq
LBB0_3:
	shlq	$4, %rsi
	movq	(%r10,%rsi), %rax
	movq	%rax, (%rdx)
	movq	8(%r10,%rsi), %rax
	jmp	LBB0_8
LBB0_7:
	movq	(%r10,%rsi,8), %rax
LBB0_8:
	movq	%rax, (%r9)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad palette format in palette_sample"

	.no_dead_strip	_palette_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palette_sample
_palette_sample:                        ; @palette_sample
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	x8, [x8, x1, lsl #3]
	str	x8, [x2]
	ret
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	b	_gl_problem
LBB0_4:
	lsl	w9, w1, #2
	add	x8, x8, w9, sxtw #3
	ldr	x9, [x8]
	str	x9, [x2]
	ldr	x9, [x8, #8]
	str	x9, [x3]
	ldr	x9, [x8, #16]
	str	x9, [x4]
	ldr	x8, [x8, #24]
	str	x8, [x5]
	ret
LBB0_5:
	mov	w9, #24
	madd	x8, x1, x9, x8
	ldr	x9, [x8]
	str	x9, [x2]
	ldr	x9, [x8, #8]
	str	x9, [x3]
	ldr	x8, [x8, #16]
	str	x8, [x4]
	ret
LBB0_6:
	add	x8, x8, x1, lsl #4
	ldr	x9, [x8]
	str	x9, [x2]
	ldr	x8, [x8, #8]
	str	x8, [x5]
	ret
LBB0_7:
	ldr	x8, [x8, x1, lsl #3]
	str	x8, [x5]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad palette format in palette_sample"

	.no_dead_strip	_palette_sample
.subsections_via_symbols
