	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInputMonitorChange        ## -- Begin function _glfwInputMonitorChange
	.p2align	4, 0x90
__glfwInputMonitorChange:               ## @_glfwInputMonitorChange
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__glfw@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movq	8(%r13), %r14
	movq	%r13, %rdi
	callq	__glfwPlatformGetMonitors
	movq	%rax, 8(%r13)
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	callq	__glfwFreeMonitor
	movq	(%r14,%rbx,8), %rax
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	movq	(%r14,%rbx,8), %rsi
	callq	__glfwPlatformIsSameMonitor
	testq	%rax, %rax
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
	jmp	LBB0_14
LBB0_6:
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.7:
	xorl	%r13d, %r13d
	movq	_GLFW_DISCONNECTED@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%r15, %r13
	je	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	testl	%eax, %eax
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14,%r13,8), %rcx
	movq	__glfw@GOTPCREL(%rip), %rdx
	movq	8(%rdx), %rdx
	movl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rdx,%rsi,8), %rcx
	je	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	24(%rax), %r12
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	8(%r12), %r12
LBB0_24:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r12, %r12
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	(%r12), %rax
	cmpq	(%r14,%r13,8), %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	__glfwPlatformGetWindowSize
	movl	-48(%rbp), %r8d
	movl	-44(%rbp), %r9d
	movl	$0, (%rsp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	__glfwPlatformSetWindowMonitor
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14,%r13,8), %rdi
	movl	(%rbx), %esi
	callq	*%rax
	jmp	LBB0_27
LBB0_15:
	testl	%eax, %eax
	jle	LBB0_34
## %bb.16:
	xorl	%r12d, %r12d
	movq	_GLFW_CONNECTED@GOTPCREL(%rip), %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_34
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	$0, %ecx
	testl	%r15d, %r15d
	jle	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	__glfw@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%r12,8), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%r14,%rcx,8), %rdx
	je	LBB0_20
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=2
	incq	%rcx
	cmpq	%rcx, %r15
	jne	LBB0_19
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r15d, %ecx
LBB0_30:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%r15d, %ecx
	jge	LBB0_31
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	$0, (%r14,%rcx,8)
	cmpl	%r15d, %ecx
	jl	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	__glfw@GOTPCREL(%rip), %rcx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	__glfw@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rax
	movq	(%rax,%r12,8), %rdi
	movl	(%r13), %esi
	callq	*%rcx
	movl	(%rbx), %eax
	jmp	LBB0_33
LBB0_34:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	__glfwFreeMonitors
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
	.comm	_GLFW_DISCONNECTED,4,2          ## @GLFW_DISCONNECTED
	.comm	_GLFW_CONNECTED,4,2             ## @GLFW_CONNECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInputMonitorChange        ; -- Begin function _glfwInputMonitorChange
	.p2align	2
__glfwInputMonitorChange:               ; @_glfwInputMonitorChange
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	w19, [x20]
	ldr	x21, [x20, #8]
	mov	x0, x20
	bl	__glfwPlatformGetMonitors
	str	x0, [x20, #8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	lsl	x24, x22, #3
	ldr	x0, [x8, x24]
	bl	__glfwFreeMonitor
	ldr	x8, [x23]
	ldr	x9, [x20, #8]
	str	x8, [x9, x24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x24, x19
	mov	x23, x21
	cmp	w19, #1
	b.lt	LBB0_3
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22, lsl #3]
	ldr	x1, [x23]
	bl	__glfwPlatformIsSameMonitor
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x23, x23, #8
	subs	x24, x24, #1
	b.ne	LBB0_5
	b	LBB0_3
LBB0_7:
	cmp	w19, #1
	b.lt	LBB0_20
; %bb.8:
	mov	x23, #0
Lloh2:
	adrp	x24, _GLFW_DISCONNECTED@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GLFW_DISCONNECTED@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldr	w8, [x20]
	cmp	x23, x19
	b.eq	LBB0_20
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x21, x23, lsl #3]
	ldr	x10, [x20, #8]
	mov	w8, w8
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10]
	cmp	x9, x11
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_12
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x22, [x20, #24]
	cbnz	x22, LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x21, x23, lsl #3]
	ldr	w1, [x24]
	blr	x8
	b	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_15
LBB0_18:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x9, [x21, x23, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x22
	bl	__glfwPlatformGetWindowSize
	ldp	w5, w4, [sp, #8]
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w6, #0
	bl	__glfwPlatformSetWindowMonitor
	b	LBB0_17
LBB0_20:
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.21:
	mov	x22, #0
Lloh4:
	adrp	x23, _GLFW_CONNECTED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GLFW_CONNECTED@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_32
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	cmp	w19, #1
	b.lt	LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x9, #0
	ldr	x10, [x20, #8]
	ldr	x10, [x10, x22, lsl #3]
LBB0_25:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x21, x9, lsl #3]
	cmp	x10, x11
	b.eq	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	add	x9, x9, #1
	cmp	x19, x9
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x9, x19
	cmp	w9, w19
	b.ge	LBB0_30
	b	LBB0_22
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	w9, #0
	cmp	w9, w19
	b.ge	LBB0_30
	b	LBB0_22
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=1
	str	xzr, [x21, x9, lsl #3]
	cmp	w9, w19
	b.lt	LBB0_22
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_22
; %bb.31:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22, lsl #3]
	ldr	w1, [x23]
	blr	x9
	ldr	w8, [x20]
	b	LBB0_22
LBB0_32:
	mov	x0, x21
	mov	x1, x19
	bl	__glfwFreeMonitors
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
	.comm	_GLFW_DISCONNECTED,4,2          ; @GLFW_DISCONNECTED
	.comm	_GLFW_CONNECTED,4,2             ; @GLFW_CONNECTED
.subsections_via_symbols
