	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_ctl_set_cursor            ## -- Begin function mdp5_ctl_set_cursor
	.p2align	4, 0x90
_mdp5_ctl_set_cursor:                   ## @mdp5_ctl_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	movq	8(%rsi), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	12(%r13), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_4
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	12(%r13), %edi
	movq	%r12, %r14
	movl	(%r12), %esi
	callq	_REG_MDP5_CTL_LAYER_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ctl_read
	movq	_MDP5_CTL_LAYER_REG_CURSOR_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%eax, %ecx
	notl	%ebx
	andl	%eax, %ebx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	cmovnel	%ecx, %ebx
	movl	12(%r13), %edi
	movl	(%r14), %esi
	callq	_REG_MDP5_CTL_LAYER_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_ctl_write
	movl	%r12d, (%r13)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_mdp_ctl_flush_mask_cursor
	movl	%eax, 4(%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTL %d cannot find LM"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unsupported configuration"

	.comm	_MDP5_CTL_LAYER_REG_CURSOR_OUT,4,2 ## @MDP5_CTL_LAYER_REG_CURSOR_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_ctl_set_cursor            ; -- Begin function mdp5_ctl_set_cursor
	.p2align	2
_mdp5_ctl_set_cursor:                   ; @mdp5_ctl_set_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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	x24, [x1, #8]
	cmp	x24, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x23]
	ldr	w0, [x8]
	ldr	w8, [x19, #12]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x23]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_DRM_DEV_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #12]
	ldr	w1, [x24]
	bl	_REG_MDP5_CTL_LAYER_REG
	mov	x1, x0
	mov	x0, x19
	bl	_ctl_read
Lloh7:
	adrp	x8, _MDP5_CTL_LAYER_REG_CURSOR_OUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MDP5_CTL_LAYER_REG_CURSOR_OUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w21, #0
	csel	w23, w8, w9, eq
	ldr	w0, [x19, #12]
	ldr	w1, [x24]
	bl	_REG_MDP5_CTL_LAYER_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_ctl_write
	str	w21, [x19]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_mdp_ctl_flush_mask_cursor
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTL %d cannot find LM"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unsupported configuration"

	.comm	_MDP5_CTL_LAYER_REG_CURSOR_OUT,4,2 ; @MDP5_CTL_LAYER_REG_CURSOR_OUT
.subsections_via_symbols
