	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp5_crtc_cursor_move
_mdp5_crtc_cursor_move:                 ## @mdp5_crtc_cursor_move
	.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	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_get_kms
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_mdp5_crtc
	movq	%rax, %r12
	movq	(%rbx), %rdi
	callq	_to_mdp5_crtc_state
	movq	%rax, %r14
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_mdp_ctl_flush_mask_cursor
	cmpl	$0, 32(%r12)
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_1:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_4:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_unlikely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	subl	24(%r12), %esi
	movl	%r13d, %edi
	callq	_max
	movl	%eax, (%r12)
	xorl	%esi, %esi
	subl	16(%r12), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_max
	movl	%eax, 4(%r12)
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_get_roi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	callq	_pm_runtime_get_sync
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_mdp5_crtc_restore_cursor
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_crtc_flush
	movq	(%r14), %rdi
	callq	_pm_runtime_put_sync
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cursor_move is deprecated with cursor planes\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mdp5_crtc_cursor_move
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp5_crtc_cursor_move
_mdp5_crtc_cursor_move:                 ; @mdp5_crtc_cursor_move
	.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	x23, x2
	mov	x24, x1
	mov	x19, x0
	bl	_get_kms
	mov	x20, x0
	mov	x0, x19
	bl	_to_mdp5_crtc
	mov	x22, x0
	ldr	x0, [x19]
	bl	_to_mdp5_crtc_state
	mov	x25, x0
	mov	w0, #0
	bl	_mdp_ctl_flush_mask_cursor
	ldr	w8, [x22, #32]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x25]
	cbnz	x8, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x22, #24]
	neg	w1, w8
	mov	x0, x24
	bl	_max
	str	w0, [x22]
	ldr	w8, [x22, #16]
	neg	w1, w8
	mov	x0, x23
	bl	_max
	str	w0, [x22, #4]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_get_roi
	ldr	x0, [x20]
	bl	_pm_runtime_get_sync
	add	x22, x22, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_mdp5_crtc_restore_cursor
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x21
	bl	_crtc_flush
	ldr	x0, [x20]
	bl	_pm_runtime_put_sync
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cursor_move is deprecated with cursor planes\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mdp5_crtc_cursor_move
.subsections_via_symbols
