	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetVideoModes     ## -- Begin function _glfwPlatformGetVideoModes
	.p2align	4, 0x90
__glfwPlatformGetVideoModes:            ## @_glfwPlatformGetVideoModes
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, (%rsi)
	movq	__glfw@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_16
## %bb.1:
	cmpl	$0, 8(%rbx)
	jne	LBB0_16
## %bb.2:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_XRRGetScreenResourcesCurrent
	movq	%rax, %r12
	movl	(%rbx), %edi
	movl	4(%r15), %edx
	movq	%rax, %rsi
	callq	_XRRGetCrtcInfo
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	(%r15), %edx
	movq	%r12, %rsi
	callq	_XRRGetOutputInfo
	movq	%rax, %rbx
	movl	(%rax), %r15d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.3:
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_15
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	callq	_getModeInfo
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_modeIsGood
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_vidmodeFromModeInfo
	movl	%eax, -44(%rbp)
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	__glfwCompareVideoModes
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	cmpl	%eax, %ebx
	jl	LBB0_14
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %eax
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	cmpl	%eax, %ebx
	jl	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movl	-44(%rbp), %ecx
	cltq
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rax,4)
	jmp	LBB0_14
LBB0_16:
	movl	$1, (%r14)
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	__glfwPlatformGetVideoMode
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %rdi
	callq	_XRRFreeOutputInfo
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_XRRFreeCrtcInfo
	movq	%r12, %rdi
	callq	_XRRFreeScreenResources
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movq	%rbx, %rax
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetVideoModes     ; -- Begin function _glfwPlatformGetVideoModes
	.p2align	2
__glfwPlatformGetVideoModes:            ; @_glfwPlatformGetVideoModes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x23, x0
	str	wzr, [x1]
Lloh0:
	adrp	x22, __glfw@GOTPAGE
Lloh1:
	ldr	x22, [x22, __glfw@GOTPAGEOFF]
	ldr	x8, [x22, #16]
	ldr	w9, [x22, #8]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	__glfwPlatformGetVideoMode
	b	LBB0_15
LBB0_2:
	ldp	w0, w1, [x22]
	bl	_XRRGetScreenResourcesCurrent
	mov	x20, x0
	ldr	w0, [x22]
	ldr	w2, [x23, #4]
	mov	x1, x20
	bl	_XRRGetCrtcInfo
	mov	x21, x0
	ldr	w0, [x22]
	ldr	w2, [x23]
	mov	x1, x20
	bl	_XRRGetOutputInfo
	mov	x23, x0
	ldr	w24, [x0]
	mov	x0, x24
	mov	w1, #4
	bl	_calloc
	mov	x22, x0
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.3:
	mov	x25, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	cmp	x25, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x23, #8]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x20
	bl	_getModeInfo
	mov	x24, x0
	bl	_modeIsGood
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x21
	bl	_vidmodeFromModeInfo
	str	w0, [sp, #12]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
	mov	x24, x22
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #12
	mov	x0, x24
	bl	__glfwCompareVideoModes
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x26, x26, #1
	ldrsw	x8, [x19]
	add	x24, x24, #4
	cmp	x26, x8
	b.lt	LBB0_8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, w8
	b.lt	LBB0_4
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	cmp	w26, w8
	b.lt	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w8, #1
	str	w9, [x19]
	ldr	w9, [sp, #12]
	str	w9, [x22, w8, sxtw #2]
	b	LBB0_4
LBB0_14:
	mov	x0, x23
	bl	_XRRFreeOutputInfo
	mov	x0, x21
	bl	_XRRFreeCrtcInfo
	mov	x0, x20
	bl	_XRRFreeScreenResources
LBB0_15:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,24,3                     ; @_glfw
.subsections_via_symbols
