	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rax
	movq	__glfw@GOTPCREL(%rip), %r12
	movl	4(%r12), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	24(%r12), %r14
	movq	%rsi, 8(%rax)
	cmpq	%rax, 16(%r12)
	je	LBB0_2
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rax), %rax
	movq	_GLFW_CURSOR_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.6:
	movl	(%r12), %esi
	movl	16(%rbx), %r8d
	movl	20(%rbx), %ecx
	movq	%r14, %rdx
	callq	_wl_pointer_set_cursor
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	jmp	LBB0_7
LBB0_8:
	movl	(%r12), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl_pointer_set_cursor          ## TAILCALL
LBB0_4:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_wl_cursor_image_get_buffer
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	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
LBB0_7:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wl_surface_attach
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_wl_surface_damage
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl_surface_commit              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
	.comm	_GLFW_CURSOR_NORMAL,8,3         ## @GLFW_CURSOR_NORMAL
.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x8, x0
Lloh0:
	adrp	x22, __glfw@GOTPAGE
Lloh1:
	ldr	x22, [x22, __glfw@GOTPAGEOFF]
	ldr	w0, [x22, #4]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x1
	str	x1, [x8, #8]
	ldp	x9, x19, [x22, #16]
	cmp	x9, x8
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _GLFW_CURSOR_NORMAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GLFW_CURSOR_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	cbz	x20, LBB0_7
; %bb.5:
	ldr	w1, [x22]
	ldp	w4, w3, [x20, #16]
	mov	x2, x19
	bl	_wl_pointer_set_cursor
	ldr	x1, [x20, #8]
	mov	x0, x19
	b	LBB0_9
LBB0_6:
	ldr	w1, [x22]
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wl_pointer_set_cursor
LBB0_7:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_wl_cursor_image_get_buffer
	cbz	x0, LBB0_2
; %bb.8:
	mov	x21, x0
	ldp	w1, w0, [x22]
	ldp	w4, w3, [x20, #8]
	mov	x2, x19
	bl	_wl_pointer_set_cursor
	mov	x0, x19
	mov	x1, x21
LBB0_9:
	mov	w2, #0
	mov	w3, #0
	bl	_wl_surface_attach
	ldp	w4, w3, [x20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_wl_surface_damage
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wl_surface_commit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
	.comm	_GLFW_CURSOR_NORMAL,8,3         ; @GLFW_CURSOR_NORMAL
.subsections_via_symbols
