	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetVideoMode      ## -- Begin function _glfwPlatformGetVideoMode
	.p2align	4, 0x90
__glfwPlatformGetVideoMode:             ## @_glfwPlatformGetVideoMode
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	__glfw@GOTPCREL(%rip), %rbx
	cmpq	$0, 24(%rbx)
	movl	4(%rbx), %edi
	je	LBB0_3
## %bb.1:
	cmpl	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %esi
	callq	_XRRGetScreenResourcesCurrent
	movq	%rax, %r14
	movl	4(%rbx), %edi
	movl	(%r15), %edx
	movq	%rax, %rsi
	callq	_XRRGetCrtcInfo
	movq	%rax, %r15
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_getModeInfo
	leaq	-64(%rbp), %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_vidmodeFromModeInfo
	movups	-64(%rbp), %xmm0
	movups	-48(%rbp), %xmm1
	movups	%xmm1, 16(%r12)
	movups	%xmm0, (%r12)
	movq	%r15, %rdi
	callq	_XRRFreeCrtcInfo
	movq	%r14, %rdi
	callq	_XRRFreeScreenResources
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %esi
	callq	_DisplayWidth
	movl	%eax, 28(%r12)
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_DisplayHeight
	movl	%eax, 24(%r12)
	movq	$0, 16(%r12)
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_DefaultDepth
	leaq	8(%r12), %rsi
	leaq	4(%r12), %rdx
	movl	%eax, %edi
	movq	%r12, %rcx
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__glfwSplitBPP                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetVideoMode      ; -- Begin function _glfwPlatformGetVideoMode
	.p2align	2
__glfwPlatformGetVideoMode:             ; @_glfwPlatformGetVideoMode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, __glfw@GOTPAGE
Lloh1:
	ldr	x22, [x22, __glfw@GOTPAGEOFF]
	ldr	x8, [x22, #24]
	ldr	w9, [x22, #16]
	ldr	w0, [x22, #4]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x22]
	bl	_DisplayWidth
	str	w0, [x19, #28]
	ldp	w1, w0, [x22]
	bl	_DisplayHeight
	str	w0, [x19, #24]
	str	xzr, [x19, #16]
	ldp	w1, w0, [x22]
	bl	_DefaultDepth
	add	x1, x19, #8
	add	x2, x19, #4
	mov	x3, x19
	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
	add	sp, sp, #80
	b	__glfwSplitBPP
LBB0_2:
	ldr	w1, [x22, #8]
	bl	_XRRGetScreenResourcesCurrent
	mov	x21, x0
	ldr	w0, [x22, #4]
	ldr	w2, [x20]
	mov	x1, x21
	bl	_XRRGetCrtcInfo
	mov	x20, x0
	ldr	w1, [x0]
	mov	x0, x21
	bl	_getModeInfo
	mov	x8, sp
	mov	x1, x20
	bl	_vidmodeFromModeInfo
	ldp	q0, q1, [sp]
	stp	q0, q1, [x19]
	mov	x0, x20
	bl	_XRRFreeCrtcInfo
	mov	x0, x21
	bl	_XRRFreeScreenResources
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
.subsections_via_symbols
