	.file	"extr_sti_cursor.c_sti_cursor_atomic_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sti_cursor_atomic_update, @function
sti_cursor_atomic_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR [rdi]
	call	to_sti_plane@PLT
	mov	rdi, rax
	mov	r12, rax
	call	to_sti_cursor@PLT
	mov	rbp, QWORD PTR 16[r13]
	mov	rdi, QWORD PTR 8[r13]
	test	rbp, rbp
	je	.L1
	test	rdi, rdi
	je	.L1
	xor	esi, esi
	mov	rbx, rax
	mov	r14d, DWORD PTR 0[r13]
	mov	r15d, DWORD PTR 4[r13]
	call	drm_fb_cma_get_gem_obj@PLT
	mov	rdi, rbx
	mov	rsi, QWORD PTR [rax]
	call	sti_cursor_argb8888_to_clut8@PLT
	mov	rdi, QWORD PTR 0[rbp]
	xor	esi, esi
	call	sti_vtg_get_line_number@PLT
	mov	rdi, QWORD PTR 0[rbp]
	xor	esi, esi
	mov	r13d, eax
	call	sti_vtg_get_pixel_number@PLT
	sal	r13d, 16
	mov	rsi, QWORD PTR CUR_AWS[rip]
	add	rsi, QWORD PTR 16[rbx]
	mov	edi, r13d
	or	edi, eax
	call	writel@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 0[rbp]
	lea	esi, -1[rax]
	call	sti_vtg_get_line_number@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	r13d, eax
	mov	eax, DWORD PTR 4[rbp]
	sal	r13d, 16
	lea	esi, -1[rax]
	call	sti_vtg_get_pixel_number@PLT
	mov	edi, r13d
	mov	rsi, QWORD PTR CUR_AWE[rip]
	add	rsi, QWORD PTR 16[rbx]
	or	edi, eax
	call	writel@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	rsi, QWORD PTR CUR_PML[rip]
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, QWORD PTR CUR_PMP[rip]
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, QWORD PTR CUR_SIZE[rip]
	add	rsi, QWORD PTR 16[rbx]
	sal	edi, 16
	or	edi, DWORD PTR [rbx]
	call	writel@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, r15d
	call	sti_vtg_get_line_number@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, r14d
	mov	r13d, eax
	call	sti_vtg_get_pixel_number@PLT
	sal	r13d, 16
	mov	rsi, QWORD PTR CUR_VPO[rip]
	add	rsi, QWORD PTR 16[rbx]
	mov	edi, r13d
	or	edi, eax
	call	writel@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, QWORD PTR CUR_CML[rip]
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	edi, DWORD PTR CUR_CTL_CLUT_UPDATE[rip]
	mov	rsi, QWORD PTR CUR_CTL[rip]
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	xor	edx, edx
	mov	esi, 1
	mov	rdi, r12
	call	sti_plane_update_fps@PLT
	mov	eax, DWORD PTR STI_PLANE_UPDATED[rip]
	mov	DWORD PTR [r12], eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sti_cursor_atomic_update, .-sti_cursor_atomic_update
	.comm	STI_PLANE_UPDATED,4,4
	.comm	CUR_VPO,8,8
	.comm	CUR_SIZE,8,8
	.comm	CUR_PMP,8,8
	.comm	CUR_PML,8,8
	.comm	CUR_CTL_CLUT_UPDATE,4,4
	.comm	CUR_CTL,8,8
	.comm	CUR_CML,8,8
	.comm	CUR_AWS,8,8
	.comm	CUR_AWE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sti_cursor.c_sti_cursor_atomic_update.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sti_cursor_atomic_update, %function
sti_cursor_atomic_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r0]
	bl	to_sti_plane
	mov	r8, r0
	bl	to_sti_cursor
	ldr	r3, [r5, #8]
	ldr	r6, [r5, #12]
	clz	r2, r3
	cmp	r6, #0
	lsr	r2, r2, #5
	movne	r7, r2
	moveq	r7, #1
	cmp	r7, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r4, r0
	ldm	r5, {r9, r10}
	mov	r0, r3
	mov	r1, r7
	bl	drm_fb_cma_get_gem_obj
	mov	r3, r0
	mov	r0, r4
	ldr	r1, [r3]
	bl	sti_cursor_argb8888_to_clut8
	ldm	r6, {r0, r1}
	mov	r2, r7
	bl	sti_vtg_get_line_number
	mov	r2, r7
	mov	r5, r0
	ldm	r6, {r0, r1}
	bl	sti_vtg_get_pixel_number
	ldr	r3, .L5
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	orr	r0, r0, r5, lsl #16
	add	r1, r1, r3
	bl	writel
	ldm	r6, {r0, r1}
	sub	r2, r0, #1
	bl	sti_vtg_get_line_number
	mov	r5, r0
	ldm	r6, {r0, r1}
	sub	r2, r1, #1
	bl	sti_vtg_get_pixel_number
	ldr	r3, .L5+4
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	orr	r0, r0, r5, lsl #16
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L5+8
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	ldr	r0, [r4, #16]
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L5+12
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	ldr	r0, [r4]
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L5+16
	ldr	r1, [r4, #12]
	ldr	r2, [r3]
	ldr	r0, [r4, #4]
	ldr	r3, [r4]
	add	r1, r1, r2
	orr	r0, r3, r0, lsl #16
	bl	writel
	ldm	r6, {r0, r1}
	mov	r2, r10
	bl	sti_vtg_get_line_number
	mov	r2, r9
	mov	r5, r0
	ldm	r6, {r0, r1}
	bl	sti_vtg_get_pixel_number
	ldr	r3, .L5+20
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	orr	r0, r0, r5, lsl #16
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L5+24
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	ldr	r0, [r4, #8]
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L5+28
	ldr	r1, [r4, #12]
	ldr	r2, [r3]
	ldr	r3, .L5+32
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	writel
	mov	r2, r7
	mov	r1, #1
	mov	r0, r8
	bl	sti_plane_update_fps
	ldr	r3, .L5+36
	ldr	r3, [r3]
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	.align	2
.L5:
	.word	CUR_AWS
	.word	CUR_AWE
	.word	CUR_PML
	.word	CUR_PMP
	.word	CUR_SIZE
	.word	CUR_VPO
	.word	CUR_CML
	.word	CUR_CTL
	.word	CUR_CTL_CLUT_UPDATE
	.word	STI_PLANE_UPDATED
	.size	sti_cursor_atomic_update, .-sti_cursor_atomic_update
	.comm	STI_PLANE_UPDATED,4,4
	.comm	CUR_VPO,4,4
	.comm	CUR_SIZE,4,4
	.comm	CUR_PMP,4,4
	.comm	CUR_PML,4,4
	.comm	CUR_CTL_CLUT_UPDATE,4,4
	.comm	CUR_CTL,4,4
	.comm	CUR_CML,4,4
	.comm	CUR_AWS,4,4
	.comm	CUR_AWE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
