	.file	"925591.c"
	.intel_syntax noprefix
	.text
	.globl	inbuf
	.bss
	.align 32
	.type	inbuf, @object
	.size	inbuf, 4096
inbuf:
	.zero	4096
	.globl	outbuf
	.align 32
	.type	outbuf, @object
	.size	outbuf, 4096
outbuf:
	.zero	4096
	.globl	outbufL
	.align 4
	.type	outbufL, @object
	.size	outbufL, 4
outbufL:
	.zero	4
	.globl	state
	.type	state, @object
	.size	state, 1
state:
	.zero	1
	.globl	potstate
	.type	potstate, @object
	.size	potstate, 1
potstate:
	.zero	1
	.globl	format
	.type	format, @object
	.size	format, 1
format:
	.zero	1
	.globl	rgb
	.type	rgb, @object
	.size	rgb, 1
rgb:
	.zero	1
	.globl	tct
	.type	tct, @object
	.size	tct, 1
tct:
	.zero	1
	.globl	hasError
	.type	hasError, @object
	.size	hasError, 1
hasError:
	.zero	1
	.globl	red
	.type	red, @object
	.size	red, 1
red:
	.zero	1
	.globl	green
	.type	green, @object
	.size	green, 1
green:
	.zero	1
	.globl	blue
	.type	blue, @object
	.size	blue, 1
blue:
	.zero	1
	.globl	digits
	.type	digits, @object
	.size	digits, 6
digits:
	.zero	6
	.globl	rgbString
	.align 32
	.type	rgbString, @object
	.size	rgbString, 32
rgbString:
	.zero	32
	.globl	haveDigits
	.align 4
	.type	haveDigits, @object
	.size	haveDigits, 4
haveDigits:
	.zero	4
	.globl	psC
	.type	psC, @object
	.size	psC, 1
psC:
	.zero	1
	.globl	f
	.align 8
	.type	f, @object
	.size	f, 8
f:
	.zero	8
	.text
	.globl	oflush
	.type	oflush, @function
oflush:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR outbufL[rip]
	cdqe
	lea	rdx, outbuf[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	rdx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR outbufL[rip]
	cdqe
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	lea	rdi, outbuf[rip]
	call	fwrite@PLT
	mov	DWORD PTR outbufL[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	oflush, .-oflush
	.globl	put
	.type	put, @function
put:
.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, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	mov	eax, DWORD PTR outbufL[rip]
	cdqe
	lea	rcx, outbuf[rip]
	movzx	edx, BYTE PTR -4[rbp]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR outbufL[rip]
	add	eax, 1
	mov	DWORD PTR outbufL[rip], eax
	mov	eax, DWORD PTR outbufL[rip]
	cmp	eax, 4094
	jle	.L4
	mov	eax, DWORD PTR outbufL[rip]
	cdqe
	lea	rdx, outbuf[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, 0
	call	oflush
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	put, .-put
	.globl	sput
	.type	sput, @function
sput:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR outbufL[rip]
	mov	ecx, edx
	cdqe
	lea	rdx, outbuf[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR outbufL[rip]
	add	eax, 1
	mov	DWORD PTR outbufL[rip], eax
	mov	eax, DWORD PTR outbufL[rip]
	cmp	eax, 4094
	jle	.L7
	mov	eax, DWORD PTR outbufL[rip]
	cdqe
	lea	rdx, outbuf[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, 0
	call	oflush
.L7:
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sput, .-sput
	.section	.rodata
.LC0:
	.string	"COLORTERM"
.LC1:
	.string	"truecolor"
.LC2:
	.string	"24bit"
.LC3:
	.string	"-"
.LC4:
	.string	"rb"
.LC5:
	.string	"%s: %s"
.LC6:
	.string	"\033[0;38;2;%d;%d;%dm"
.LC7:
	.string	"\033[0;38;5;%dm"
.LC8:
	.string	"\033[0;30m"
.LC9:
	.string	"\033[0;34m"
.LC10:
	.string	"\033[0;32m"
.LC11:
	.string	"\033[0;36m"
.LC12:
	.string	"\033[0;31m"
.LC13:
	.string	"\033[0;35m"
.LC14:
	.string	"\033[0;33m"
.LC15:
	.string	"\033[0;37m"
.LC16:
	.string	"\033[0;1;30m"
.LC17:
	.string	"\033[0;1;34m"
.LC18:
	.string	"\033[0;1;32m"
.LC19:
	.string	"\033[0;1;36m"
.LC20:
	.string	"\033[0;1;31m"
.LC21:
	.string	"\033[0;1;35m"
.LC22:
	.string	"\033[0;1;33m"
.LC23:
	.string	"\033[0;1;37m"
.LC24:
	.string	"\033[8m"
.LC25:
	.string	"\033[5m"
.LC26:
	.string	"\033[9m"
.LC27:
	.string	"\033[4m"
.LC28:
	.string	"\033[3m"
.LC29:
	.string	"\033[m"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	BYTE PTR state[rip], 0
	mov	BYTE PTR hasError[rip], 0
	mov	BYTE PTR potstate[rip], 0
	mov	BYTE PTR format[rip], 0
	mov	BYTE PTR rgb[rip], 0
	mov	DWORD PTR outbufL[rip], 0
	mov	DWORD PTR haveDigits[rip], 0
	mov	BYTE PTR psC[rip], 32
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR f[rip], rax
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
.L11:
	mov	BYTE PTR tct[rip], 1
	jmp	.L14
.L12:
	mov	BYTE PTR tct[rip], 0
	jmp	.L14
.L10:
	mov	BYTE PTR tct[rip], 0
.L14:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L15
.L84:
	cmp	DWORD PTR -36[rbp], 1
	jle	.L20
	cmp	DWORD PTR -16[rbp], 0
	jg	.L17
	add	DWORD PTR -16[rbp], 1
.L17:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR f[rip], rax
	jmp	.L20
.L18:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR f[rip], rax
	mov	rax, QWORD PTR f[rip]
	test	rax, rax
	jne	.L20
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC5[rip]
	mov	esi, 4095
	lea	rdi, outbuf[rip]
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, outbuf[rip]
	call	perror@PLT
	mov	BYTE PTR hasError[rip], 1
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	jmp	.L19
.L82:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L21
.L81:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, inbuf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -17[rbp], al
	movzx	eax, BYTE PTR state[rip]
	test	al, al
	je	.L22
	mov	BYTE PTR state[rip], 0
	movzx	eax, BYTE PTR rgb[rip]
	test	al, al
	je	.L23
	movzx	eax, BYTE PTR -17[rbp]
	sub	eax, 48
	cmp	eax, 54
	ja	.L24
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L26[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L26[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L26:
	.long	.L41-.L26
	.long	.L40-.L26
	.long	.L39-.L26
	.long	.L38-.L26
	.long	.L37-.L26
	.long	.L36-.L26
	.long	.L35-.L26
	.long	.L34-.L26
	.long	.L33-.L26
	.long	.L32-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L31-.L26
	.long	.L30-.L26
	.long	.L29-.L26
	.long	.L28-.L26
	.long	.L27-.L26
	.long	.L25-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L31-.L26
	.long	.L30-.L26
	.long	.L29-.L26
	.long	.L28-.L26
	.long	.L27-.L26
	.long	.L25-.L26
	.text
.L41:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 0
	jmp	.L42
.L40:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 1
	jmp	.L42
.L39:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 2
	jmp	.L42
.L38:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 3
	jmp	.L42
.L37:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 4
	jmp	.L42
.L36:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 5
	jmp	.L42
.L35:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 6
	jmp	.L42
.L34:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 7
	jmp	.L42
.L33:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 8
	jmp	.L42
.L32:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 9
	jmp	.L42
.L31:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 10
	jmp	.L42
.L30:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 11
	jmp	.L42
.L29:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 12
	jmp	.L42
.L28:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 13
	jmp	.L42
.L27:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 14
	jmp	.L42
.L25:
	mov	eax, DWORD PTR haveDigits[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR haveDigits[rip], edx
	cdqe
	lea	rdx, digits[rip]
	mov	BYTE PTR [rax+rdx], 15
	jmp	.L42
.L24:
	mov	BYTE PTR rgb[rip], 0
.L42:
	movzx	eax, BYTE PTR rgb[rip]
	test	al, al
	je	.L71
	mov	eax, DWORD PTR haveDigits[rip]
	cmp	eax, 5
	jle	.L71
	mov	BYTE PTR rgb[rip], 0
	movzx	eax, BYTE PTR digits[rip]
	movsx	eax, al
	sal	eax, 4
	mov	edx, eax
	movzx	eax, BYTE PTR digits[rip+1]
	or	eax, edx
	mov	BYTE PTR red[rip], al
	movzx	eax, BYTE PTR digits[rip+2]
	movsx	eax, al
	sal	eax, 4
	mov	edx, eax
	movzx	eax, BYTE PTR digits[rip+3]
	or	eax, edx
	mov	BYTE PTR green[rip], al
	movzx	eax, BYTE PTR digits[rip+4]
	movsx	eax, al
	sal	eax, 4
	mov	edx, eax
	movzx	eax, BYTE PTR digits[rip+5]
	or	eax, edx
	mov	BYTE PTR blue[rip], al
	movzx	eax, BYTE PTR tct[rip]
	test	al, al
	je	.L44
	movzx	eax, BYTE PTR blue[rip]
	movzx	ecx, al
	movzx	eax, BYTE PTR green[rip]
	movzx	edx, al
	movzx	eax, BYTE PTR red[rip]
	movzx	eax, al
	mov	r9d, ecx
	mov	r8d, edx
	mov	ecx, eax
	lea	rdx, .LC6[rip]
	mov	esi, 31
	lea	rdi, rgbString[rip]
	mov	eax, 0
	call	snprintf@PLT
	jmp	.L45
.L44:
	movzx	eax, BYTE PTR red[rip]
	shr	al
	movzx	eax, al
	imul	ax, ax, 179
	shr	ax, 8
	shr	al, 4
	movzx	edx, al
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	lea	ecx, 16[rax]
	movzx	eax, BYTE PTR green[rip]
	shr	al
	movzx	eax, al
	imul	ax, ax, 179
	shr	ax, 8
	shr	al, 4
	movzx	edx, al
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	movzx	eax, BYTE PTR blue[rip]
	shr	al
	movzx	eax, al
	imul	ax, ax, 179
	shr	ax, 8
	shr	al, 4
	movzx	eax, al
	add	eax, edx
	mov	ecx, eax
	lea	rdx, .LC7[rip]
	mov	esi, 31
	lea	rdi, rgbString[rip]
	mov	eax, 0
	call	snprintf@PLT
.L45:
	lea	rdi, rgbString[rip]
	call	sput
	jmp	.L71
.L23:
	movzx	eax, BYTE PTR -17[rbp]
	sub	eax, 48
	cmp	eax, 72
	ja	.L46
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L48[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L48[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L48:
	.long	.L70-.L48
	.long	.L69-.L48
	.long	.L68-.L48
	.long	.L67-.L48
	.long	.L66-.L48
	.long	.L65-.L48
	.long	.L64-.L48
	.long	.L63-.L48
	.long	.L62-.L48
	.long	.L61-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L60-.L48
	.long	.L59-.L48
	.long	.L58-.L48
	.long	.L57-.L48
	.long	.L56-.L48
	.long	.L55-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L54-.L48
	.long	.L53-.L48
	.long	.L52-.L48
	.long	.L51-.L48
	.long	.L50-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L49-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L47-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L60-.L48
	.long	.L59-.L48
	.long	.L58-.L48
	.long	.L57-.L48
	.long	.L56-.L48
	.long	.L55-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L54-.L48
	.long	.L53-.L48
	.long	.L52-.L48
	.long	.L51-.L48
	.long	.L50-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L49-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L46-.L48
	.long	.L47-.L48
	.text
.L70:
	lea	rdi, .LC8[rip]
	call	sput
	jmp	.L71
.L69:
	lea	rdi, .LC9[rip]
	call	sput
	jmp	.L71
.L68:
	lea	rdi, .LC10[rip]
	call	sput
	jmp	.L71
.L67:
	lea	rdi, .LC11[rip]
	call	sput
	jmp	.L71
.L66:
	lea	rdi, .LC12[rip]
	call	sput
	jmp	.L71
.L65:
	lea	rdi, .LC13[rip]
	call	sput
	jmp	.L71
.L64:
	lea	rdi, .LC14[rip]
	call	sput
	jmp	.L71
.L63:
	lea	rdi, .LC15[rip]
	call	sput
	jmp	.L71
.L62:
	lea	rdi, .LC16[rip]
	call	sput
	jmp	.L71
.L61:
	lea	rdi, .LC17[rip]
	call	sput
	jmp	.L71
.L60:
	lea	rdi, .LC18[rip]
	call	sput
	jmp	.L71
.L59:
	lea	rdi, .LC19[rip]
	call	sput
	jmp	.L71
.L58:
	lea	rdi, .LC20[rip]
	call	sput
	jmp	.L71
.L57:
	lea	rdi, .LC21[rip]
	call	sput
	jmp	.L71
.L56:
	lea	rdi, .LC22[rip]
	call	sput
	jmp	.L71
.L55:
	lea	rdi, .LC23[rip]
	call	sput
	jmp	.L71
.L54:
	lea	rdi, .LC24[rip]
	call	sput
	jmp	.L71
.L53:
	lea	rdi, .LC25[rip]
	call	sput
	jmp	.L71
.L52:
	lea	rdi, .LC26[rip]
	call	sput
	jmp	.L71
.L51:
	lea	rdi, .LC27[rip]
	call	sput
	jmp	.L71
.L50:
	lea	rdi, .LC28[rip]
	call	sput
	jmp	.L71
.L49:
	lea	rdi, .LC29[rip]
	call	sput
	mov	BYTE PTR format[rip], 0
	jmp	.L71
.L47:
	mov	BYTE PTR rgb[rip], 1
	mov	DWORD PTR haveDigits[rip], 0
	jmp	.L71
.L46:
	mov	edi, 194
	call	put
	mov	edi, 167
	call	put
	movzx	eax, BYTE PTR -17[rbp]
	mov	edi, eax
	call	put
	jmp	.L71
.L22:
	movzx	eax, BYTE PTR -17[rbp]
	cmp	eax, 194
	je	.L72
	cmp	eax, 194
	jg	.L73
	cmp	eax, 10
	je	.L74
	cmp	eax, 167
	je	.L75
	jmp	.L73
.L74:
	movzx	eax, BYTE PTR format[rip]
	test	al, al
	je	.L76
	lea	rdi, .LC29[rip]
	call	sput
	mov	BYTE PTR format[rip], 0
.L76:
	mov	BYTE PTR rgb[rip], 0
	movzx	eax, BYTE PTR -17[rbp]
	mov	edi, eax
	call	put
	jmp	.L71
.L72:
	movzx	eax, BYTE PTR potstate[rip]
	test	al, al
	je	.L77
	mov	BYTE PTR potstate[rip], 0
	mov	BYTE PTR rgb[rip], 0
	movzx	eax, BYTE PTR psC[rip]
	movzx	eax, al
	mov	edi, eax
	call	put
	movzx	eax, BYTE PTR -17[rbp]
	mov	edi, eax
	call	put
	jmp	.L71
.L77:
	mov	BYTE PTR potstate[rip], 1
	movzx	eax, BYTE PTR -17[rbp]
	mov	BYTE PTR psC[rip], al
	jmp	.L71
.L75:
	movzx	eax, BYTE PTR potstate[rip]
	test	al, al
	je	.L79
	mov	BYTE PTR state[rip], 1
	mov	BYTE PTR format[rip], 1
	mov	BYTE PTR potstate[rip], 0
	jmp	.L71
.L79:
	mov	BYTE PTR rgb[rip], 0
	movzx	eax, BYTE PTR -17[rbp]
	mov	edi, eax
	call	put
	jmp	.L71
.L73:
	mov	BYTE PTR rgb[rip], 0
	movzx	eax, BYTE PTR -17[rbp]
	mov	edi, eax
	call	put
.L71:
	add	DWORD PTR -12[rbp], 1
.L21:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, inbuf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L81
	mov	eax, 0
	call	oflush
.L20:
	mov	rax, QWORD PTR f[rip]
	mov	rdx, rax
	mov	esi, 4095
	lea	rdi, inbuf[rip]
	call	fgets@PLT
	test	rax, rax
	jne	.L82
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L83
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC5[rip]
	mov	esi, 4095
	lea	rdi, outbuf[rip]
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, outbuf[rip]
	call	perror@PLT
	mov	BYTE PTR hasError[rip], 1
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
.L83:
	mov	rdx, QWORD PTR f[rip]
	mov	rax, QWORD PTR stdin[rip]
	cmp	rdx, rax
	je	.L19
	mov	rax, QWORD PTR f[rip]
	mov	rdi, rax
	call	fclose@PLT
.L19:
	add	DWORD PTR -16[rbp], 1
.L15:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L84
	movzx	eax, BYTE PTR hasError[rip]
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.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	"925591.c"
	.text
	.comm	inbuf,4096,4
	.comm	outbuf,4096,4
	.comm	outbufL,4,4
	.comm	state,1,1
	.comm	potstate,1,1
	.comm	format,1,1
	.comm	rgb,1,1
	.comm	tct,1,1
	.comm	hasError,1,1
	.comm	red,1,1
	.comm	green,1,1
	.comm	blue,1,1
	.comm	digits,6,4
	.comm	rgbString,32,4
	.comm	haveDigits,4,4
	.comm	psC,1,1
	.comm	f,4,4
	.align	2
	.global	oflush
	.syntax unified
	.arm
	.fpu softvfp
	.type	oflush, %function
oflush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, .L2+4
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L2+8
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	ldr	r3, .L2
	mov	r2, #0
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	outbufL
	.word	outbuf
	.word	stdout
	.size	oflush, .-oflush
	.align	2
	.global	put
	.syntax unified
	.arm
	.fpu softvfp
	.type	put, %function
put:
	@ 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, r0
	strb	r3, [fp, #-5]
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r1, .L7+4
	ldrb	r2, [fp, #-5]
	strb	r2, [r1, r3]
	ldr	r3, .L7
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7
	str	r3, [r2]
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, .L7+8
	cmp	r3, r2
	ble	.L6
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, .L7+4
	mov	r1, #0
	strb	r1, [r2, r3]
	bl	oflush
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	outbufL
	.word	outbuf
	.word	4094
	.size	put, .-put
	.align	2
	.global	sput
	.syntax unified
	.arm
	.fpu softvfp
	.type	sput, %function
sput:
	@ 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	.L10
.L12:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, .L13
	ldr	r3, [r3]
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L13+4
	strb	r1, [r2, r3]
	ldr	r3, .L13
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13
	str	r3, [r2]
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, .L13+8
	cmp	r3, r2
	ble	.L11
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, .L13+4
	mov	r1, #0
	strb	r1, [r2, r3]
	bl	oflush
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	outbufL
	.word	outbuf
	.word	4094
	.size	sput, .-sput
	.section	.rodata
	.align	2
.LC0:
	.ascii	"COLORTERM\000"
	.align	2
.LC1:
	.ascii	"truecolor\000"
	.align	2
.LC2:
	.ascii	"24bit\000"
	.align	2
.LC3:
	.ascii	"-\000"
	.align	2
.LC4:
	.ascii	"rb\000"
	.align	2
.LC5:
	.ascii	"%s: %s\000"
	.align	2
.LC6:
	.ascii	"\033[0;38;2;%d;%d;%dm\000"
	.align	2
.LC7:
	.ascii	"\033[0;38;5;%dm\000"
	.align	2
.LC8:
	.ascii	"\033[0;30m\000"
	.align	2
.LC9:
	.ascii	"\033[0;34m\000"
	.align	2
.LC10:
	.ascii	"\033[0;32m\000"
	.align	2
.LC11:
	.ascii	"\033[0;36m\000"
	.align	2
.LC12:
	.ascii	"\033[0;31m\000"
	.align	2
.LC13:
	.ascii	"\033[0;35m\000"
	.align	2
.LC14:
	.ascii	"\033[0;33m\000"
	.align	2
.LC15:
	.ascii	"\033[0;37m\000"
	.align	2
.LC16:
	.ascii	"\033[0;1;30m\000"
	.align	2
.LC17:
	.ascii	"\033[0;1;34m\000"
	.align	2
.LC18:
	.ascii	"\033[0;1;32m\000"
	.align	2
.LC19:
	.ascii	"\033[0;1;36m\000"
	.align	2
.LC20:
	.ascii	"\033[0;1;31m\000"
	.align	2
.LC21:
	.ascii	"\033[0;1;35m\000"
	.align	2
.LC22:
	.ascii	"\033[0;1;33m\000"
	.align	2
.LC23:
	.ascii	"\033[0;1;37m\000"
	.align	2
.LC24:
	.ascii	"\033[8m\000"
	.align	2
.LC25:
	.ascii	"\033[5m\000"
	.align	2
.LC26:
	.ascii	"\033[9m\000"
	.align	2
.LC27:
	.ascii	"\033[4m\000"
	.align	2
.LC28:
	.ascii	"\033[3m\000"
	.align	2
.LC29:
	.ascii	"\033[m\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L92
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+8
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+12
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+16
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L92+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L92+28
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, .L92+32
	ldr	r3, [r3]
	ldr	r2, .L92+36
	str	r3, [r2]
	ldr	r0, .L92+40
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L16
	ldr	r1, .L92+44
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r1, .L92+48
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
.L17:
	ldr	r3, .L92+52
	mov	r2, #1
	strb	r2, [r3]
	b	.L20
.L18:
	ldr	r3, .L92+52
	mov	r2, #0
	strb	r2, [r3]
	b	.L20
.L16:
	ldr	r3, .L92+52
	mov	r2, #0
	strb	r2, [r3]
.L20:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L21
.L90:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L26
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L23:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L92+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L92+32
	ldr	r3, [r3]
	ldr	r2, .L92+36
	str	r3, [r2]
	b	.L26
.L24:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L92+60
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L92+36
	str	r3, [r2]
	ldr	r3, .L92+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-28]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L92+64
	ldr	r1, .L92+68
	ldr	r0, .L92+72
	bl	snprintf
	ldr	r0, .L92+72
	bl	perror
	ldr	r3, .L92+4
	mov	r2, #1
	strb	r2, [r3]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	b	.L25
.L88:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L87:
	ldr	r2, .L92+76
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldr	r3, .L92
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L92
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L29
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #54
	ldrls	pc, [pc, r3, asl #2]
	b	.L30
.L32:
	.word	.L47
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L43
	.word	.L42
	.word	.L41
	.word	.L40
	.word	.L39
	.word	.L38
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L31
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L31
.L47:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #0
	strb	r1, [r2, r3]
	b	.L48
.L46:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #1
	strb	r1, [r2, r3]
	b	.L48
.L45:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #2
	strb	r1, [r2, r3]
	b	.L48
.L44:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #3
	strb	r1, [r2, r3]
	b	.L48
.L43:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #4
	strb	r1, [r2, r3]
	b	.L48
.L42:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #5
	strb	r1, [r2, r3]
	b	.L48
.L41:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #6
	strb	r1, [r2, r3]
	b	.L48
.L40:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #7
	strb	r1, [r2, r3]
	b	.L48
.L39:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #8
	strb	r1, [r2, r3]
	b	.L48
.L38:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #9
	strb	r1, [r2, r3]
	b	.L48
.L37:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #10
	strb	r1, [r2, r3]
	b	.L48
.L36:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #11
	strb	r1, [r2, r3]
	b	.L48
.L35:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #12
	strb	r1, [r2, r3]
	b	.L48
.L34:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #13
	strb	r1, [r2, r3]
	b	.L48
.L33:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #14
	strb	r1, [r2, r3]
	b	.L48
.L31:
	ldr	r3, .L92+24
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L92+24
	str	r2, [r1]
	ldr	r2, .L92+80
	mov	r1, #15
	strb	r1, [r2, r3]
	b	.L48
.L30:
	ldr	r3, .L92+16
	mov	r2, #0
	strb	r2, [r3]
.L48:
	ldr	r3, .L92+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L77
	ldr	r3, .L92+24
	ldr	r3, [r3]
	cmp	r3, #5
	ble	.L77
	ldr	r3, .L92+16
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+80
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, .L92+80
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, .L92+84
	strb	r2, [r3]
	ldr	r3, .L92+80
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, .L92+80
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, .L92+88
	strb	r2, [r3]
	ldr	r3, .L92+80
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, .L92+80
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, .L92+92
	strb	r2, [r3]
	ldr	r3, .L92+52
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L92+84
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, .L92+88
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L92+92
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r1
	ldr	r2, .L92+96
	mov	r1, #31
	ldr	r0, .L92+100
	bl	snprintf
	b	.L51
.L50:
	ldr	r3, .L92+84
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L92+104
	umull	r1, r3, r2, r3
	lsr	r3, r3, #5
	and	r3, r3, #255
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, #16
	ldr	r3, .L92+88
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, .L92+104
	umull	r0, r3, r1, r3
	lsr	r3, r3, #5
	and	r3, r3, #255
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, .L92+92
	ldrb	r2, [r2]	@ zero_extendqisi2
	ldr	r1, .L92+104
	umull	r0, r2, r1, r2
	lsr	r2, r2, #5
	and	r2, r2, #255
	add	r3, r3, r2
	ldr	r2, .L92+108
	mov	r1, #31
	ldr	r0, .L92+100
	bl	snprintf
.L51:
	ldr	r0, .L92+100
	bl	sput
	b	.L77
.L29:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #72
	ldrls	pc, [pc, r3, asl #2]
	b	.L52
.L54:
	.word	.L76
	.word	.L75
	.word	.L74
	.word	.L73
	.word	.L72
	.word	.L71
	.word	.L70
	.word	.L69
	.word	.L68
	.word	.L67
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L66
	.word	.L65
	.word	.L64
	.word	.L63
	.word	.L62
	.word	.L61
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L60
	.word	.L59
	.word	.L58
	.word	.L57
	.word	.L56
	.word	.L52
	.word	.L52
	.word	.L55
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L53
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L66
	.word	.L65
	.word	.L64
	.word	.L63
	.word	.L62
	.word	.L61
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L60
	.word	.L59
	.word	.L58
	.word	.L57
	.word	.L56
	.word	.L52
	.word	.L52
	.word	.L55
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L52
	.word	.L53
.L76:
	ldr	r0, .L92+112
	bl	sput
	b	.L77
.L75:
	ldr	r0, .L92+116
	bl	sput
	b	.L77
.L74:
	ldr	r0, .L92+120
	bl	sput
	b	.L77
.L73:
	ldr	r0, .L92+124
	bl	sput
	b	.L77
.L72:
	ldr	r0, .L92+128
	bl	sput
	b	.L77
.L71:
	ldr	r0, .L92+132
	bl	sput
	b	.L77
.L70:
	ldr	r0, .L92+136
	bl	sput
	b	.L77
.L69:
	ldr	r0, .L92+140
	bl	sput
	b	.L77
.L68:
	ldr	r0, .L92+144
	bl	sput
	b	.L77
.L67:
	ldr	r0, .L92+148
	bl	sput
	b	.L77
.L66:
	ldr	r0, .L92+152
	bl	sput
	b	.L77
.L65:
	ldr	r0, .L92+156
	bl	sput
	b	.L77
.L64:
	ldr	r0, .L92+160
	bl	sput
	b	.L77
.L63:
	ldr	r0, .L92+164
	bl	sput
	b	.L77
.L62:
	ldr	r0, .L92+168
	bl	sput
	b	.L77
.L61:
	ldr	r0, .L92+172
	bl	sput
	b	.L77
.L60:
	ldr	r0, .L92+176
	bl	sput
	b	.L77
.L59:
	ldr	r0, .L92+180
	bl	sput
	b	.L77
.L58:
	ldr	r0, .L92+184
	bl	sput
	b	.L77
.L57:
	ldr	r0, .L92+188
	bl	sput
	b	.L77
.L56:
	ldr	r0, .L92+192
	bl	sput
	b	.L77
.L55:
	ldr	r0, .L92+196
	bl	sput
	ldr	r3, .L92+12
	mov	r2, #0
	strb	r2, [r3]
	b	.L77
.L53:
	ldr	r3, .L92+16
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L92+24
	mov	r2, #0
	str	r2, [r3]
	b	.L77
.L52:
	mov	r0, #194
	bl	put
	mov	r0, #167
	bl	put
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	bl	put
	b	.L77
.L28:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #194
	beq	.L78
	cmp	r3, #194
	bgt	.L79
	cmp	r3, #10
	beq	.L80
	cmp	r3, #167
	beq	.L81
	b	.L79
.L80:
	ldr	r3, .L92+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L82
	ldr	r0, .L92+196
	bl	sput
	ldr	r3, .L92+12
	mov	r2, #0
	strb	r2, [r3]
.L82:
	ldr	r3, .L92+16
	mov	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	bl	put
	b	.L77
.L78:
	ldr	r3, .L92+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L83
	ldr	r3, .L92+8
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+16
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L92+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	put
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	bl	put
	b	.L77
.L83:
	ldr	r3, .L92+8
	mov	r2, #1
	strb	r2, [r3]
	ldr	r2, .L92+28
	ldrb	r3, [fp, #-17]
	strb	r3, [r2]
	b	.L77
.L81:
	ldr	r3, .L92+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L85
	ldr	r3, .L92
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L92+12
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L92+8
	mov	r2, #0
	strb	r2, [r3]
	b	.L77
.L85:
	ldr	r3, .L92+16
	mov	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	bl	put
	b	.L77
.L79:
	ldr	r3, .L92+16
	mov	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	bl	put
.L77:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r2, .L92+76
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L87
	bl	oflush
.L26:
	ldr	r3, .L92+36
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L92+68
	ldr	r0, .L92+76
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-28]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L92+64
	ldr	r1, .L92+68
	ldr	r0, .L92+72
	bl	snprintf
	ldr	r0, .L92+72
	bl	perror
	ldr	r3, .L92+4
	mov	r2, #1
	strb	r2, [r3]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
.L89:
	ldr	r3, .L92+36
	ldr	r2, [r3]
	ldr	r3, .L92+32
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L25
	ldr	r3, .L92+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L25:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L90
	ldr	r3, .L92+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L93:
	.align	2
.L92:
	.word	state
	.word	hasError
	.word	potstate
	.word	format
	.word	rgb
	.word	outbufL
	.word	haveDigits
	.word	psC
	.word	stdin
	.word	f
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	tct
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	4095
	.word	outbuf
	.word	inbuf
	.word	digits
	.word	red
	.word	green
	.word	blue
	.word	.LC6
	.word	rgbString
	.word	-1307163959
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
