	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enterFullscreenMode
_enterFullscreenMode:                   ## @enterFullscreenMode
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	__glfw@GOTPCREL(%rip), %r14
	movq	56(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	16(%r14), %edi
	leaq	76(%r14), %rsi
	leaq	72(%r14), %rdx
	leaq	68(%r14), %rcx
	leaq	64(%r14), %r8
	callq	_XGetScreenSaver
	movl	16(%r14), %edi
	movq	_DontPreferBlanking@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DefaultExposures@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_XSetScreenSaver
	movq	56(%r14), %rax
LBB0_2:
	incq	%rax
	movq	%rax, 56(%r14)
	movq	8(%rbx), %rdi
	leaq	16(%rbx), %rsi
	callq	__glfwSetVideoMode
	movq	48(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	$1, -24(%rbp)
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	movq	_XA_CARDINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PropModeReplace@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$1, 8(%rsp)
	movl	$32, %r8d
	callq	_XChangeProperty
LBB0_4:
	movq	8(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	__glfwPlatformGetMonitorPos
	movq	8(%rbx), %rdi
	leaq	-24(%rbp), %rsi
	callq	__glfwPlatformGetVideoMode
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movl	-24(%rbp), %r9d
	movl	-20(%rbp), %r8d
	callq	_XMoveResizeWindow
	cmpq	$0, 40(%r14)
	je	LBB0_7
## %bb.5:
	movq	32(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movl	%ecx, %r8d
	movl	%ecx, %r9d
	callq	_sendEventToWM
LBB0_7:
	movq	24(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sendEventToWM
	jmp	LBB0_10
LBB0_9:
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	callq	_XRaiseWindow
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	movq	_RevertToParent@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CurrentTime@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_XSetInputFocus
LBB0_10:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.11:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.12:
	movq	__NET_WM_STATE_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_sendEventToWM
LBB0_13:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,80,3                     ## @_glfw
	.comm	_DontPreferBlanking,4,2         ## @DontPreferBlanking
	.comm	_DefaultExposures,4,2           ## @DefaultExposures
	.comm	_XA_CARDINAL,4,2                ## @XA_CARDINAL
	.comm	_PropModeReplace,4,2            ## @PropModeReplace
	.comm	_RevertToParent,4,2             ## @RevertToParent
	.comm	_CurrentTime,4,2                ## @CurrentTime
	.comm	__NET_WM_STATE_ADD,4,2          ## @_NET_WM_STATE_ADD
	.no_dead_strip	_enterFullscreenMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enterFullscreenMode
_enterFullscreenMode:                   ; @enterFullscreenMode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	x8, [x20, #56]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
	add	x1, x20, #76
	add	x2, x20, #72
	add	x3, x20, #68
	add	x4, x20, #64
	bl	_XGetScreenSaver
	ldr	w0, [x20, #16]
Lloh2:
	adrp	x8, _DontPreferBlanking@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DontPreferBlanking@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _DefaultExposures@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DefaultExposures@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_XSetScreenSaver
	ldr	x8, [x20, #56]
LBB0_2:
	add	x8, x8, #1
	str	x8, [x20, #56]
	ldr	x0, [x19, #8]
	add	x1, x19, #16
	bl	__glfwSetVideoMode
	ldr	x2, [x20, #48]
	cbz	x2, LBB0_4
; %bb.3:
	mov	w8, #1
	str	x8, [sp, #8]
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
Lloh8:
	adrp	x8, _XA_CARDINAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XA_CARDINAL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _PropModeReplace@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PropModeReplace@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	w4, #32
	mov	w7, #1
	bl	_XChangeProperty
LBB0_4:
	ldr	x0, [x19, #8]
	add	x1, sp, #4
	mov	x2, sp
	bl	__glfwPlatformGetMonitorPos
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	bl	__glfwPlatformGetVideoMode
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
	ldp	w3, w2, [sp]
	ldp	w5, w4, [sp, #8]
	bl	_XMoveResizeWindow
	ldp	x1, x8, [x20, #32]
	cmp	x8, #0
	ccmp	x1, #0, #4, ne
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	mov	x4, x2
	mov	x5, x2
	mov	w6, #0
	bl	_sendEventToWM
LBB0_6:
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_sendEventToWM
	ldr	x1, [x20, #8]
	cbnz	x1, LBB0_9
	b	LBB0_11
LBB0_8:
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
	bl	_XRaiseWindow
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
Lloh14:
	adrp	x8, _RevertToParent@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RevertToParent@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _CurrentTime@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CurrentTime@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	bl	_XSetInputFocus
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_11
LBB0_9:
	ldr	w3, [x20]
	cbz	w3, LBB0_11
; %bb.10:
Lloh20:
	adrp	x8, __NET_WM_STATE_ADD@GOTPAGE
Lloh21:
	ldr	x8, [x8, __NET_WM_STATE_ADD@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_sendEventToWM
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,80,3                     ; @_glfw
	.comm	_DontPreferBlanking,4,2         ; @DontPreferBlanking
	.comm	_DefaultExposures,4,2           ; @DefaultExposures
	.comm	_XA_CARDINAL,4,2                ; @XA_CARDINAL
	.comm	_PropModeReplace,4,2            ; @PropModeReplace
	.comm	_RevertToParent,4,2             ; @RevertToParent
	.comm	_CurrentTime,4,2                ; @CurrentTime
	.comm	__NET_WM_STATE_ADD,4,2          ; @_NET_WM_STATE_ADD
	.no_dead_strip	_enterFullscreenMode
.subsections_via_symbols
