	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp4_crtc_cursor_set
_mdp4_crtc_cursor_set:                  ## @mdp4_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
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_to_mdp4_crtc
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_get_kms
	movq	(%r14), %rdx
	movq	_CURSOR_WIDTH@GOTPCREL(%rip), %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, (%rcx)
	jb	LBB0_2
## %bb.1:
	movq	_CURSOR_HEIGHT@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	jb	LBB0_2
## %bb.3:
	testq	%r13, %r13
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r13
	movl	(%rbx), %esi
	leaq	-64(%rbp), %rdx
	movq	%rax, %rdi
	callq	_msm_gem_get_and_pin_iova
	testl	%eax, %eax
	je	LBB0_8
## %bb.13:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_drm_gem_object_put_unlocked
	jmp	LBB0_14
LBB0_2:
	movl	(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_DRM_DEV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	$0, -64(%rbp)
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	%r15, %r12
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	40(%r15), %rbx
	movq	%r13, 40(%r15)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movl	$1, 8(%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_flip_work_queue
LBB0_12:
	movq	_PENDING_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_request_pending
	xorl	%ebx, %ebx
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	_CURSOR_WIDTH,8,3               ## @CURSOR_WIDTH
	.comm	_CURSOR_HEIGHT,8,3              ## @CURSOR_HEIGHT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad cursor size: %dx%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PENDING_CURSOR,4,2             ## @PENDING_CURSOR
	.no_dead_strip	_mdp4_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 mdp4_crtc_cursor_set
_mdp4_crtc_cursor_set:                  ; @mdp4_crtc_cursor_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	bl	_to_mdp4_crtc
	mov	x22, x0
	mov	x0, x19
	bl	_get_kms
Lloh0:
	adrp	x8, _CURSOR_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CURSOR_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CURSOR_HEIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CURSOR_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x21
	ccmp	x9, x20, #0, hs
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_DRM_DEV_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	cbz	x23, LBB0_6
; %bb.3:
	mov	x25, x0
	mov	x0, x24
	mov	x1, x23
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_10
; %bb.4:
	mov	x23, x0
	ldr	w1, [x25]
	add	x2, sp, #8
	bl	_msm_gem_get_and_pin_iova
	cbz	w0, LBB0_7
; %bb.5:
	mov	x24, x0
	mov	x0, x23
	bl	_drm_gem_object_put_unlocked
	b	LBB0_12
LBB0_6:
	str	xzr, [sp, #8]
LBB0_7:
	add	x25, x22, #12
	mov	x0, x25
	bl	_spin_lock_irqsave
	ldr	x24, [x22, #40]
	ldr	x8, [sp, #8]
	stp	x8, x23, [x22, #32]
	stp	x20, x21, [x22, #16]
	mov	w8, #1
	str	w8, [x22, #8]
	mov	x0, x25
	bl	_spin_unlock_irqrestore
	cbz	x24, LBB0_9
; %bb.8:
	mov	x0, x22
	mov	x1, x24
	bl	_drm_flip_work_queue
LBB0_9:
Lloh10:
	adrp	x8, _PENDING_CURSOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PENDING_CURSOR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_request_pending
	mov	w24, #0
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_WIDTH,8,3               ; @CURSOR_WIDTH
	.comm	_CURSOR_HEIGHT,8,3              ; @CURSOR_HEIGHT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad cursor size: %dx%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PENDING_CURSOR,4,2             ; @PENDING_CURSOR
	.no_dead_strip	_mdp4_crtc_cursor_set
.subsections_via_symbols
