	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_crtc_cursor_set
_nv50_crtc_cursor_set:                  ## @nv50_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, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_nouveau_crtc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testl	%r13d, %r13d
	setne	%cl
	je	LBB0_1
## %bb.2:
	cmpl	$64, %r15d
	jne	LBB0_4
## %bb.3:
	cmpl	$64, %r14d
	jne	LBB0_4
## %bb.6:
	movl	%ecx, %r15d
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_drm_gem_object_lookup
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_8:
	movq	%r12, %rdi
	callq	_nouveau_gem_object
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_nouveau_bo_map
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_12
## %bb.9:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_nouveau_bo_rd32
	movl	4(%rbx), %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_nouveau_bo_wr32
	incl	%r12d
	cmpl	$4096, %r12d                    ## imm = 0x1000
	jne	LBB0_10
## %bb.11:
	movq	%r13, %rdi
	callq	_nouveau_bo_unmap
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	movq	%r12, %rdi
	callq	_drm_gem_object_unreference_unlocked
	xorl	%eax, %eax
	movl	%r15d, %ecx
LBB0_13:
	movb	%cl, %al
	cmpl	%eax, (%rbx)
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movl	%eax, %r15d
	movl	%eax, %esi
	movl	$1, %edx
	callq	_nv50_crtc_cursor_show_hide
	movl	%r15d, (%rbx)
LBB0_15:
	movl	%r14d, %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	_nv50_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 nv50_crtc_cursor_set
_nv50_crtc_cursor_set:                  ; @nv50_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	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_nouveau_crtc
	mov	x19, x0
	cmp	w21, #0
	cset	w20, ne
	cbz	w21, LBB0_12
; %bb.1:
	cmp	w25, #64
	b.ne	LBB0_5
; %bb.2:
	cmp	w24, #64
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [x23]
	mov	x1, x22
	mov	x2, x21
	bl	_drm_gem_object_lookup
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_7:
	mov	x0, x22
	bl	_nouveau_gem_object
	mov	x23, x0
	bl	_nouveau_bo_map
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.8:
	mov	w24, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_nouveau_bo_rd32
	mov	x2, x0
	ldr	w0, [x19, #4]
	mov	x1, x24
	bl	_nouveau_bo_wr32
	add	w24, w24, #1
	cmp	w24, #1, lsl #12                ; =4096
	b.ne	LBB0_9
; %bb.10:
	mov	x0, x23
	bl	_nouveau_bo_unmap
LBB0_11:
	mov	x0, x22
	bl	_drm_gem_object_unreference_unlocked
LBB0_12:
	ldr	w8, [x19]
	cmp	w8, w20
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_nv50_crtc_cursor_show_hide
	str	w20, [x19]
LBB0_14:
	mov	x0, x21
	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	_nv50_crtc_cursor_set
.subsections_via_symbols
