	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_ColorTable                  ## -- Begin function gl_ColorTable
	.p2align	4, 0x90
_gl_ColorTable:                         ## @gl_ColorTable
	.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
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	callq	_INSIDE_BEGIN_END
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_2:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
LBB0_3:
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_9
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	leaq	24(%r13), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_10:
	leaq	32(%r13), %rax
	jmp	LBB0_11
LBB0_8:
	leaq	8(%r13), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	16(%r13), %rax
LBB0_7:
	movq	_GL_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
LBB0_11:
	movq	(%rax), %rbx
	movl	(%r14), %edi
	testl	%edi, %edi
	jle	LBB0_14
## %bb.12:
	movq	_MAX_TEXTURE_PALETTE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_14
## %bb.13:
	callq	_power_of_two
	testl	%eax, %eax
	je	LBB0_14
## %bb.16:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	%r15d, %edi
	callq	_decode_internal_format
	movq	%rax, 16(%rbx)
	testq	%r12, %r12
	jne	LBB0_18
## %bb.17:
	movl	8(%rbx), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	imull	(%r14), %edx
	callq	_MEMCPY
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_14:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	callq	_gl_error
	testq	%r12, %r12
	je	LBB0_18
## %bb.15:
	movq	$0, (%rbx)
	movq	$0, 16(%rbx)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_GL_FALSE,8,3                   ## @GL_FALSE
	.comm	_GL_INVALID_OPERATION,4,2       ## @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glGetBooleanv"

	.comm	_GL_TRUE,8,3                    ## @GL_TRUE
	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
L_.str.1:                               ## @.str.1
	.asciz	"glColorTableEXT(target)"

	.comm	_MAX_TEXTURE_PALETTE_SIZE,4,2   ## @MAX_TEXTURE_PALETTE_SIZE
	.comm	_GL_INVALID_VALUE,4,2           ## @GL_INVALID_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"glColorTableEXT(width)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_ColorTable                  ; -- Begin function gl_ColorTable
	.p2align	2
_gl_ColorTable:                         ; @gl_ColorTable
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	bl	_INSIDE_BEGIN_END
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	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
	b	_gl_error
LBB0_3:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.4:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	add	x8, x19, #24
	b	LBB0_11
LBB0_6:
Lloh10:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
	add	x8, x19, #32
	b	LBB0_11
LBB0_8:
	add	x8, x19, #8
	b	LBB0_10
LBB0_9:
	add	x8, x19, #16
LBB0_10:
Lloh15:
	adrp	x9, _GL_TRUE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GL_TRUE@GOTPAGEOFF]
Lloh17:
	ldr	x23, [x9]
LBB0_11:
	ldr	x22, [x8]
	ldr	w0, [x20]
Lloh18:
	adrp	x8, _MAX_TEXTURE_PALETTE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_TEXTURE_PALETTE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, #1
	ccmp	w0, w8, #0, ge
	b.gt	LBB0_16
; %bb.12:
	bl	_power_of_two
	cbz	w0, LBB0_16
; %bb.13:
	ldr	w8, [x20]
	stp	w8, w21, [x22]
	mov	x0, x21
	bl	_decode_internal_format
	str	x0, [x22, #16]
	cbnz	x23, LBB0_18
; %bb.14:
	ldr	w0, [x22, #8]
	ldp	w9, w1, [x20, #4]
	ldr	w8, [x20]
	mul	w2, w9, w8
	bl	_MEMCPY
	ldr	x2, [x19]
	cbz	x2, LBB0_18
; %bb.15:
	mov	x0, x19
	mov	x1, x22
	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
	br	x2
LBB0_16:
Lloh21:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gl_error
	cbz	x23, LBB0_18
; %bb.17:
	str	xzr, [x22]
	str	xzr, [x22, #16]
LBB0_18:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.comm	_GL_FALSE,8,3                   ; @GL_FALSE
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glGetBooleanv"

	.comm	_GL_TRUE,8,3                    ; @GL_TRUE
	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
l_.str.1:                               ; @.str.1
	.asciz	"glColorTableEXT(target)"

	.comm	_MAX_TEXTURE_PALETTE_SIZE,4,2   ; @MAX_TEXTURE_PALETTE_SIZE
	.comm	_GL_INVALID_VALUE,4,2           ; @GL_INVALID_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"glColorTableEXT(width)"

.subsections_via_symbols
