	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_cursor_atomic_update
_sti_cursor_atomic_update:              ## @sti_cursor_atomic_update
	.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
	movq	(%rdi), %rbx
	callq	_to_sti_plane
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_sti_cursor
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	%rax, %r13
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %r12d
	xorl	%esi, %esi
	callq	_drm_fb_cma_get_gem_obj
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_sti_cursor_argb8888_to_clut8
	movq	(%r15), %rdi
	xorl	%esi, %esi
	callq	_sti_vtg_get_line_number
	movl	%eax, %ebx
	movq	(%r15), %rdi
	xorl	%esi, %esi
	callq	_sti_vtg_get_pixel_number
	shll	$16, %ebx
	orl	%eax, %ebx
	movq	_CUR_AWS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	(%r15), %esi
	decl	%esi
	movq	(%r15), %rdi
	callq	_sti_vtg_get_line_number
	movl	%eax, %ebx
	movl	4(%r15), %esi
	decl	%esi
	movq	(%r15), %rdi
	callq	_sti_vtg_get_pixel_number
	shll	$16, %ebx
	orl	%eax, %ebx
	movq	_CUR_AWE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	24(%r13), %edi
	movq	_CUR_PML@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movl	(%r13), %edi
	movq	_CUR_PMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movl	4(%r13), %edi
	shll	$16, %edi
	orl	(%r13), %edi
	movq	_CUR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	(%r15), %rdi
	movl	%r12d, %esi
	callq	_sti_vtg_get_line_number
	movl	%eax, %ebx
	movq	(%r15), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_sti_vtg_get_pixel_number
	shll	$16, %ebx
	orl	%eax, %ebx
	movq	_CUR_VPO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	8(%r13), %edi
	movq	_CUR_CML@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	_CUR_CTL_CLUT_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CUR_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_sti_plane_update_fps
	movq	_STI_PLANE_UPDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CUR_AWS,8,3                    ## @CUR_AWS
	.comm	_CUR_AWE,8,3                    ## @CUR_AWE
	.comm	_CUR_PML,8,3                    ## @CUR_PML
	.comm	_CUR_PMP,8,3                    ## @CUR_PMP
	.comm	_CUR_SIZE,8,3                   ## @CUR_SIZE
	.comm	_CUR_VPO,8,3                    ## @CUR_VPO
	.comm	_CUR_CML,8,3                    ## @CUR_CML
	.comm	_CUR_CTL_CLUT_UPDATE,4,2        ## @CUR_CTL_CLUT_UPDATE
	.comm	_CUR_CTL,8,3                    ## @CUR_CTL
	.comm	_STI_PLANE_UPDATED,4,2          ## @STI_PLANE_UPDATED
	.no_dead_strip	_sti_cursor_atomic_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_cursor_atomic_update
_sti_cursor_atomic_update:              ; @sti_cursor_atomic_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x22, [x0]
	bl	_to_sti_plane
	mov	x19, x0
	bl	_to_sti_cursor
	mov	x20, x0
	ldp	x0, x24, [x22, #8]
	cmp	x24, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	ldp	w21, w22, [x22]
	mov	w1, #0
	bl	_drm_fb_cma_get_gem_obj
	ldr	x1, [x0]
	mov	x0, x20
	bl	_sti_cursor_argb8888_to_clut8
	ldr	x0, [x24]
	mov	w1, #0
	bl	_sti_vtg_get_line_number
	mov	x23, x0
	ldr	x0, [x24]
	mov	w1, #0
	bl	_sti_vtg_get_pixel_number
	orr	w0, w0, w23, lsl #16
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x9, _CUR_AWS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CUR_AWS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x24]
	sub	w1, w8, #1
	ldr	x0, [x24]
	bl	_sti_vtg_get_line_number
	mov	x23, x0
	ldr	w8, [x24, #4]
	sub	w1, w8, #1
	ldr	x0, [x24]
	bl	_sti_vtg_get_pixel_number
	orr	w0, w0, w23, lsl #16
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _CUR_AWE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CUR_AWE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #24]
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _CUR_PML@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CUR_PML@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20]
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _CUR_PMP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CUR_PMP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	w9, w8, [x20]
	orr	w0, w9, w8, lsl #16
	ldr	x8, [x20, #16]
Lloh12:
	adrp	x9, _CUR_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CUR_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x24]
	mov	x1, x22
	bl	_sti_vtg_get_line_number
	mov	x22, x0
	ldr	x0, [x24]
	mov	x1, x21
	bl	_sti_vtg_get_pixel_number
	orr	w0, w0, w22, lsl #16
	ldr	x8, [x20, #16]
Lloh15:
	adrp	x9, _CUR_VPO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CUR_VPO@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #8]
	ldr	x8, [x20, #16]
Lloh18:
	adrp	x9, _CUR_CML@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CUR_CML@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh21:
	adrp	x8, _CUR_CTL_CLUT_UPDATE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CUR_CTL_CLUT_UPDATE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
Lloh24:
	adrp	x9, _CUR_CTL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CUR_CTL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_sti_plane_update_fps
Lloh27:
	adrp	x8, _STI_PLANE_UPDATED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STI_PLANE_UPDATED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CUR_AWS,8,3                    ; @CUR_AWS
	.comm	_CUR_AWE,8,3                    ; @CUR_AWE
	.comm	_CUR_PML,8,3                    ; @CUR_PML
	.comm	_CUR_PMP,8,3                    ; @CUR_PMP
	.comm	_CUR_SIZE,8,3                   ; @CUR_SIZE
	.comm	_CUR_VPO,8,3                    ; @CUR_VPO
	.comm	_CUR_CML,8,3                    ; @CUR_CML
	.comm	_CUR_CTL_CLUT_UPDATE,4,2        ; @CUR_CTL_CLUT_UPDATE
	.comm	_CUR_CTL,8,3                    ; @CUR_CTL
	.comm	_STI_PLANE_UPDATED,4,2          ; @STI_PLANE_UPDATED
	.no_dead_strip	_sti_cursor_atomic_update
.subsections_via_symbols
