	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwRestoreVideoModeX11       ## -- Begin function _glfwRestoreVideoModeX11
	.p2align	4, 0x90
__glfwRestoreVideoModeX11:              ## @_glfwRestoreVideoModeX11
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__glfw@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 8(%rbx)
	jne	LBB0_4
## %bb.2:
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movq	_None@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_XRRGetScreenResourcesCurrent
	movq	%rax, %r14
	movl	(%rbx), %edi
	movl	4(%r15), %edx
	movq	%rax, %rsi
	callq	_XRRGetCrtcInfo
	movq	%rax, %r13
	movl	(%rbx), %edi
	movl	(%r15), %r10d
	movl	4(%r15), %edx
	movq	_CurrentTime@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	16(%rax), %r8d
	movl	12(%rax), %r9d
	movl	8(%rax), %r11d
	movl	(%rax), %eax
	movl	4(%r13), %ebx
	movq	%r14, %rsi
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_XRRSetCrtcConfig
	addq	$32, %rsp
	movq	%r13, %rdi
	callq	_XRRFreeCrtcInfo
	movq	%r14, %rdi
	callq	_XRRFreeScreenResources
	movl	(%r12), %eax
	movl	%eax, (%r15)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,24,3                     ## @_glfw
	.comm	_None,4,2                       ## @None
	.comm	_CurrentTime,4,2                ## @CurrentTime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwRestoreVideoModeX11       ; -- Begin function _glfwRestoreVideoModeX11
	.p2align	2
__glfwRestoreVideoModeX11:              ; @_glfwRestoreVideoModeX11
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x23, __glfw@GOTPAGE
Lloh1:
	ldr	x23, [x23, __glfw@GOTPAGEOFF]
	ldr	x8, [x23, #16]
	ldr	w9, [x23, #8]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh2:
	adrp	x22, _None@GOTPAGE
Lloh3:
	ldr	x22, [x22, _None@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldp	w0, w1, [x23]
	bl	_XRRGetScreenResourcesCurrent
	mov	x20, x0
	ldr	w0, [x23]
	ldr	w2, [x19, #4]
	mov	x1, x20
	bl	_XRRGetCrtcInfo
	mov	x21, x0
	ldr	w0, [x23]
Lloh4:
	adrp	x8, _CurrentTime@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CurrentTime@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	ldp	w5, w4, [x21, #12]
	ldp	w6, w2, [x19]
	ldp	w8, w7, [x21, #4]
	ldr	w9, [x21]
	stp	w8, w9, [sp]
	mov	x1, x20
	bl	_XRRSetCrtcConfig
	mov	x0, x21
	bl	_XRRFreeCrtcInfo
	mov	x0, x20
	bl	_XRRFreeScreenResources
	ldr	w8, [x22]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,24,3                     ; @_glfw
	.comm	_None,4,2                       ; @None
	.comm	_CurrentTime,4,2                ; @CurrentTime
.subsections_via_symbols
