	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_crtc_cursor_set
_nv04_crtc_cursor_set:                  ## @nv04_crtc_cursor_set
	.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
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_nouveau_drm
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movq	%r15, %rdi
	callq	_nouveau_crtc
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	cmpl	$64, %r14d
	jne	LBB0_4
## %bb.3:
	cmpl	$64, %r13d
	jne	LBB0_4
## %bb.6:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nouveau_gem_object
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_nouveau_bo_map
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_nv_device
	cmpl	$17, (%rax)
	movq	24(%r14), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	jl	LBB0_11
## %bb.10:
	callq	_nv11_cursor_upload
	jmp	LBB0_12
LBB0_1:
	movq	%rax, %rdi
	movl	$1, %esi
	callq	*32(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_11:
	callq	_nv04_cursor_upload
LBB0_12:
	movq	%r13, %rdi
	callq	_nouveau_bo_unmap
	movq	24(%r14), %rax
	movl	(%rax), %esi
	movl	%esi, 8(%r14)
	movq	%r14, %rdi
	callq	*16(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*(%r14)
LBB0_13:
	movq	%r15, %rdi
	callq	_drm_gem_object_unreference_unlocked
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_nv04_crtc_cursor_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_crtc_cursor_set
_nv04_crtc_cursor_set:                  ; @nv04_crtc_cursor_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x25, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_nouveau_drm
	mov	x23, x0
	ldr	x22, [x0, #8]
	mov	x0, x19
	bl	_nouveau_crtc
	mov	x19, x0
	cbz	w20, LBB0_7
; %bb.1:
	cmp	w25, #64
	b.ne	LBB0_8
; %bb.2:
	cmp	w24, #64
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	bl	_nouveau_gem_object
	mov	x24, x0
	bl	_nouveau_bo_map
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	w0, [x23]
	bl	_nv_device
	ldr	w8, [x0]
	ldr	x2, [x19, #24]
	mov	x0, x22
	mov	x1, x24
	cmp	w8, #17
	b.lt	LBB0_11
; %bb.6:
	bl	_nv11_cursor_upload
	b	LBB0_12
LBB0_7:
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	b	LBB0_14
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_11:
	bl	_nv04_cursor_upload
LBB0_12:
	mov	x0, x24
	bl	_nouveau_bo_unmap
	ldp	x9, x8, [x19, #16]
	ldr	w1, [x8]
	str	w1, [x19, #8]
	mov	x0, x19
	blr	x9
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_13:
	mov	x0, x21
	bl	_drm_gem_object_unreference_unlocked
LBB0_14:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_nv04_crtc_cursor_set
.subsections_via_symbols
