	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_CheckErrors                 ## -- Begin function GL_CheckErrors
	.p2align	4, 0x90
_GL_CheckErrors:                        ## @GL_CheckErrors
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$80, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	callq	_qglGetError
                                        ## kill: def $eax killed $eax def $rax
	movq	_GL_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.1:
	movq	_r_ignoreGLErrors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_13
## %bb.2:
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str.6(%rip), %rdx
	leaq	-80(%rbp), %rdi
	movl	$64, %esi
	movl	%eax, %ecx
	callq	_Com_sprintf
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	leaq	-80(%rbp), %rdi
	callq	_strcpy
LBB0_12:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_ERR_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-80(%rbp), %rdx
	callq	*(%rax)
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$80, %rsp
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_GL_NO_ERROR,4,2                ## @GL_NO_ERROR
	.comm	_r_ignoreGLErrors,8,3           ## @r_ignoreGLErrors
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GL_INVALID_ENUM"

L_.str.1:                               ## @.str.1
	.asciz	"GL_INVALID_VALUE"

L_.str.2:                               ## @.str.2
	.asciz	"GL_INVALID_OPERATION"

L_.str.3:                               ## @.str.3
	.asciz	"GL_STACK_OVERFLOW"

L_.str.4:                               ## @.str.4
	.asciz	"GL_STACK_UNDERFLOW"

L_.str.5:                               ## @.str.5
	.asciz	"GL_OUT_OF_MEMORY"

L_.str.6:                               ## @.str.6
	.asciz	"%i"

	.comm	_ri,8,3                         ## @ri
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.7:                               ## @.str.7
	.asciz	"GL_CheckErrors: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GL_CheckErrors                 ; -- Begin function GL_CheckErrors
	.p2align	2
_GL_CheckErrors:                        ; @GL_CheckErrors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	bl	_qglGetError
Lloh3:
	adrp	x8, _GL_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_NO_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.1:
Lloh6:
	adrp	x8, _r_ignoreGLErrors@GOTPAGE
Lloh7:
	ldr	x8, [x8, _r_ignoreGLErrors@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_13
; %bb.2:
	mov	x3, x0
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh13:
	adrp	x2, l_.str.6@PAGE
Lloh14:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	bl	_Com_sprintf
	b	LBB0_12
LBB0_6:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	add	x0, sp, #8
	bl	_strcpy
LBB0_12:
Lloh25:
	adrp	x8, _ri@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _ERR_FATAL@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ERR_FATAL@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x9]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #8
	blr	x8
LBB0_13:
	ldur	x8, [x29, #-8]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_GL_NO_ERROR,4,2                ; @GL_NO_ERROR
	.comm	_r_ignoreGLErrors,8,3           ; @r_ignoreGLErrors
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GL_INVALID_ENUM"

l_.str.1:                               ; @.str.1
	.asciz	"GL_INVALID_VALUE"

l_.str.2:                               ; @.str.2
	.asciz	"GL_INVALID_OPERATION"

l_.str.3:                               ; @.str.3
	.asciz	"GL_STACK_OVERFLOW"

l_.str.4:                               ; @.str.4
	.asciz	"GL_STACK_UNDERFLOW"

l_.str.5:                               ; @.str.5
	.asciz	"GL_OUT_OF_MEMORY"

l_.str.6:                               ; @.str.6
	.asciz	"%i"

	.comm	_ri,8,3                         ; @ri
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.7:                               ; @.str.7
	.asciz	"GL_CheckErrors: %s"

.subsections_via_symbols
