	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refreshVideoModes
_refreshVideoModes:                     ## @refreshVideoModes
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GLFW_TRUE@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	leaq	-28(%rbp), %rsi
	callq	__glfwPlatformGetVideoModes
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movl	-28(%rbp), %esi
	movq	_compareVideoModes@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_qsort
	movq	8(%rbx), %rdi
	callq	_free
	movq	%r14, 8(%rbx)
	movl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r15
LBB0_4:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_compareVideoModes,4,2          ## @compareVideoModes
	.no_dead_strip	_refreshVideoModes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refreshVideoModes
_refreshVideoModes:                     ; @refreshVideoModes
	.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
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x1, sp, #12
	bl	__glfwPlatformGetVideoModes
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w1, [sp, #12]
Lloh0:
	adrp	x8, _compareVideoModes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _compareVideoModes@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #4
	bl	_qsort
	ldr	x0, [x19, #8]
	bl	_free
	str	x20, [x19, #8]
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_3:
Lloh3:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh5:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_compareVideoModes,4,2          ; @compareVideoModes
	.no_dead_strip	_refreshVideoModes
.subsections_via_symbols
