	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_EndList                     ## -- Begin function gl_EndList
	.p2align	4, 0x90
_gl_EndList:                            ## @gl_EndList
	.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
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %r14
	movq	_OPCODE_END_OF_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_alloc_instruction
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_gl_destroy_list
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rsi
	callq	_HashInsert
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ## @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glEndList"

	.comm	_OPCODE_END_OF_LIST,4,2         ## @OPCODE_END_OF_LIST
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_EndList                     ; -- Begin function gl_EndList
	.p2align	2
_gl_EndList:                            ; @gl_EndList
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #16]!
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _OPCODE_END_OF_LIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPCODE_END_OF_LIST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_alloc_instruction
	ldr	x1, [x19, #24]
	mov	x0, x19
	bl	_gl_destroy_list
	ldp	x1, x8, [x19, #24]
	ldr	w0, [x8]
	ldr	x2, [x19, #16]
	bl	_HashInsert
	stp	xzr, xzr, [x20]
Lloh3:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh6:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	stp	w9, w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gl_error
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glEndList"

	.comm	_OPCODE_END_OF_LIST,4,2         ; @OPCODE_END_OF_LIST
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
.subsections_via_symbols
