	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setCursorMode
_setCursorMode:                         ## @setCursorMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_GLFW_CURSOR_NORMAL@GOTPCREL(%rip), %rdx
	movq	_GLFW_CURSOR_DISABLED@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rdx)
	je	LBB0_3
## %bb.1:
	movq	_GLFW_CURSOR_HIDDEN@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	je	LBB0_3
## %bb.2:
	cmpl	%esi, (%rcx)
	je	LBB0_3
## %bb.12:
	movq	_GLFW_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
LBB0_3:
	cmpl	%esi, %eax
	je	LBB0_11
## %bb.4:
	movl	%esi, (%rbx)
	movq	__glfw@GOTPCREL(%rip), %r14
	cmpq	%rbx, 8(%r14)
	jne	LBB0_11
## %bb.5:
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movl	4(%r14), %edx
	jmp	LBB0_9
LBB0_7:
	cmpl	%esi, %ecx
	jne	LBB0_10
## %bb.8:
	leaq	4(%r14), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	__glfwPlatformGetCursorPos
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 8(%rbx)
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	__glfwPlatformGetWindowSize
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movl	-20(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
LBB0_9:
	movq	%rbx, %rdi
	callq	__glfwPlatformSetCursorPos
LBB0_10:
	movq	%rbx, %rdi
	callq	__glfwPlatformApplyCursorMode
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_CURSOR_NORMAL,4,2         ## @GLFW_CURSOR_NORMAL
	.comm	_GLFW_CURSOR_HIDDEN,4,2         ## @GLFW_CURSOR_HIDDEN
	.comm	_GLFW_CURSOR_DISABLED,4,2       ## @GLFW_CURSOR_DISABLED
	.comm	_GLFW_INVALID_ENUM,4,2          ## @GLFW_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid cursor mode"

	.comm	__glfw,16,3                     ## @_glfw
	.no_dead_strip	_setCursorMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setCursorMode
_setCursorMode:                         ; @setCursorMode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _GLFW_CURSOR_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_CURSOR_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _GLFW_CURSOR_HIDDEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_CURSOR_HIDDEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
Lloh6:
	adrp	x8, _GLFW_CURSOR_DISABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GLFW_CURSOR_DISABLED@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w9, w1
	ccmp	w10, w1, #4, ne
	ccmp	w11, w1, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0]
	cmp	w9, w1
	b.eq	LBB0_10
; %bb.2:
	str	w1, [x19]
Lloh8:
	adrp	x20, __glfw@GOTPAGE
Lloh9:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	x10, [x20, #8]
	cmp	x10, x19
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.4:
	ldp	w1, w2, [x20]
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _GLFW_INVALID_ENUM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GLFW_INVALID_ENUM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	__glfwInputError
LBB0_6:
	cmp	w8, w1
	b.ne	LBB0_9
; %bb.7:
	add	x2, x20, #4
	mov	x0, x19
	mov	x1, x20
	bl	__glfwPlatformGetCursorPos
	ldr	d0, [x20]
	stur	d0, [x19, #4]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	__glfwPlatformGetWindowSize
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	ldr	w8, [sp, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
LBB0_8:
	mov	x0, x19
	bl	__glfwPlatformSetCursorPos
LBB0_9:
	mov	x0, x19
	bl	__glfwPlatformApplyCursorMode
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_CURSOR_NORMAL,4,2         ; @GLFW_CURSOR_NORMAL
	.comm	_GLFW_CURSOR_HIDDEN,4,2         ; @GLFW_CURSOR_HIDDEN
	.comm	_GLFW_CURSOR_DISABLED,4,2       ; @GLFW_CURSOR_DISABLED
	.comm	_GLFW_INVALID_ENUM,4,2          ; @GLFW_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid cursor mode"

	.comm	__glfw,16,3                     ; @_glfw
	.no_dead_strip	_setCursorMode
.subsections_via_symbols
