	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_cursor_atomic_disable
_qxl_cursor_atomic_disable:             ## @qxl_cursor_atomic_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_QXL_RELEASE_CURSOR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%r8d, %r8d
	callq	_qxl_alloc_release_reserved
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-16(%rbp), %rdi
	movl	$1, %esi
	callq	_qxl_release_reserve_list
	movq	-16(%rbp), %rsi
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_qxl_release_free
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_qxl_release_map
	movq	_QXL_CURSOR_HIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_qxl_release_unmap
	movq	-16(%rbp), %rsi
	movq	_QXL_CMD_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_qxl_push_cursor_ring_release
	movq	-16(%rbp), %rdi
	callq	_qxl_release_fence_buffer_objects
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QXL_RELEASE_CURSOR_CMD,4,2     ## @QXL_RELEASE_CURSOR_CMD
	.comm	_QXL_CURSOR_HIDE,4,2            ## @QXL_CURSOR_HIDE
	.comm	_QXL_CMD_CURSOR,4,2             ## @QXL_CMD_CURSOR
	.no_dead_strip	_qxl_cursor_atomic_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_cursor_atomic_disable
_qxl_cursor_atomic_disable:             ; @qxl_cursor_atomic_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _QXL_RELEASE_CURSOR_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QXL_RELEASE_CURSOR_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #8
	mov	x4, #0
	bl	_qxl_alloc_release_reserved
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
	mov	w1, #1
	bl	_qxl_release_reserve_list
	ldr	x1, [sp, #8]
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_qxl_release_free
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_qxl_release_map
	mov	x2, x0
Lloh3:
	adrp	x8, _QXL_CURSOR_HIDE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QXL_CURSOR_HIDE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_qxl_release_unmap
	ldr	x1, [sp, #8]
Lloh6:
	adrp	x8, _QXL_CMD_CURSOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QXL_CMD_CURSOR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_qxl_push_cursor_ring_release
	ldr	x0, [sp, #8]
	bl	_qxl_release_fence_buffer_objects
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QXL_RELEASE_CURSOR_CMD,4,2     ; @QXL_RELEASE_CURSOR_CMD
	.comm	_QXL_CURSOR_HIDE,4,2            ; @QXL_CURSOR_HIDE
	.comm	_QXL_CMD_CURSOR,4,2             ; @QXL_CMD_CURSOR
	.no_dead_strip	_qxl_cursor_atomic_disable
.subsections_via_symbols
