	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_EndFrame                 ## -- Begin function GLimp_EndFrame
	.p2align	4, 0x90
_GLimp_EndFrame:                        ## @GLimp_EndFrame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_r_swapInterval@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	movq	_glConfig@GOTPCREL(%rip), %rcx
	cmpl	$0, 8(%rcx)
	jne	LBB0_3
## %bb.2:
	movl	(%rax), %edi
	callq	_qwglSwapIntervalEXT
LBB0_3:
	movq	_r_drawBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_glConfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GLDRV_ICD@GOTPCREL(%rip), %rcx
	movq	_glw_state@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.5:
	callq	_qwglSwapBuffers
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_ERR_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	*(%rax)
	jmp	LBB0_8
LBB0_7:
	callq	_SwapBuffers
LBB0_8:
	movq	_r_logFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_QGL_EnableLogging              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_r_swapInterval,8,3             ## @r_swapInterval
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_glConfig,16,3                  ## @glConfig
	.comm	_r_drawBuffer,8,3               ## @r_drawBuffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GL_FRONT"

	.comm	_GLDRV_ICD,8,3                  ## @GLDRV_ICD
	.comm	_glw_state,4,2                  ## @glw_state
	.comm	_ri,8,3                         ## @ri
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"GLimp_EndFrame() - SwapBuffers() failed!\n"

	.comm	_r_logFile,8,3                  ## @r_logFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_EndFrame                 ; -- Begin function GLimp_EndFrame
	.p2align	2
_GLimp_EndFrame:                        ; @GLimp_EndFrame
	.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
Lloh0:
	adrp	x8, _r_swapInterval@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_swapInterval@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x19, _glConfig@GOTPAGE
Lloh4:
	ldr	x19, [x19, _glConfig@GOTPAGEOFF]
	cbz	x9, LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _qfalse@GOTPAGE
Lloh6:
	ldr	x9, [x9, _qfalse@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	ldr	w9, [x19, #8]
	cbnz	w9, LBB0_3
; %bb.2:
	ldr	w0, [x8]
	bl	_qwglSwapIntervalEXT
LBB0_3:
Lloh8:
	adrp	x8, _r_drawBuffer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _r_drawBuffer@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Q_stricmp
	cbz	x0, LBB0_8
; %bb.4:
Lloh13:
	adrp	x8, _GLDRV_ICD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLDRV_ICD@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x10, _glw_state@GOTPAGE
Lloh17:
	ldr	x10, [x10, _glw_state@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x10]
	cmp	x9, x8
	b.le	LBB0_7
; %bb.5:
	bl	_qwglSwapBuffers
	cbnz	w0, LBB0_8
; %bb.6:
Lloh19:
	adrp	x8, _ri@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _ERR_FATAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ERR_FATAL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
	b	LBB0_8
LBB0_7:
	bl	_SwapBuffers
LBB0_8:
Lloh27:
	adrp	x8, _r_logFile@GOTPAGE
Lloh28:
	ldr	x8, [x8, _r_logFile@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_QGL_EnableLogging
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_r_swapInterval,8,3             ; @r_swapInterval
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_glConfig,16,3                  ; @glConfig
	.comm	_r_drawBuffer,8,3               ; @r_drawBuffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GL_FRONT"

	.comm	_GLDRV_ICD,8,3                  ; @GLDRV_ICD
	.comm	_glw_state,4,2                  ; @glw_state
	.comm	_ri,8,3                         ; @ri
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"GLimp_EndFrame() - SwapBuffers() failed!\n"

	.comm	_r_logFile,8,3                  ; @r_logFile
.subsections_via_symbols
