	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwSetVideoMode              ## -- Begin function _glfwSetVideoMode
	.p2align	4, 0x90
__glfwSetVideoMode:                     ## @_glfwSetVideoMode
	.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, %r15
	movq	_None@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	__glfwChooseVideoMode
	movq	%rax, %r13
	leaq	-76(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	__glfwPlatformGetVideoMode
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	__glfwCompareVideoModes
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_XRRGetScreenResources
	movq	%rax, %r12
	movl	(%rbx), %edi
	movl	(%r15), %edx
	movq	%rax, %rsi
	callq	_XRRGetCrtcInfo
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	16(%r15), %edx
	movq	%r12, %rsi
	callq	_XRRGetOutputInfo
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r15,4), %esi
	movq	%r12, %rdi
	callq	_getModeInfo
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_modeIsGood
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vidmodeFromModeInfo
	movl	%eax, -52(%rbp)
	movq	%r13, %rdi
	leaq	-52(%rbp), %rsi
	callq	__glfwCompareVideoModes
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:
	movq	(%r14), %r14
	jmp	LBB0_11
LBB0_10:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_11:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	testq	%r14, %r14
	je	LBB0_18
## %bb.13:
	movq	8(%r15), %rax
	movq	_None@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_15:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movq	_CurrentTime@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	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
	movq	%rbx, %rdi
	callq	_XRRFreeOutputInfo
	movq	%r15, %rdi
	callq	_XRRFreeCrtcInfo
	movq	%r12, %rdi
	callq	_XRRFreeScreenResources
LBB0_16:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rbx, %rdi
	callq	_XRRFreeOutputInfo
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_XRRFreeCrtcInfo
	movq	%r12, %rdi
	callq	_XRRFreeScreenResources
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputError
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,24,3                     ## @_glfw
	.comm	_None,8,3                       ## @None
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_CurrentTime,4,2                ## @CurrentTime
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X11: Monitor mode list changed"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwSetVideoMode              ; -- Begin function _glfwSetVideoMode
	.p2align	2
__glfwSetVideoMode:                     ; @_glfwSetVideoMode
	.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_12
; %bb.1:
	mov	x21, 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, x21
	bl	__glfwPlatformGetVideoMode
	add	x0, sp, #12
	mov	x1, x24
	bl	__glfwCompareVideoModes
	cbz	x0, LBB0_12
; %bb.2:
	ldp	w0, w1, [x26]
	bl	_XRRGetScreenResources
	mov	x20, x0
	ldr	w0, [x26]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_XRRGetCrtcInfo
	mov	x22, x0
	ldr	w0, [x26]
	ldr	w2, [x21, #16]
	mov	x1, x20
	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, x20
	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_14
; %bb.9:
	ldr	x8, [x21, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x22, #24]
	str	x8, [x21, #8]
LBB0_11:
	ldr	w0, [x26]
	ldr	w2, [x21]
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, x20
	mov	x6, x19
	bl	_XRRSetCrtcConfig
	mov	x0, x23
	bl	_XRRFreeOutputInfo
	mov	x0, x22
	bl	_XRRFreeCrtcInfo
	mov	x0, x20
	bl	_XRRFreeScreenResources
LBB0_12:
Lloh7:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	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
LBB0_14:
	mov	x0, x23
	bl	_XRRFreeOutputInfo
	mov	x0, x22
	bl	_XRRFreeCrtcInfo
	mov	x0, x20
	bl	_XRRFreeScreenResources
Lloh9:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputError
Lloh14:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,24,3                     ; @_glfw
	.comm	_None,8,3                       ; @None
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_CurrentTime,4,2                ; @CurrentTime
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X11: Monitor mode list changed"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
.subsections_via_symbols
