	.file	"extr_cobalt_lcdfb.c_cobalt_lcdfb_cursor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cobalt_lcdfb_cursor, @function
cobalt_lcdfb_cursor:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	DWORD PTR [rsi], 128
	je	.L13
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR 16[rsi]
	cmp	DWORD PTR LCD_XRES_MAX[rip], r13d
	jle	.L3
	mov	r12d, DWORD PTR 20[rsi]
	cmp	DWORD PTR LCD_YRES_MAX[rip], r12d
	jg	.L4
.L3:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rbp, rdi
	call	lcd_busy_wait@PLT
	test	eax, eax
	js	.L1
	imul	r12d, DWORD PTR 0[rbp]
	lea	edi, [r12+r13]
	call	LCD_TEXT_POS@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	lcd_write_control@PLT
	mov	rdi, rbp
	call	lcd_busy_wait@PLT
	test	eax, eax
	js	.L1
	cmp	QWORD PTR 8[rbx], 0
	je	.L7
	mov	esi, DWORD PTR LCD_CURSOR_ON[rip]
	mov	rdi, rbp
	call	lcd_write_control@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR LCD_CURSOR_OFF[rip]
	mov	rdi, rbp
	call	lcd_write_control@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cobalt_lcdfb_cursor, .-cobalt_lcdfb_cursor
	.comm	LCD_YRES_MAX,4,4
	.comm	LCD_XRES_MAX,4,4
	.comm	LCD_CURSOR_ON,4,4
	.comm	LCD_CURSOR_OFF,4,4
	.comm	EINVAL,4,4
	.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_cobalt_lcdfb.c_cobalt_lcdfb_cursor.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cobalt_lcdfb_cursor, %function
cobalt_lcdfb_cursor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #128
	beq	.L11
.L2:
	ldr	r3, .L12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L12+4
	ldr	r7, [r1, #8]
	ldr	r3, [r3]
	mov	r4, r1
	cmp	r3, r7
	ble	.L2
	ldr	r3, .L12+8
	ldr	r8, [r1, #12]
	ldr	r3, [r3]
	cmp	r3, r8
	ble	.L2
	mov	r6, r0
	bl	lcd_busy_wait
	subs	r5, r0, #0
	blt	.L1
	ldr	r0, [r6]
	mla	r0, r8, r0, r7
	bl	LCD_TEXT_POS
	mov	r1, r0
	mov	r0, r6
	bl	lcd_write_control
	mov	r0, r6
	bl	lcd_busy_wait
	subs	r5, r0, #0
	blt	.L1
	ldr	r5, [r4, #4]
	cmp	r5, #0
	beq	.L7
	ldr	r3, .L12+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	lcd_write_control
	mov	r5, #0
	b	.L1
.L7:
	ldr	r3, .L12+16
	mov	r0, r6
	ldr	r1, [r3]
	bl	lcd_write_control
	b	.L1
.L13:
	.align	2
.L12:
	.word	EINVAL
	.word	LCD_XRES_MAX
	.word	LCD_YRES_MAX
	.word	LCD_CURSOR_ON
	.word	LCD_CURSOR_OFF
	.size	cobalt_lcdfb_cursor, .-cobalt_lcdfb_cursor
	.comm	LCD_YRES_MAX,4,4
	.comm	LCD_XRES_MAX,4,4
	.comm	LCD_CURSOR_ON,4,4
	.comm	LCD_CURSOR_OFF,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
