	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	__glfwChooseVideoMode
	movq	%rax, %rbx
	leaq	-72(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	__glfwPlatformGetVideoMode
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	__glfwCompareVideoModes
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rdi
	movl	$24, %esi
	callq	_ZeroMemory
	movq	_DM_PELSWIDTH@GOTPCREL(%rip), %rax
	movq	_DM_PELSHEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DM_BITSPERPEL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DM_DISPLAYFREQUENCY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	$24, -48(%rbp)
	movl	%ecx, -44(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
	addl	(%rbx), %eax
	leal	(%rax,%rcx), %edx
	movl	%edx, -40(%rbp)
	movl	12(%rbx), %edx
	movl	%edx, -36(%rbp)
	addl	%ecx, %eax
	addl	$-24, %eax
	cmpl	$-10, %eax
	ja	LBB0_4
## %bb.3:
	movl	$32, -40(%rbp)
LBB0_4:
	movl	4(%r14), %edi
	movq	_CDS_FULLSCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ChangeDisplaySettingsExW
	movq	_DISP_CHANGE_SUCCESSFUL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_7
LBB0_1:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputError
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_DM_PELSWIDTH,4,2               ## @DM_PELSWIDTH
	.comm	_DM_PELSHEIGHT,4,2              ## @DM_PELSHEIGHT
	.comm	_DM_BITSPERPEL,4,2              ## @DM_BITSPERPEL
	.comm	_DM_DISPLAYFREQUENCY,4,2        ## @DM_DISPLAYFREQUENCY
	.comm	_CDS_FULLSCREEN,4,2             ## @CDS_FULLSCREEN
	.comm	_DISP_CHANGE_SUCCESSFUL,8,3     ## @DISP_CHANGE_SUCCESSFUL
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Win32: Failed to set video mode"

	.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, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	__glfwChooseVideoMode
	mov	x20, x0
	add	x1, sp, #24
	mov	x0, x19
	bl	__glfwPlatformGetVideoMode
	add	x0, sp, #24
	mov	x1, x20
	bl	__glfwCompareVideoModes
Lloh0:
	adrp	x21, _GL_TRUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GL_TRUE@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.1:
	mov	w22, #24
	mov	x0, sp
	mov	w1, #24
	bl	_ZeroMemory
Lloh2:
	adrp	x8, _DM_PELSWIDTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DM_PELSWIDTH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DM_PELSHEIGHT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DM_PELSHEIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _DM_BITSPERPEL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DM_BITSPERPEL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _DM_DISPLAYFREQUENCY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DM_DISPLAYFREQUENCY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w22, w8, [sp]
	ldr	w8, [x20, #20]
	str	w8, [sp, #20]
	ldp	w8, w9, [x20]
	ldr	w10, [x20, #8]
	add	w8, w9, w8
	add	w8, w8, w10
	str	w8, [sp, #8]
	ldur	d0, [x20, #12]
	stur	d0, [sp, #12]
	sub	w8, w8, #24
	cmn	w8, #10
	b.hi	LBB0_3
; %bb.2:
	mov	w8, #32
	str	w8, [sp, #8]
LBB0_3:
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x8, _CDS_FULLSCREEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CDS_FULLSCREEN@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x2, #0
	mov	x4, #0
	bl	_ChangeDisplaySettingsExW
Lloh17:
	adrp	x8, _DISP_CHANGE_SUCCESSFUL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DISP_CHANGE_SUCCESSFUL@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x21]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputError
Lloh25:
	adrp	x21, _GL_FALSE@GOTPAGE
Lloh26:
	ldr	x21, [x21, _GL_FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_DM_PELSWIDTH,4,2               ; @DM_PELSWIDTH
	.comm	_DM_PELSHEIGHT,4,2              ; @DM_PELSHEIGHT
	.comm	_DM_BITSPERPEL,4,2              ; @DM_BITSPERPEL
	.comm	_DM_DISPLAYFREQUENCY,4,2        ; @DM_DISPLAYFREQUENCY
	.comm	_CDS_FULLSCREEN,4,2             ; @CDS_FULLSCREEN
	.comm	_DISP_CHANGE_SUCCESSFUL,8,3     ; @DISP_CHANGE_SUCCESSFUL
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Win32: Failed to set video mode"

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