	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetMonitors       ## -- Begin function _glfwPlatformGetMonitors
	.p2align	4, 0x90
__glfwPlatformGetMonitors:              ## @_glfwPlatformGetMonitors
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, (%rdi)
	movq	__glfw@GOTPCREL(%rip), %r12
	cmpq	$0, 16(%r12)
	je	LBB0_28
## %bb.1:
	movl	$0, -44(%rbp)
	movl	4(%r12), %edi
	movl	32(%r12), %esi
	callq	_XRRGetScreenResources
	movq	%rax, %r15
	movl	4(%r12), %edi
	movl	32(%r12), %esi
	callq	_XRRGetOutputPrimary
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%r15), %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%r12)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	movl	4(%r12), %edi
	leaq	-44(%rbp), %rsi
	callq	_XineramaQueryScreens
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r15)
	jle	LBB0_23
## %bb.5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_XRRFreeCrtcInfo
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_23
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
	movl	4(%r12), %edi
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rsi
	callq	_XRRGetCrtcInfo
	movq	%rax, %r14
	cmpl	$0, (%rax)
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	%r13, %rdi
	callq	_XRRFreeOutputInfo
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_22
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
	movl	4(%r12), %edi
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r15, %rsi
	callq	_XRRGetOutputInfo
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_RR_Connected@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r12, %r15
	movq	16(%r14), %rax
	movq	_RR_Rotate_90@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_RR_Rotate_270@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %ecx
	xorb	$1, %al
	movzbl	%al, %eax
	movl	8(%r13,%rcx,4), %edx
	movl	8(%r13,%rax,4), %esi
	movq	16(%r13), %rdi
	callq	__glfwAllocMonitor
	movq	%rax, %r12
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, (%r12)
	movl	24(%r13), %eax
	movl	%eax, 12(%r12)
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	24(%r14), %rcx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=3
	incq	%rdx
	addq	$32, %rsi
	cmpq	%rdx, %rax
	je	LBB0_18
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rcx, -24(%rsi)
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=3
	movq	-16(%rsi), %rdi
	cmpq	32(%r14), %rdi
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=3
	movq	-8(%rsi), %rdi
	cmpq	40(%r14), %rdi
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=3
	movq	(%rsi), %rdi
	cmpq	48(%r14), %rdi
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%edx, 8(%r12)
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	%r13, %rdi
	callq	_XRRFreeOutputInfo
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rax
	incl	%ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rcx,%rax,8)
	movq	8(%r14), %rax
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rdx, (%rax,%rbx,8)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	(%rcx), %rdi
	movq	%r12, %rsi
	callq	__GLFW_SWAP_POINTERS
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	%r15, %r12
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_23:
	movq	%r15, %rdi
	callq	_XRRFreeScreenResources
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_XFree
LBB0_25:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_26
## %bb.27:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	jne	LBB0_29
	jmp	LBB0_28
LBB0_26:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputError
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_28:
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r15
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_DisplayWidthMM
	movl	%eax, %ebx
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_DisplayHeightMM
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	__glfwAllocMonitor
	movq	%rax, (%r15)
	movl	$1, %eax
LBB0_29:
	movl	%eax, (%r14)
	movq	%r15, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,40,3                     ## @_glfw
	.comm	_RR_Connected,8,3               ## @RR_Connected
	.comm	_RR_Rotate_90,8,3               ## @RR_Rotate_90
	.comm	_RR_Rotate_270,8,3              ## @RR_Rotate_270
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X11: RandR monitor support seems broken"

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
L_.str.1:                               ## @.str.1
	.asciz	"Display"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetMonitors       ; -- Begin function _glfwPlatformGetMonitors
	.p2align	2
__glfwPlatformGetMonitors:              ; @_glfwPlatformGetMonitors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	wzr, [x0]
Lloh0:
	adrp	x26, __glfw@GOTPAGE
Lloh1:
	ldr	x26, [x26, __glfw@GOTPAGEOFF]
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_29
; %bb.1:
	str	wzr, [sp, #44]
	ldr	w0, [x26, #4]
	ldr	w1, [x26, #32]
	bl	_XRRGetScreenResources
	mov	x21, x0
	ldr	w0, [x26, #4]
	ldr	w1, [x26, #32]
	bl	_XRRGetOutputPrimary
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w0, [x21]
	mov	w1, #8
	bl	_calloc
	mov	x20, x0
	ldr	x8, [x26, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x26, #4]
	add	x1, sp, #44
	bl	_XineramaQueryScreens
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	stp	x0, x19, [sp]                   ; 16-byte Folded Spill
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.5:
	mov	x19, #0
	mov	w28, #0
	add	x8, x0, #16
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	w27, #12
	mov	w23, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_XRRFreeCrtcInfo
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	add	x19, x19, #1
	ldrsw	x8, [x21, #4]
	cmp	x19, x8
	b.ge	LBB0_24
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
	ldr	w0, [x26, #4]
	ldr	x8, [x21, #8]
	ldr	w2, [x8, x19, lsl #2]
	mov	x1, x21
	bl	_XRRGetCrtcInfo
	mov	x24, x0
	ldr	w8, [x0]
	cmp	w8, #1
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x25
	bl	_XRRFreeOutputInfo
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.ge	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
	ldr	w0, [x26, #4]
	ldr	x8, [x24, #8]
	ldr	x2, [x8, x22, lsl #3]
	mov	x1, x21
	bl	_XRRGetOutputInfo
	mov	x25, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _RR_Connected@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RR_Connected@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x19, x26
	ldr	x8, [x24, #16]
Lloh5:
	adrp	x9, _RR_Rotate_90@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RR_Rotate_90@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh8:
	adrp	x9, _RR_Rotate_270@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RR_Rotate_270@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	csel	x8, x23, x27, eq
	csel	x9, x27, x23, eq
	ldr	w2, [x25, x9]
	ldr	w1, [x25, x8]
	ldr	x0, [x25, #16]
	bl	__glfwAllocMonitor
	mov	x26, x0
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x22, lsl #3]
	str	x8, [x0]
	ldr	w8, [x25, #24]
	str	w8, [x0, #12]
	ldr	w8, [sp, #44]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x9, #0
	ldr	x10, [x24, #24]
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	add	x9, x9, #1
	add	x11, x11, #32
	cmp	x8, x9
	b.eq	LBB0_20
LBB0_15:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldur	x12, [x11, #-16]
	cmp	x12, x10
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	ldur	x12, [x11, #-8]
	ldr	x13, [x24, #32]
	cmp	x12, x13
	b.ne	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=3
	ldr	x12, [x11]
	ldr	x13, [x24, #40]
	cmp	x12, x13
	b.ne	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=3
	ldr	x12, [x11, #8]
	ldr	x13, [x24, #48]
	cmp	x12, x13
	b.ne	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=2
	str	w9, [x26, #8]
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x25
	bl	_XRRFreeOutputInfo
	add	w25, w28, #1
	str	x26, [x20, w28, sxtw #3]
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x0, [x20]
	mov	x1, x26
	bl	__GLFW_SWAP_POINTERS
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x28, x25
	mov	x26, x19
	b	LBB0_10
LBB0_23:
	mov	w28, #0
LBB0_24:
	mov	x0, x21
	bl	_XRRFreeScreenResources
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	cbz	x0, LBB0_26
; %bb.25:
	bl	_XFree
LBB0_26:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w28, LBB0_28
; %bb.27:
	cbnz	x20, LBB0_30
	b	LBB0_29
LBB0_28:
Lloh11:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputError
Lloh16:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x26, #8]
	mov	x0, x20
	bl	_free
LBB0_29:
	mov	w28, #1
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	mov	x20, x0
	ldp	w1, w0, [x26]
	bl	_DisplayWidthMM
	mov	x21, x0
	ldp	w1, w0, [x26]
	bl	_DisplayHeightMM
	mov	x2, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	__glfwAllocMonitor
	str	x0, [x20]
LBB0_30:
	str	w28, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,40,3                     ; @_glfw
	.comm	_RR_Connected,8,3               ; @RR_Connected
	.comm	_RR_Rotate_90,8,3               ; @RR_Rotate_90
	.comm	_RR_Rotate_270,8,3              ; @RR_Rotate_270
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X11: RandR monitor support seems broken"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
l_.str.1:                               ; @.str.1
	.asciz	"Display"

.subsections_via_symbols
