	.file	"90764917.c"
	.intel_syntax noprefix
	.text
	.local	fd
	.comm	fd,4,4
	.globl	IsBusy
	.type	IsBusy, @function
IsBusy:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -12[rbp], 512
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -12[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	WORD PTR -12[rbp], 1536
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -12[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	WORD PTR -12[rbp], 512
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -12[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	movzx	eax, WORD PTR -10[rbp]
	movzx	eax, ax
	and	eax, 128
	test	eax, eax
	je	.L2
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	IsBusy, .-IsBusy
	.globl	tlcd_writeCmd
	.type	tlcd_writeCmd, @function
tlcd_writeCmd:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, edi
	mov	WORD PTR -20[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	IsBusy
	test	eax, eax
	je	.L7
	mov	eax, 0
	jmp	.L9
.L7:
	movzx	eax, WORD PTR -20[rbp]
	mov	WORD PTR -10[rbp], ax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	movzx	eax, WORD PTR -20[rbp]
	or	ah, 4
	mov	WORD PTR -10[rbp], ax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	movzx	eax, WORD PTR -20[rbp]
	mov	WORD PTR -10[rbp], ax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, 1
.L9:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	tlcd_writeCmd, .-tlcd_writeCmd
	.section	.rodata
.LC0:
	.string	"setDDRAMAddr busy error.\n"
.LC1:
	.string	"setDDRAMAddr error\n"
	.text
	.globl	setDDRAMAddr
	.type	setDDRAMAddr, @function
setDDRAMAddr:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	WORD PTR -2[rbp], 0
	call	IsBusy
	test	eax, eax
	je	.L12
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L13
.L12:
	cmp	DWORD PTR -24[rbp], 1
	jne	.L14
	mov	eax, DWORD PTR -20[rbp]
	mov	WORD PTR -2[rbp], ax
	jmp	.L15
.L14:
	cmp	DWORD PTR -24[rbp], 2
	jne	.L16
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 64
	mov	WORD PTR -2[rbp], ax
	jmp	.L15
.L16:
	mov	eax, 0
	jmp	.L13
.L15:
	cmp	WORD PTR -2[rbp], 127
	jbe	.L17
	mov	eax, 0
	jmp	.L13
.L17:
	movzx	eax, WORD PTR -2[rbp]
	or	al, -128
	movzx	eax, ax
	mov	edi, eax
	call	tlcd_writeCmd
	test	eax, eax
	jne	.L18
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L13
.L18:
	mov	edi, 1000
	call	usleep@PLT
	mov	eax, 1
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setDDRAMAddr, .-setDDRAMAddr
	.globl	displayMode
	.type	displayMode, @function
displayMode:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	WORD PTR -2[rbp], 0
	cmp	DWORD PTR -20[rbp], 0
	je	.L20
	mov	WORD PTR -2[rbp], 2
.L20:
	cmp	DWORD PTR -24[rbp], 0
	je	.L21
	or	WORD PTR -2[rbp], 1
.L21:
	cmp	DWORD PTR -28[rbp], 0
	je	.L22
	or	WORD PTR -2[rbp], 4
.L22:
	movzx	eax, WORD PTR -2[rbp]
	or	eax, 8
	movzx	eax, ax
	mov	edi, eax
	call	tlcd_writeCmd
	test	eax, eax
	jne	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	mov	eax, 1
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	displayMode, .-displayMode
	.globl	writeCh
	.type	writeCh, @function
writeCh:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, edi
	mov	WORD PTR -20[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -10[rbp], 0
	call	IsBusy
	test	eax, eax
	je	.L26
	mov	eax, 0
	jmp	.L28
.L26:
	movzx	eax, WORD PTR -20[rbp]
	or	ah, 1
	mov	WORD PTR -10[rbp], ax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	movzx	eax, WORD PTR -20[rbp]
	or	ah, 5
	mov	WORD PTR -10[rbp], ax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	movzx	eax, WORD PTR -20[rbp]
	or	ah, 1
	mov	WORD PTR -10[rbp], ax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 1000
	call	usleep@PLT
	mov	eax, 1
.L28:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	writeCh, .-writeCh
	.globl	setCursorMode
	.type	setCursorMode, @function
setCursorMode:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	WORD PTR -2[rbp], 4
	cmp	DWORD PTR -20[rbp], 0
	je	.L31
	or	WORD PTR -2[rbp], 1
.L31:
	cmp	DWORD PTR -24[rbp], 0
	je	.L32
	or	WORD PTR -2[rbp], 2
.L32:
	movzx	eax, WORD PTR -2[rbp]
	mov	edi, eax
	call	tlcd_writeCmd
	test	eax, eax
	jne	.L33
	mov	eax, 0
	jmp	.L34
.L33:
	mov	eax, 1
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	setCursorMode, .-setCursorMode
	.globl	functionSet
	.type	functionSet, @function
functionSet:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	WORD PTR -2[rbp], 56
	movzx	eax, WORD PTR -2[rbp]
	mov	edi, eax
	call	tlcd_writeCmd
	test	eax, eax
	jne	.L36
	mov	eax, 0
	jmp	.L37
.L36:
	mov	eax, 1
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	functionSet, .-functionSet
	.globl	writeStr
	.type	writeStr, @function
writeStr:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L39
.L42:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L40
	mov	BYTE PTR -21[rbp], 32
	jmp	.L41
.L40:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
.L41:
	movzx	eax, BYTE PTR -21[rbp]
	mov	edi, eax
	call	writeCh
	add	DWORD PTR -20[rbp], 1
.L39:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L42
	mov	eax, 1
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	writeStr, .-writeStr
	.section	.rodata
.LC2:
	.string	"clearScreen error\n"
	.text
	.globl	clearScreen
	.type	clearScreen, @function
clearScreen:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jne	.L45
	call	IsBusy
	test	eax, eax
	je	.L46
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L47
.L46:
	mov	edi, 1
	call	tlcd_writeCmd
	test	eax, eax
	jne	.L48
	mov	eax, 0
	jmp	.L47
.L48:
	mov	eax, 1
	jmp	.L47
.L45:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L49
	mov	esi, 1
	mov	edi, 0
	call	setDDRAMAddr
	mov	DWORD PTR -4[rbp], 0
	jmp	.L50
.L51:
	mov	edi, 32
	call	writeCh
	add	DWORD PTR -4[rbp], 1
.L50:
	cmp	DWORD PTR -4[rbp], 16
	jle	.L51
	mov	esi, 1
	mov	edi, 0
	call	setDDRAMAddr
	jmp	.L52
.L49:
	cmp	DWORD PTR -20[rbp], 2
	jne	.L52
	mov	esi, 2
	mov	edi, 0
	call	setDDRAMAddr
	mov	DWORD PTR -4[rbp], 0
	jmp	.L53
.L54:
	mov	edi, 32
	call	writeCh
	add	DWORD PTR -4[rbp], 1
.L53:
	cmp	DWORD PTR -4[rbp], 16
	jle	.L54
	mov	esi, 2
	mov	edi, 0
	call	setDDRAMAddr
.L52:
	mov	eax, 1
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	clearScreen, .-clearScreen
	.section	.rodata
.LC3:
	.string	"/dev/cntlcd"
.LC4:
	.string	"driver open error.\n"
.LC5:
	.string	" R%03d_G%03d_B%03d"
	.text
	.globl	text_lcd
	.type	text_lcd, @function
text_lcd:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	esi, 2
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jns	.L56
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	mov	esi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L57
.L58:
	lea	rdi, mtx[rip]
	call	pthread_mutex_lock@PLT
	call	functionSet
	mov	edi, 0
	call	clearScreen
	mov	edx, 1
	mov	esi, 1
	mov	edi, 1
	call	displayMode
	mov	esi, 2
	mov	edi, 0
	call	setDDRAMAddr
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	writeStr
	lea	rdi, mtx[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 100000
	call	usleep@PLT
.L57:
	mov	eax, DWORD PTR level[rip]
	cmp	eax, 6
	jne	.L58
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	text_lcd, .-text_lcd
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"90764917.c"
	.text
	.local	fd
	.comm	fd,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	IsBusy
	.syntax unified
	.arm
	.fpu softvfp
	.type	IsBusy, %function
IsBusy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #512
	strh	r3, [fp, #-12]	@ movhi
	ldr	r3, .L6+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	mov	r3, #1536
	strh	r3, [fp, #-12]	@ movhi
	ldr	r3, .L6+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	ldr	r3, .L6+4
	ldr	r3, [r3]
	sub	r1, fp, #10
	mov	r2, #2
	mov	r0, r3
	bl	read
	mov	r3, #512
	strh	r3, [fp, #-12]	@ movhi
	ldr	r3, .L6+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	ldrh	r3, [fp, #-10]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	fd
	.size	IsBusy, .-IsBusy
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tlcd_writeCmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	tlcd_writeCmd, %function
tlcd_writeCmd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	IsBusy
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	mov	r3, #0
	b	.L11
.L9:
	ldrh	r3, [fp, #-14]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, .L13+4
	ldr	r3, [r3]
	sub	r1, fp, #10
	mov	r2, #2
	mov	r0, r3
	bl	write
	ldrh	r3, [fp, #-14]	@ movhi
	orr	r3, r3, #1024
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, .L13+4
	ldr	r3, [r3]
	sub	r1, fp, #10
	mov	r2, #2
	mov	r0, r3
	bl	write
	ldrh	r3, [fp, #-14]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, .L13+4
	ldr	r3, [r3]
	sub	r1, fp, #10
	mov	r2, #2
	mov	r0, r3
	bl	write
	mov	r3, #1
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	fd
	.size	tlcd_writeCmd, .-tlcd_writeCmd
	.section	.rodata
	.align	2
.LC2:
	.ascii	"setDDRAMAddr busy error.\012\000"
	.align	2
.LC3:
	.ascii	"setDDRAMAddr error\012\000"
	.text
	.align	2
	.global	setDDRAMAddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	setDDRAMAddr, %function
setDDRAMAddr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	bl	IsBusy
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L23
	bl	perror
	mov	r3, #0
	b	.L17
.L16:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L18
	ldr	r3, [fp, #-16]
	strh	r3, [fp, #-6]	@ movhi
	b	.L19
.L18:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bne	.L20
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #64
	strh	r3, [fp, #-6]	@ movhi
	b	.L19
.L20:
	mov	r3, #0
	b	.L17
.L19:
	ldrh	r3, [fp, #-6]
	cmp	r3, #127
	bls	.L21
	mov	r3, #0
	b	.L17
.L21:
	ldrh	r3, [fp, #-6]	@ movhi
	orr	r3, r3, #128
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	tlcd_writeCmd
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L23+4
	bl	perror
	mov	r3, #0
	b	.L17
.L22:
	mov	r0, #1000
	bl	usleep
	mov	r3, #1
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	.LC3
	.size	setDDRAMAddr, .-setDDRAMAddr
	.align	2
	.global	displayMode
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayMode, %function
displayMode:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L26
	mov	r3, #2
	strh	r3, [fp, #-6]	@ movhi
.L26:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L27
	ldrh	r3, [fp, #-6]	@ movhi
	orr	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
.L27:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L28
	ldrh	r3, [fp, #-6]	@ movhi
	orr	r3, r3, #4
	strh	r3, [fp, #-6]	@ movhi
.L28:
	ldrh	r3, [fp, #-6]	@ movhi
	orr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	tlcd_writeCmd
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	mov	r3, #0
	b	.L30
.L29:
	mov	r3, #1
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	displayMode, .-displayMode
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	writeCh
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeCh, %function
writeCh:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	bl	IsBusy
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	mov	r3, #0
	b	.L34
.L32:
	ldrh	r3, [fp, #-14]	@ movhi
	orr	r3, r3, #256
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, .L36+4
	ldr	r3, [r3]
	sub	r1, fp, #10
	mov	r2, #2
	mov	r0, r3
	bl	write
	ldrh	r3, [fp, #-14]	@ movhi
	orr	r3, r3, #1280
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, .L36+4
	ldr	r3, [r3]
	sub	r1, fp, #10
	mov	r2, #2
	mov	r0, r3
	bl	write
	ldrh	r3, [fp, #-14]	@ movhi
	orr	r3, r3, #256
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, .L36+4
	ldr	r3, [r3]
	sub	r1, fp, #10
	mov	r2, #2
	mov	r0, r3
	bl	write
	mov	r0, #1000
	bl	usleep
	mov	r3, #1
.L34:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC4
	.word	fd
	.size	writeCh, .-writeCh
	.align	2
	.global	setCursorMode
	.syntax unified
	.arm
	.fpu softvfp
	.type	setCursorMode, %function
setCursorMode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #4
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L39
	ldrh	r3, [fp, #-6]	@ movhi
	orr	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
.L39:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L40
	ldrh	r3, [fp, #-6]	@ movhi
	orr	r3, r3, #2
	strh	r3, [fp, #-6]	@ movhi
.L40:
	ldrh	r3, [fp, #-6]
	mov	r0, r3
	bl	tlcd_writeCmd
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	mov	r3, #0
	b	.L42
.L41:
	mov	r3, #1
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	setCursorMode, .-setCursorMode
	.align	2
	.global	functionSet
	.syntax unified
	.arm
	.fpu softvfp
	.type	functionSet, %function
functionSet:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #56
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	mov	r0, r3
	bl	tlcd_writeCmd
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	mov	r3, #0
	b	.L45
.L44:
	mov	r3, #1
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	functionSet, .-functionSet
	.align	2
	.global	writeStr
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeStr, %function
writeStr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L47
.L50:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L48
	mov	r3, #32
	strb	r3, [fp, #-9]
	b	.L49
.L48:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
.L49:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	writeCh
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L47:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L50
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writeStr, .-writeStr
	.section	.rodata
	.align	2
.LC5:
	.ascii	"clearScreen error\012\000"
	.text
	.align	2
	.global	clearScreen
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearScreen, %function
clearScreen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L53
	bl	IsBusy
	mov	r3, r0
	cmp	r3, #0
	beq	.L54
	ldr	r0, .L63
	bl	perror
	mov	r3, #0
	b	.L55
.L54:
	mov	r0, #1
	bl	tlcd_writeCmd
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	mov	r3, #0
	b	.L55
.L56:
	mov	r3, #1
	b	.L55
.L53:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L57
	mov	r1, #1
	mov	r0, #0
	bl	setDDRAMAddr
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L58
.L59:
	mov	r0, #32
	bl	writeCh
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L58:
	ldr	r3, [fp, #-8]
	cmp	r3, #16
	ble	.L59
	mov	r1, #1
	mov	r0, #0
	bl	setDDRAMAddr
	b	.L60
.L57:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L60
	mov	r1, #2
	mov	r0, #0
	bl	setDDRAMAddr
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L61
.L62:
	mov	r0, #32
	bl	writeCh
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L61:
	ldr	r3, [fp, #-8]
	cmp	r3, #16
	ble	.L62
	mov	r1, #2
	mov	r0, #0
	bl	setDDRAMAddr
.L60:
	mov	r3, #1
.L55:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC5
	.size	clearScreen, .-clearScreen
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/dev/cntlcd\000"
	.align	2
.LC7:
	.ascii	"driver open error.\012\000"
	.align	2
.LC8:
	.ascii	" R%03d_G%03d_B%03d\000"
	.text
	.align	2
	.global	text_lcd
	.syntax unified
	.arm
	.fpu softvfp
	.type	text_lcd, %function
text_lcd:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r1, #2
	ldr	r0, .L70
	bl	open
	mov	r3, r0
	ldr	r2, .L70+4
	str	r3, [r2]
	ldr	r3, .L70+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L66
	ldr	r0, .L70+8
	bl	perror
	mov	r0, #1
	bl	exit
.L66:
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, .L70+12
	ldr	r0, [fp, #-8]
	bl	sprintf
	b	.L67
.L68:
	ldr	r0, .L70+16
	bl	pthread_mutex_lock
	bl	functionSet
	mov	r0, #0
	bl	clearScreen
	mov	r2, #1
	mov	r1, #1
	mov	r0, #1
	bl	displayMode
	mov	r1, #2
	mov	r0, #0
	bl	setDDRAMAddr
	ldr	r0, [fp, #-8]
	bl	writeStr
	ldr	r0, .L70+16
	bl	pthread_mutex_unlock
	ldr	r0, .L70+20
	bl	usleep
.L67:
	ldr	r3, .L70+24
	ldr	r3, [r3]
	cmp	r3, #6
	bne	.L68
	ldr	r3, .L70+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	nop
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC6
	.word	fd
	.word	.LC7
	.word	.LC8
	.word	mtx
	.word	100000
	.word	level
	.size	text_lcd, .-text_lcd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
