	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__glfw@GOTPCREL(%rip), %r12
	cmpl	$0, 4(%r12)
	je	LBB0_19
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	24(%r12), %r14
	movq	%rsi, 8(%rdi)
	cmpq	%rdi, 16(%r12)
	je	LBB0_2
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rax
	movq	_GLFW_CURSOR_DISABLED@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_isPointerLocked
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_unlockPointer
LBB0_5:
	movq	(%rbx), %rax
	movq	_GLFW_CURSOR_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.6:
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	leaq	24(%r15), %rax
	jmp	LBB0_10
LBB0_15:
	cmpq	(%r13), %rax
	jne	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	callq	_isPointerLocked
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lockPointer                    ## TAILCALL
LBB0_18:
	movq	_GLFW_CURSOR_HIDDEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.21:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl_pointer_set_cursor          ## TAILCALL
LBB0_8:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl_cursor_theme_get_cursor
	testq	%rax, %rax
	je	LBB0_20
## %bb.9:
	movq	(%rax), %rax
LBB0_10:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.11:
	movq	%rbx, %rdi
	callq	_wl_cursor_image_get_buffer
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movq	%rax, %r15
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movq	%r14, %rdx
	callq	_wl_pointer_set_cursor
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wl_surface_attach
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	jmp	LBB0_13
LBB0_14:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movl	16(%r15), %r8d
	movl	20(%r15), %ecx
	movq	%r14, %rdx
	callq	_wl_pointer_set_cursor
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wl_surface_attach
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_wl_surface_damage
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl_surface_commit              ## TAILCALL
LBB0_20:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, __glfw@GOTPAGE
Lloh1:
	ldr	x22, [x22, __glfw@GOTPAGEOFF]
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	str	x1, [x0, #8]
	ldp	x8, x19, [x22, #16]
	cmp	x8, x0
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x21]
Lloh2:
	adrp	x23, _GLFW_CURSOR_DISABLED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GLFW_CURSOR_DISABLED@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_isPointerLocked
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_unlockPointer
LBB0_6:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _GLFW_CURSOR_NORMAL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GLFW_CURSOR_NORMAL@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	cbz	x20, LBB0_16
; %bb.8:
	add	x8, x20, #24
	ldr	x21, [x8]
	cbz	x21, LBB0_18
LBB0_9:
	mov	x0, x21
	bl	_wl_cursor_image_get_buffer
	cbz	x0, LBB0_2
; %bb.10:
	mov	x20, x0
	ldp	w1, w0, [x22]
	ldp	w4, w3, [x21, #8]
	mov	x2, x19
	bl	_wl_pointer_set_cursor
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_wl_surface_attach
	ldp	w4, w3, [x21]
	b	LBB0_19
LBB0_11:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x21
	bl	_isPointerLocked
	cbnz	x0, LBB0_2
; %bb.13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_lockPointer
LBB0_14:
Lloh7:
	adrp	x9, _GLFW_CURSOR_HIDDEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GLFW_CURSOR_HIDDEN@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.15:
	ldp	w1, w0, [x22]
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wl_pointer_set_cursor
LBB0_16:
	ldr	w0, [x22, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl_cursor_theme_get_cursor
	cbz	x0, LBB0_20
; %bb.17:
	ldr	x8, [x0]
	ldr	x21, [x8]
	cbnz	x21, LBB0_9
LBB0_18:
	ldp	w1, w0, [x22]
	ldp	w4, w3, [x20, #16]
	mov	x2, x19
	bl	_wl_pointer_set_cursor
	ldr	x1, [x20, #8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_wl_surface_attach
	ldp	w4, w3, [x20]
LBB0_19:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_wl_surface_damage
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wl_surface_commit
LBB0_20:
Lloh12:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	__glfwInputError
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
	.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
