	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwSetVideoModeX11           ## -- Begin function _glfwSetVideoModeX11
	.p2align	4, 0x90
__glfwSetVideoModeX11:                  ## @_glfwSetVideoModeX11
	.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
	subq	$40, %rsp
	.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_16
## %bb.1:
	cmpl	$0, 8(%rbx)
	jne	LBB0_16
## %bb.2:
	movq	%rdi, %r13
	movq	_None@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	__glfwChooseVideoMode
	movq	%rax, %r12
	leaq	-76(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	__glfwPlatformGetVideoMode
	movq	%r15, %rdi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	__glfwCompareVideoModes
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_XRRGetScreenResourcesCurrent
	movq	%rax, %r12
	movl	(%rbx), %edi
	movl	(%r13), %edx
	movq	%rax, %rsi
	callq	_XRRGetCrtcInfo
	movq	%rax, %r15
	movl	(%rbx), %edi
	movl	16(%r13), %edx
	movq	%r12, %rsi
	callq	_XRRGetOutputInfo
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.4:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	callq	_getModeInfo
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_modeIsGood
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vidmodeFromModeInfo
	movl	%eax, -44(%rbp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-44(%rbp), %rsi
	callq	__glfwCompareVideoModes
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %r14
	jmp	LBB0_10
LBB0_9:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_11:
	testq	%r14, %r14
	je	LBB0_15
## %bb.12:
	movq	8(%r13), %rax
	movq	_None@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	24(%r15), %rax
	movq	%rax, 8(%r13)
LBB0_14:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	movq	_CurrentTime@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%r15), %r8d
	movl	12(%r15), %r9d
	movl	8(%r15), %r10d
	movl	(%r15), %eax
	movl	4(%r15), %r11d
	movq	%r12, %rsi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	%r14
	callq	_XRRSetCrtcConfig
	addq	$32, %rsp
LBB0_15:
	movq	%rbx, %rdi
	callq	_XRRFreeOutputInfo
	movq	%r15, %rdi
	callq	_XRRFreeCrtcInfo
	movq	%r12, %rdi
	callq	_XRRFreeScreenResources
LBB0_16:
	addq	$40, %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,8,3                       ## @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	__glfwSetVideoModeX11           ; -- Begin function _glfwSetVideoModeX11
	.p2align	2
__glfwSetVideoModeX11:                  ; @_glfwSetVideoModeX11
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x26, __glfw@GOTPAGE
Lloh1:
	ldr	x26, [x26, __glfw@GOTPAGEOFF]
	ldr	x8, [x26, #16]
	ldr	w9, [x26, #8]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_13
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x27, _None@GOTPAGE
Lloh3:
	ldr	x27, [x27, _None@GOTPAGEOFF]
	ldr	x19, [x27]
	bl	__glfwChooseVideoMode
	mov	x24, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	__glfwPlatformGetVideoMode
	add	x0, sp, #12
	mov	x1, x24
	bl	__glfwCompareVideoModes
	cbz	x0, LBB0_13
; %bb.2:
	ldp	w0, w1, [x26]
	bl	_XRRGetScreenResourcesCurrent
	mov	x21, x0
	ldr	w0, [x26]
	ldr	w2, [x20]
	mov	x1, x21
	bl	_XRRGetCrtcInfo
	mov	x22, x0
	ldr	w0, [x26]
	ldr	w2, [x20, #16]
	mov	x1, x21
	bl	_XRRGetOutputInfo
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x28, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x23]
	cmp	x28, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	w1, [x8, x28, lsl #2]
	mov	x0, x21
	bl	_getModeInfo
	mov	x25, x0
	bl	_modeIsGood
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_vidmodeFromModeInfo
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x24
	bl	__glfwCompareVideoModes
	cbnz	x0, LBB0_4
; %bb.7:
	ldr	x19, [x25]
LBB0_8:
	cbz	x19, LBB0_12
; %bb.9:
	ldr	x8, [x20, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x22, #24]
	str	x8, [x20, #8]
LBB0_11:
	ldr	w0, [x26]
	ldr	w2, [x20]
Lloh4:
	adrp	x8, _CurrentTime@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CurrentTime@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	ldp	w5, w4, [x22, #12]
	ldp	w8, w7, [x22, #4]
	ldr	w9, [x22]
	stp	w8, w9, [sp]
	mov	x1, x21
	mov	x6, x19
	bl	_XRRSetCrtcConfig
LBB0_12:
	mov	x0, x23
	bl	_XRRFreeOutputInfo
	mov	x0, x22
	bl	_XRRFreeCrtcInfo
	mov	x0, x21
	bl	_XRRFreeScreenResources
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	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,8,3                       ; @None
	.comm	_CurrentTime,4,2                ; @CurrentTime
.subsections_via_symbols
