	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_cursor
_update_cursor:                         ## @update_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_mdp4_crtc
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_get_kms
	movq	%rax, %r15
	movl	(%r14), %r12d
	leaq	16(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 8(%r14)
	je	LBB0_7
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rbx
	movq	48(%r14), %r13
	movl	12(%r14), %eax
	movl	%eax, -44(%rbp)
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_drm_gem_object_get
	movl	4(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_msm_gem_get_and_pin_iova
	movl	%r12d, %edi
	callq	_REG_MDP4_DMA_CURSOR_SIZE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	44(%r14), %edi
	callq	_MDP4_DMA_CURSOR_SIZE_WIDTH
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movl	40(%r14), %edi
	callq	_MDP4_DMA_CURSOR_SIZE_HEIGHT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_mdp4_write
	movl	%r12d, %edi
	callq	_REG_MDP4_DMA_CURSOR_BASE
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mdp4_write
	movl	%r12d, %edi
	callq	_REG_MDP4_DMA_CURSOR_BLEND_CONFIG
	movl	%eax, %ebx
	movq	_CURSOR_ARGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MDP4_DMA_CURSOR_BLEND_CONFIG_FORMAT
	movq	_MDP4_DMA_CURSOR_BLEND_CONFIG_CURSOR_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %edx
	jmp	LBB0_4
LBB0_3:
	movl	%r12d, %edi
	callq	_REG_MDP4_DMA_CURSOR_BASE
	movl	(%r15), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
LBB0_4:
	callq	_mdp4_write
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	addq	$56, %rdi
	movq	%rbx, %rsi
	callq	_drm_flip_work_queue
LBB0_6:
	movq	%r13, 32(%r14)
	movl	$0, 8(%r14)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movl	%r12d, %edi
	callq	_REG_MDP4_DMA_CURSOR_POS
	movl	%eax, %r12d
	movl	24(%r14), %edi
	callq	_MDP4_DMA_CURSOR_POS_X
	movl	%eax, %ebx
	movl	20(%r14), %edi
	callq	_MDP4_DMA_CURSOR_POS_Y
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_mdp4_write
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_ARGB,4,2                ## @CURSOR_ARGB
	.comm	_MDP4_DMA_CURSOR_BLEND_CONFIG_CURSOR_EN,4,2 ## @MDP4_DMA_CURSOR_BLEND_CONFIG_CURSOR_EN
	.no_dead_strip	_update_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_cursor
_update_cursor:                         ; @update_cursor
	.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	x19, x0
	bl	_to_mdp4_crtc
	mov	x21, x0
	mov	x0, x19
	bl	_get_kms
	mov	x20, x0
	ldr	w22, [x21]
	add	x19, x21, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x23, [x21, #48]
	ldr	x24, [x21, #32]
	ldr	w8, [x21, #12]
	str	w8, [sp, #12]
	cbz	x23, LBB0_6
; %bb.2:
	mov	x0, x23
	bl	_drm_gem_object_get
	ldr	w1, [x20, #4]
	add	x2, sp, #12
	mov	x0, x23
	bl	_msm_gem_get_and_pin_iova
	mov	x0, x22
	bl	_REG_MDP4_DMA_CURSOR_SIZE
	mov	x25, x0
	ldr	w0, [x21, #44]
	bl	_MDP4_DMA_CURSOR_SIZE_WIDTH
	mov	x26, x0
	ldr	w0, [x21, #40]
	bl	_MDP4_DMA_CURSOR_SIZE_HEIGHT
	orr	w2, w0, w26
	mov	x0, x20
	mov	x1, x25
	bl	_mdp4_write
	mov	x0, x22
	bl	_REG_MDP4_DMA_CURSOR_BASE
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_mdp4_write
	mov	x0, x22
	bl	_REG_MDP4_DMA_CURSOR_BLEND_CONFIG
	mov	x25, x0
Lloh0:
	adrp	x8, _CURSOR_ARGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CURSOR_ARGB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MDP4_DMA_CURSOR_BLEND_CONFIG_FORMAT
Lloh3:
	adrp	x8, _MDP4_DMA_CURSOR_BLEND_CONFIG_CURSOR_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDP4_DMA_CURSOR_BLEND_CONFIG_CURSOR_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x20
	mov	x1, x25
	bl	_mdp4_write
	cbz	x24, LBB0_4
LBB0_3:
	add	x0, x21, #56
	mov	x1, x24
	bl	_drm_flip_work_queue
LBB0_4:
	str	x23, [x21, #32]
	str	wzr, [x21, #8]
LBB0_5:
	mov	x0, x22
	bl	_REG_MDP4_DMA_CURSOR_POS
	mov	x22, x0
	ldr	w0, [x21, #24]
	bl	_MDP4_DMA_CURSOR_POS_X
	mov	x23, x0
	ldr	w0, [x21, #20]
	bl	_MDP4_DMA_CURSOR_POS_Y
	orr	w2, w0, w23
	mov	x0, x20
	mov	x1, x22
	bl	_mdp4_write
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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
LBB0_6:
	mov	x0, x22
	bl	_REG_MDP4_DMA_CURSOR_BASE
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x20
	bl	_mdp4_write
	cbnz	x24, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_ARGB,4,2                ; @CURSOR_ARGB
	.comm	_MDP4_DMA_CURSOR_BLEND_CONFIG_CURSOR_EN,4,2 ; @MDP4_DMA_CURSOR_BLEND_CONFIG_CURSOR_EN
	.no_dead_strip	_update_cursor
.subsections_via_symbols
