	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mir_connection_create_display_config
	movq	%rax, %r14
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%r14), %r13
	movq	(%r12), %rcx
	shlq	$5, %rax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%r13,%rbx)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_3
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_4:
	movl	8(%r13,%rbx), %edi
	movl	$12, %esi
	callq	_calloc
	movq	%rax, %r12
	movl	$0, (%r15)
	cmpl	$0, 8(%r13,%rbx)
	jle	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13,%rbx), %rcx
	cltq
	leaq	(,%rax,4), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	8(%rcx,%rdx), %esi
	leaq	(%r12,%rdx), %rdi
	movl	%esi, 8(%r12,%rdx)
	movl	4(%rcx,%rdx), %esi
	movl	%esi, 4(%r12,%rdx)
	movl	(%rcx,%rdx), %ecx
	movl	%ecx, (%r12,%rdx)
	movq	16(%r13,%rbx), %rcx
	movl	(%rcx,%rax,4), %esi
	callq	_FillInRGBBitsFromPixelFormat
	movl	(%r15), %eax
	incl	%eax
	movl	%eax, (%r15)
	cmpl	8(%r13,%rbx), %eax
	jl	LBB0_6
LBB0_8:
	movq	%r14, %rdi
	callq	_mir_display_config_destroy
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,4,2                      ## @_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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, __glfw@GOTPAGE
Lloh1:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_mir_connection_create_display_config
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x10, [x19, #8]
	ldr	x9, [x21]
	add	x22, x10, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x22, #-16]
	cmp	x10, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #32
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x21, #0
	b	LBB0_8
LBB0_5:
	ldur	w0, [x22, #-8]
	mov	w1, #12
	bl	_calloc
	mov	x21, x0
	str	wzr, [x20]
	ldur	w8, [x22, #-8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w8, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x9, w8
	add	x9, x9, w8, sxtw #1
	lsl	x9, x9, #2
	ldp	x11, x10, [x22]
	add	x10, x10, x9
	ldr	w12, [x10, #8]
	add	x0, x21, x9
	str	w12, [x0, #8]
	ldr	d0, [x10]
	str	d0, [x0]
	ldr	w1, [x11, w8, sxtw #2]
	bl	_FillInRGBBitsFromPixelFormat
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldur	w9, [x22, #-8]
	cmp	w8, w9
	b.lt	LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_mir_display_config_destroy
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,4,2                      ; @_glfw
.subsections_via_symbols
