	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setCursor
_setCursor:                             ## @setCursor
	.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	%rdi, %rax
	movq	__glfw@GOTPCREL(%rip), %r13
	movq	8(%r13), %rdi
	cmpl	$2, (%rax)
	setge	%al
	testq	%rdi, %rdi
	setne	%bl
	andb	%al, %bl
	jne	LBB0_2
## %bb.1:
	movq	16(%r13), %rdi
LBB0_2:
	movq	24(%r13), %r14
	callq	_wl_cursor_theme_get_cursor
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%rax), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_wl_cursor_image_get_buffer
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movzbl	%bl, %r12d
	incl	%r12d
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movq	%rax, %rbx
	movl	(%r15), %eax
	movl	4(%r15), %ecx
	cltd
	idivl	%r12d
	movl	%eax, %r8d
	movl	%ecx, %eax
	cltd
	idivl	%r12d
	movq	%r14, %rdx
	movl	%r8d, %ecx
	movl	%eax, %r8d
	callq	_wl_pointer_set_cursor
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_wl_surface_set_buffer_scale
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wl_surface_attach
	movl	8(%r15), %r8d
	movl	12(%r15), %ecx
	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_6:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wayland: Standard cursor not found"

	.no_dead_strip	_setCursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setCursor
_setCursor:                             ; @setCursor
	.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	x23, __glfw@GOTPAGE
Lloh1:
	ldr	x23, [x23, __glfw@GOTPAGEOFF]
	ldp	x9, x19, [x23, #16]
	ldr	w8, [x0]
	cmp	w8, #1
	cset	w8, gt
	ldr	x10, [x23, #8]
	cmp	x10, #0
	cset	w11, ne
	tst	w8, w11
	csel	x0, x10, x9, ne
	mov	w8, #1
	cinc	w21, w8, ne
	bl	_wl_cursor_theme_get_cursor
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	ldr	x20, [x8]
	cbz	x20, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_wl_cursor_image_get_buffer
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	ldp	w1, w0, [x23]
	ldp	w8, w9, [x20]
	sdiv	w3, w8, w21
	sdiv	w4, w9, w21
	mov	x2, x19
	bl	_wl_pointer_set_cursor
	mov	x0, x19
	mov	x1, x21
	bl	_wl_surface_set_buffer_scale
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	bl	_wl_surface_attach
	ldp	w4, w3, [x20, #8]
	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_4:
Lloh2:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@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
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wayland: Standard cursor not found"

	.no_dead_strip	_setCursor
.subsections_via_symbols
