	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInputMonitor              ## -- Begin function _glfwInputMonitor
	.p2align	4, 0x90
__glfwInputMonitor:                     ## @_glfwInputMonitor
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GLFW_CONNECTED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	%edx, %ebx
	movq	__glfw@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	movq	16(%r12), %rdi
	leal	8(,%rax,8), %esi
	callq	_realloc
	movq	%rax, 16(%r12)
	movq	__GLFW_INSERT_FIRST@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	addq	$8, %rdi
	movslq	(%r12), %rcx
	leaq	-8(,%rcx,8), %rdx
	movq	%rax, %rsi
	callq	_memmove
	movq	16(%r12), %rax
	movq	%r15, (%rax)
	jmp	LBB0_15
LBB0_4:
	movq	_GLFW_DISCONNECTED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_15
## %bb.5:
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	24(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.6:
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	__glfwPlatformGetWindowSize
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	__glfwPlatformSetWindowMonitor
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	__glfwPlatformGetWindowFrameSize
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	__glfwPlatformSetWindowPos
	jmp	LBB0_9
LBB0_3:
	movslq	(%r12), %rcx
	movq	%r15, -8(%rax,%rcx,8)
	jmp	LBB0_15
LBB0_10:
	movq	__glfw@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:
	movq	16(%rsi), %rdi
	leaq	(,%rax,8), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rdi)
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$8, %rdi
	addq	$8, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_12
	jmp	LBB0_15
LBB0_13:
	cltq
	leaq	(,%rax,8), %rdx
	decl	%eax
	movl	%eax, (%rsi)
	leaq	8(%rdi), %rsi
	subq	%rcx, %rdx
	addq	$-8, %rdx
	callq	_memmove
LBB0_15:
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*%rax
LBB0_17:
	movq	_GLFW_DISCONNECTED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	__glfwFreeMonitor
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_CONNECTED,4,2             ## @GLFW_CONNECTED
	.comm	__glfw,32,3                     ## @_glfw
	.comm	__GLFW_INSERT_FIRST,4,2         ## @_GLFW_INSERT_FIRST
	.comm	_GLFW_DISCONNECTED,4,2          ## @GLFW_DISCONNECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInputMonitor              ; -- Begin function _glfwInputMonitor
	.p2align	2
__glfwInputMonitor:                     ; @_glfwInputMonitor
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GLFW_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x23, __glfw@GOTPAGE
Lloh4:
	ldr	x23, [x23, __glfw@GOTPAGEOFF]
Lloh5:
	adrp	x22, _GLFW_DISCONNECTED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GLFW_DISCONNECTED@GOTPAGEOFF]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x2
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	x0, [x23, #16]
	lsl	w1, w8, #3
	bl	_realloc
	mov	x1, x0
	str	x0, [x23, #16]
Lloh7:
	adrp	x8, __GLFW_INSERT_FIRST@GOTPAGE
Lloh8:
	ldr	x8, [x8, __GLFW_INSERT_FIRST@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_12
; %bb.2:
	add	x0, x1, #8
	ldrsw	x8, [x23]
	lsl	x8, x8, #3
	sub	x2, x8, #8
	bl	_memmove
	ldr	x8, [x23, #16]
	str	x19, [x8]
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_14
	b	LBB0_15
LBB0_3:
	ldr	w8, [x22]
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.4:
	ldr	x21, [x23, #24]
	cbnz	x21, LBB0_10
LBB0_5:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	ldr	x0, [x23, #16]
	sub	w9, w8, #1
	sbfiz	x2, x9, #3, #32
	mov	x9, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0]
	cmp	x10, x19
	b.eq	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x0, #8
	sub	x2, x2, #8
	subs	x9, x9, #1
	b.ne	LBB0_7
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_5
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x8, x19
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x21
	bl	__glfwPlatformGetWindowSize
	ldp	w5, w4, [sp, #8]
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w6, #0
	bl	__glfwPlatformSetWindowMonitor
	add	x1, sp, #4
	mov	x2, sp
	mov	x0, x21
	mov	x3, #0
	mov	x4, #0
	bl	__glfwPlatformGetWindowFrameSize
	ldp	w2, w1, [sp]
	mov	x0, x21
	bl	__glfwPlatformSetWindowPos
	b	LBB0_9
LBB0_12:
	ldrsw	x8, [x23]
	add	x8, x1, x8, lsl #3
	stur	x19, [x8, #-8]
LBB0_13:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_15
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_15:
	ldr	w8, [x22]
	cmp	w8, w20
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	__glfwFreeMonitor
LBB0_17:
	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
LBB0_18:
	sub	w8, w8, #1
	str	w8, [x23]
	add	x1, x0, #8
	bl	_memmove
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_14
	b	LBB0_15
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_CONNECTED,4,2             ; @GLFW_CONNECTED
	.comm	__glfw,32,3                     ; @_glfw
	.comm	__GLFW_INSERT_FIRST,4,2         ; @_GLFW_INSERT_FIRST
	.comm	_GLFW_DISCONNECTED,4,2          ; @GLFW_DISCONNECTED
.subsections_via_symbols
