	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_RendererSleep            ## -- Begin function GLimp_RendererSleep
	.p2align	4, 0x90
_GLimp_RendererSleep:                   ## @GLimp_RendererSleep
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_glw_state@GOTPCREL(%rip), %rbx
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_qwglMakeCurrent
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_wglErrors@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_2:
	movq	_renderActiveEvent@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ResetEvent
	movq	_renderCompletedEvent@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_SetEvent
	movq	_renderCommandsEvent@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitForSingleObject
	movl	8(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_qwglMakeCurrent
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_wglErrors@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_4:
	movl	(%r15), %edi
	callq	_ResetEvent
	movl	(%r12), %edi
	callq	_ResetEvent
	movq	_smpData@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r14), %edi
	callq	_SetEvent
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_glw_state,16,3                 ## @glw_state
	.comm	_wglErrors,4,2                  ## @wglErrors
	.comm	_renderActiveEvent,4,2          ## @renderActiveEvent
	.comm	_renderCompletedEvent,4,2       ## @renderCompletedEvent
	.comm	_renderCommandsEvent,4,2        ## @renderCommandsEvent
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_smpData,8,3                    ## @smpData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_RendererSleep            ; -- Begin function GLimp_RendererSleep
	.p2align	2
_GLimp_RendererSleep:                   ; @GLimp_RendererSleep
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _glw_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _glw_state@GOTPAGEOFF]
	ldr	w0, [x19, #8]
	mov	x1, #0
	bl	_qwglMakeCurrent
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _wglErrors@GOTPAGE
Lloh3:
	ldr	x8, [x8, _wglErrors@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_2:
Lloh4:
	adrp	x20, _renderActiveEvent@GOTPAGE
Lloh5:
	ldr	x20, [x20, _renderActiveEvent@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ResetEvent
Lloh6:
	adrp	x21, _renderCompletedEvent@GOTPAGE
Lloh7:
	ldr	x21, [x21, _renderCompletedEvent@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_SetEvent
Lloh8:
	adrp	x22, _renderCommandsEvent@GOTPAGE
Lloh9:
	ldr	x22, [x22, _renderCommandsEvent@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh10:
	adrp	x8, _INFINITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_WaitForSingleObject
	ldr	w0, [x19, #8]
	ldr	x1, [x19]
	bl	_qwglMakeCurrent
	cbnz	w0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _wglErrors@GOTPAGE
Lloh14:
	ldr	x8, [x8, _wglErrors@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	ldr	w0, [x21]
	bl	_ResetEvent
	ldr	w0, [x22]
	bl	_ResetEvent
Lloh15:
	adrp	x8, _smpData@GOTPAGE
Lloh16:
	ldr	x8, [x8, _smpData@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x8]
	ldr	w0, [x20]
	bl	_SetEvent
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_glw_state,16,3                 ; @glw_state
	.comm	_wglErrors,4,2                  ; @wglErrors
	.comm	_renderActiveEvent,4,2          ; @renderActiveEvent
	.comm	_renderCompletedEvent,4,2       ; @renderCompletedEvent
	.comm	_renderCommandsEvent,4,2        ; @renderCommandsEvent
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_smpData,8,3                    ; @smpData
.subsections_via_symbols
