	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetCursorMode     ## -- Begin function _glfwPlatformSetCursorMode
	.p2align	4, 0x90
__glfwPlatformSetCursorMode:            ## @_glfwPlatformSetCursorMode
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GLFW_CURSOR_DISABLED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	__glfw@GOTPCREL(%rip), %r14
	movq	%rbx, 16(%r14)
	leaq	8(%r14), %rsi
	leaq	4(%r14), %rdx
	movq	%rbx, %rdi
	callq	__glfwPlatformGetCursorPos
	movq	%rbx, %rdi
	callq	_centerCursor
	movl	(%rbx), %esi
	movq	_True@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ButtonPressMask@GOTPCREL(%rip), %rax
	movq	_ButtonReleaseMask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PointerMotionMask@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_GrabModeAsync@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r14), %edi
	movl	24(%r14), %r10d
	movq	_CurrentTime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r8d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%rsi
	callq	_XGrabPointer
	addq	$32, %rsp
	jmp	LBB0_4
LBB0_2:
	movq	__glfw@GOTPCREL(%rip), %r14
	cmpq	%rbx, 16(%r14)
	jne	LBB0_4
## %bb.3:
	movq	$0, 16(%r14)
	movl	(%r14), %edi
	movq	_CurrentTime@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XUngrabPointer
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	__glfwPlatformSetCursorPos
LBB0_4:
	movq	%rbx, %rdi
	callq	_updateCursorImage
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_XFlush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_CURSOR_DISABLED,4,2       ## @GLFW_CURSOR_DISABLED
	.comm	__glfw,32,3                     ## @_glfw
	.comm	_True,4,2                       ## @True
	.comm	_ButtonPressMask,4,2            ## @ButtonPressMask
	.comm	_ButtonReleaseMask,4,2          ## @ButtonReleaseMask
	.comm	_PointerMotionMask,4,2          ## @PointerMotionMask
	.comm	_GrabModeAsync,4,2              ## @GrabModeAsync
	.comm	_CurrentTime,4,2                ## @CurrentTime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetCursorMode     ; -- Begin function _glfwPlatformSetCursorMode
	.p2align	2
__glfwPlatformSetCursorMode:            ; @_glfwPlatformSetCursorMode
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GLFW_CURSOR_DISABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_CURSOR_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, __glfw@GOTPAGE
Lloh4:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	str	x19, [x20, #16]
	add	x1, x20, #8
	add	x2, x20, #4
	mov	x0, x19
	bl	__glfwPlatformGetCursorPos
	mov	x0, x19
	bl	_centerCursor
	ldr	w0, [x20]
	ldr	w1, [x19]
Lloh5:
	adrp	x8, _True@GOTPAGE
Lloh6:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _ButtonPressMask@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ButtonPressMask@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ButtonReleaseMask@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ButtonReleaseMask@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _PointerMotionMask@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PointerMotionMask@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _GrabModeAsync@GOTPAGE
Lloh18:
	ldr	x10, [x10, _GrabModeAsync@GOTPAGEOFF]
	orr	w3, w8, w9
Lloh19:
	ldr	w4, [x10]
	ldr	w7, [x20, #24]
Lloh20:
	adrp	x8, _CurrentTime@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CurrentTime@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x5, x4
	mov	x6, x1
	bl	_XGrabPointer
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20, #16]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x20, #16]
	ldr	w0, [x20]
Lloh23:
	adrp	x8, _CurrentTime@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CurrentTime@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_XUngrabPointer
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	bl	__glfwPlatformSetCursorPos
LBB0_4:
	mov	x0, x19
	bl	_updateCursorImage
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_XFlush
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_CURSOR_DISABLED,4,2       ; @GLFW_CURSOR_DISABLED
	.comm	__glfw,32,3                     ; @_glfw
	.comm	_True,4,2                       ; @True
	.comm	_ButtonPressMask,4,2            ; @ButtonPressMask
	.comm	_ButtonReleaseMask,4,2          ; @ButtonReleaseMask
	.comm	_PointerMotionMask,4,2          ; @PointerMotionMask
	.comm	_GrabModeAsync,4,2              ; @GrabModeAsync
	.comm	_CurrentTime,4,2                ; @CurrentTime
.subsections_via_symbols
