	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setCursorImage
_setCursorImage:                        ## @setCursorImage
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	$0, -48(%rbp)
	movq	40(%rsi), %rax
	movq	__glfw@GOTPCREL(%rip), %rcx
	movq	16(%rcx), %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$1, %r15d
	cmpl	$2, (%rdi)
	jl	LBB0_4
## %bb.3:
	movq	24(%r13), %rcx
	xorl	%edx, %edx
	testq	%rcx, %rcx
	sete	%dl
	cmovneq	%rcx, %rax
	movl	$2, %r15d
	subl	%edx, %r15d
LBB0_4:
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rdi
	callq	_wl_cursor_image_get_buffer
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rsi
	movslq	(%rbx), %rax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, -48(%rbp)
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	subl	%ecx, %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	movl	%eax, -44(%rbp)
	movq	__glfw@GOTPCREL(%rip), %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %edi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_timerfd_settime
	movq	%r12, %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	4(%rbx), %eax
	movl	8(%rbx), %r8d
	movups	4(%rbx), %xmm0
	movups	%xmm0, 8(%r13)
	jmp	LBB0_6
LBB0_1:
	movq	32(%r13), %r12
	movl	8(%r13), %eax
	movl	12(%r13), %r8d
	movl	$1, %r15d
LBB0_6:
	movl	(%rcx), %esi
	movl	4(%rcx), %edi
	cltd
	idivl	%r15d
	movl	%eax, %ecx
	movl	%r8d, %eax
	cltd
	idivl	%r15d
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_wl_pointer_set_cursor
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_wl_surface_set_buffer_scale
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wl_surface_attach
	movl	16(%r13), %r8d
	movl	20(%r13), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_wl_surface_damage
	movq	%r14, %rdi
	callq	_wl_surface_commit
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,24,3                     ## @_glfw
	.no_dead_strip	_setCursorImage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setCursorImage
_setCursorImage:                        ; @setCursorImage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	str	xzr, [sp, #8]
	ldr	x8, [x1, #40]
Lloh0:
	adrp	x24, __glfw@GOTPAGE
Lloh1:
	ldr	x24, [x24, __glfw@GOTPAGEOFF]
	ldr	x19, [x24, #16]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w9, [x0]
	mov	w21, #1
	cmp	w9, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	x9, [x20, #24]
	cmp	x9, #0
	csel	x8, x8, x9, eq
	cinc	w21, w21, ne
LBB0_3:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x23, [x8, x9, lsl #3]
	mov	x0, x23
	bl	_wl_cursor_image_get_buffer
	cbz	x0, LBB0_7
; %bb.4:
	mov	x22, x0
	ldr	w8, [x23]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	mov	w10, #1000
	msub	w8, w9, w10, w8
	mov	w10, #16960
	movk	w10, #15, lsl #16
	mul	w8, w8, w10
	stp	w9, w8, [sp, #8]
	ldr	w0, [x24, #8]
	add	x2, sp, #8
	mov	w1, #0
	mov	x3, #0
	bl	_timerfd_settime
	ldur	q0, [x23, #4]
	stur	q0, [x20, #8]
	mov.s	w8, v0[1]
	fmov	w9, s0
	b	LBB0_6
LBB0_5:
	ldr	x22, [x20, #32]
	mov	w21, #1
	ldp	w9, w8, [x20, #8]
LBB0_6:
	ldp	w1, w0, [x24]
	sdiv	w3, w9, w21
	sdiv	w4, w8, 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, #16]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_wl_surface_damage
	mov	x0, x19
	bl	_wl_surface_commit
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,24,3                     ; @_glfw
	.no_dead_strip	_setCursorImage
.subsections_via_symbols
