	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_2d_texel
_get_2d_texel:                          ## @get_2d_texel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	16(%rsi), %ebx
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_7
## %bb.1:
	movq	%r9, %r10
	movq	24(%rbp), %r9
	movq	16(%rbp), %r11
	movq	(%rsi), %rax
	leaq	LJTI0_0(%rip), %r14
	movslq	(%r14,%rbx,4), %rbx
	addq	%r14, %rbx
	jmpq	*%rbx
LBB0_3:
	movq	24(%rsi), %rsi
	imulq	%rcx, %rax
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %eax
	movl	%eax, (%r8)
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gl_problem                     ## TAILCALL
LBB0_6:
	movq	24(%rsi), %rsi
	imulq	%rcx, %rax
	addq	%rdx, %rax
	shlq	$4, %rax
	movl	(%rsi,%rax), %ecx
	movl	%ecx, (%r8)
	movl	4(%rsi,%rax), %ecx
	movl	%ecx, (%r10)
	movl	8(%rsi,%rax), %ecx
	movl	%ecx, (%r11)
	movl	12(%rsi,%rax), %eax
	jmp	LBB0_9
LBB0_5:
	movq	24(%rsi), %rsi
	imulq	%rcx, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rax,2), %rax
	movl	(%rsi,%rax,4), %ecx
	movl	%ecx, (%r8)
	movl	4(%rsi,%rax,4), %ecx
	movl	%ecx, (%r10)
	movl	8(%rsi,%rax,4), %eax
	movl	%eax, (%r11)
	jmp	LBB0_10
LBB0_4:
	movq	24(%rsi), %rsi
	imulq	%rcx, %rax
	addq	%rdx, %rax
	movl	(%rsi,%rax,8), %ecx
	movl	%ecx, (%r8)
	movl	4(%rsi,%rax,8), %eax
	jmp	LBB0_9
LBB0_2:
	movq	24(%rsi), %rsi
	imulq	%rcx, %rax
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %esi
	movq	%r8, %rdx
	movq	%r10, %rcx
	movq	%r11, %r8
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_palette_sample                 ## TAILCALL
LBB0_8:
	movq	24(%rsi), %rsi
	imulq	%rcx, %rax
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %eax
LBB0_9:
	movl	%eax, (%r9)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.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_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad format in get_2d_texel"

	.no_dead_strip	_get_2d_texel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_2d_texel
_get_2d_texel:                          ; @get_2d_texel
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1, #16]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [x1]
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	x9, [x1, #24]
	madd	x8, x8, x3, x2
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x4]
	ret
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	b	_gl_problem
LBB0_4:
	ldr	x9, [x1, #24]
	madd	x8, x8, x3, x2
	add	x8, x9, x8, lsl #4
	ldr	w9, [x8]
	str	w9, [x4]
	ldr	w9, [x8, #4]
	str	w9, [x5]
	ldr	w9, [x8, #8]
	str	w9, [x6]
	ldr	w8, [x8, #12]
	str	w8, [x7]
	ret
LBB0_5:
	ldr	x9, [x1, #24]
	madd	x8, x8, x3, x2
	mov	w10, #12
	madd	x8, x8, x10, x9
	ldr	w9, [x8]
	str	w9, [x4]
	ldr	w9, [x8, #4]
	str	w9, [x5]
	ldr	w8, [x8, #8]
	str	w8, [x6]
	ret
LBB0_6:
	ldr	x9, [x1, #24]
	madd	x8, x8, x3, x2
	add	x8, x9, x8, lsl #3
	ldr	w9, [x8]
	str	w9, [x4]
	ldr	w8, [x8, #4]
	str	w8, [x7]
	ret
LBB0_7:
	ldr	x9, [x1, #24]
	madd	x8, x8, x3, x2
	ldr	w1, [x9, x8, lsl #2]
	mov	x2, x4
	mov	x3, x5
	mov	x4, x6
	mov	x5, x7
	b	_palette_sample
LBB0_8:
	ldr	x9, [x1, #24]
	madd	x8, x8, x3, x2
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x7]
	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
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad format in get_2d_texel"

	.no_dead_strip	_get_2d_texel
.subsections_via_symbols
