	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_primary_apply_cursor
_qxl_primary_apply_cursor:              ## @qxl_primary_apply_cursor
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r14
	movq	24(%rax), %r13
	movl	16(%rax), %edi
	callq	_to_qxl_crtc
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_QXL_RELEASE_CURSOR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	$40, %esi
	xorl	%r8d, %r8d
	callq	_qxl_alloc_release_reserved
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	movl	(%r12), %esi
	callq	_qxl_release_list_add
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_qxl_release_reserve_list
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qxl_release_free
	movl	%r13d, %r15d
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qxl_release_map
	movq	%rax, %r13
	movq	_QXL_CURSOR_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	(%rbx), %rax
	movdqu	(%rax), %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movdqu	(%rax), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 16(%r13)
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_qxl_bo_physical_address
	movl	%eax, 12(%r13)
	movl	$1, 8(%r13)
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_qxl_release_unmap
	movq	-48(%rbp), %rsi
	movq	_QXL_CMD_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_qxl_push_cursor_ring_release
	movq	-48(%rbp), %rdi
	callq	_qxl_release_fence_buffer_objects
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_QXL_RELEASE_CURSOR_CMD,4,2     ## @QXL_RELEASE_CURSOR_CMD
	.comm	_QXL_CURSOR_SET,4,2             ## @QXL_CURSOR_SET
	.comm	_QXL_CMD_CURSOR,4,2             ## @QXL_CMD_CURSOR
	.no_dead_strip	_qxl_primary_apply_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_primary_apply_cursor
_qxl_primary_apply_cursor:              ; @qxl_primary_apply_cursor
	.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, x0
	ldp	x9, x8, [x0]
	ldr	x19, [x8]
	ldr	x23, [x9, #24]
	ldr	w0, [x9, #16]
	bl	_to_qxl_crtc
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x21, x0
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, #40
	mov	x4, #0
	bl	_qxl_alloc_release_reserved
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x0, [sp, #8]
	ldr	w1, [x21]
	bl	_qxl_release_list_add
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_qxl_release_reserve_list
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_4:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_qxl_release_free
	b	LBB0_7
LBB0_5:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_qxl_release_map
	mov	x22, x0
Lloh3:
	adrp	x8, _QXL_CURSOR_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QXL_CURSOR_SET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	x8, [x20]
	ldr	q0, [x8]
	ldr	q1, [x23]
	add.2d	v0, v1, v0
	str	q0, [x0, #16]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_qxl_bo_physical_address
	mov	w8, #1
	stp	w8, w0, [x22, #8]
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x22
	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_6:
	mov	w22, #0
LBB0_7:
	mov	x0, x22
	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 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_SET,4,2             ; @QXL_CURSOR_SET
	.comm	_QXL_CMD_CURSOR,4,2             ; @QXL_CMD_CURSOR
	.no_dead_strip	_qxl_primary_apply_cursor
.subsections_via_symbols
