	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetCursor         ## -- Begin function _glfwPlatformSetCursor
	.p2align	4, 0x90
__glfwPlatformSetCursor:                ## @_glfwPlatformSetCursor
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__glfw@GOTPCREL(%rip), %r15
	cmpl	$0, 4(%r15)
	je	LBB0_17
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, 16(%rdi)
	cmpq	%rdi, 24(%r15)
	jne	LBB0_17
## %bb.2:
	movq	8(%r14), %rax
	movq	_mainWindow@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.3:
	movq	(%r14), %rax
	movq	_GLFW_CURSOR_DISABLED@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_isPointerLocked
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_unlockPointer
LBB0_6:
	movq	(%r14), %rax
	movq	_GLFW_CURSOR_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.7:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setCursorImage                 ## TAILCALL
LBB0_13:
	cmpq	(%r12), %rax
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_isPointerLocked
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lockPointer                    ## TAILCALL
LBB0_16:
	movq	_GLFW_CURSOR_HIDDEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.20:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl_pointer_set_cursor          ## TAILCALL
LBB0_8:
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_wl_cursor_theme_get_cursor
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	leaq	L_.str(%rip), %rsi
	callq	_wl_cursor_theme_get_cursor
	jmp	LBB0_12
LBB0_19:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
LBB0_12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	movups	%xmm0, -72(%rbp)
	movq	$0, -40(%rbp)
	movl	%ebx, -80(%rbp)
	movl	%eax, -76(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_setCursorImage
LBB0_17:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
	.comm	_mainWindow,8,3                 ## @mainWindow
	.comm	_GLFW_CURSOR_DISABLED,8,3       ## @GLFW_CURSOR_DISABLED
	.comm	_GLFW_CURSOR_NORMAL,8,3         ## @GLFW_CURSOR_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"left_ptr"

	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Wayland: Standard cursor not found"

	.comm	_GLFW_CURSOR_HIDDEN,8,3         ## @GLFW_CURSOR_HIDDEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetCursor         ; -- Begin function _glfwPlatformSetCursor
	.p2align	2
__glfwPlatformSetCursor:                ; @_glfwPlatformSetCursor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x21, __glfw@GOTPAGE
Lloh1:
	ldr	x21, [x21, __glfw@GOTPAGEOFF]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	x1, [x0, #16]
	ldr	x8, [x21, #24]
	cmp	x8, x0
	b.ne	LBB0_18
; %bb.2:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _mainWindow@GOTPAGE
Lloh3:
	ldr	x9, [x9, _mainWindow@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.3:
	ldr	x8, [x19]
Lloh5:
	adrp	x22, _GLFW_CURSOR_DISABLED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GLFW_CURSOR_DISABLED@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_isPointerLocked
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_unlockPointer
LBB0_6:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _GLFW_CURSOR_NORMAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GLFW_CURSOR_NORMAL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	cbz	x20, LBB0_14
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_setCursorImage
LBB0_9:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_isPointerLocked
	cbnz	x0, LBB0_18
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_lockPointer
LBB0_12:
Lloh10:
	adrp	x9, _GLFW_CURSOR_HIDDEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GLFW_CURSOR_HIDDEN@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.13:
	ldp	w1, w0, [x21]
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_wl_pointer_set_cursor
LBB0_14:
	ldr	x0, [x21, #16]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl_cursor_theme_get_cursor
	cbz	x0, LBB0_19
; %bb.15:
	mov	x20, x0
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_17
; %bb.16:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl_cursor_theme_get_cursor
LBB0_17:
	str	xzr, [sp, #40]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #24]
	stur	q0, [sp, #8]
	stp	w20, w0, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_setCursorImage
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
Lloh17:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	__glfwInputError
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
	.comm	_mainWindow,8,3                 ; @mainWindow
	.comm	_GLFW_CURSOR_DISABLED,8,3       ; @GLFW_CURSOR_DISABLED
	.comm	_GLFW_CURSOR_NORMAL,8,3         ; @GLFW_CURSOR_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"left_ptr"

	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Wayland: Standard cursor not found"

	.comm	_GLFW_CURSOR_HIDDEN,8,3         ; @GLFW_CURSOR_HIDDEN
.subsections_via_symbols
