	.file	"515489.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/proc/self/fd/0"
.LC1:
	.string	"/dev/tty"
.LC2:
	.string	"/dev/tty0"
.LC3:
	.string	"/dev/vc/0"
.LC4:
	.string	"/dev/systty"
.LC5:
	.string	"/dev/console"
	.section	.data.rel.local,"aw"
	.align 32
	.type	console_paths, @object
	.size	console_paths, 56
console_paths:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	0
	.section	.rodata
	.align 32
	.type	default_color_set, @object
	.size	default_color_set, 112
default_color_set:
	.string	"000000"
	.string	"aa0000"
	.string	"00aa00"
	.string	"aa5500"
	.string	"0000aa"
	.string	"aa00aa"
	.string	"00aaaa"
	.string	"aaaaaa"
	.string	"555555"
	.string	"ff5555"
	.string	"55ff55"
	.string	"ffff55"
	.string	"5555ff"
	.string	"ff55ff"
	.string	"55ffff"
	.string	"ffffff"
.LC6:
	.string	"%2x%2x%2x"
.LC7:
	.string	"Color %d: Invalid hex code\n"
	.text
	.type	get_palette_from_color_set, @function
get_palette_from_color_set:
.LFB6:
	.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, 184
	.cfi_offset 3, -24
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -148[rbp], 0
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -152[rbp], eax
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -192[rbp]
	lea	rdi, [rcx+rax]
	lea	rcx, -156[rbp]
	lea	rdx, -160[rbp]
	lea	rax, -164[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 3
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	ecx, DWORD PTR -164[rbp]
	mov	eax, DWORD PTR -148[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -148[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -144[rbp+rax], dl
	mov	ecx, DWORD PTR -160[rbp]
	mov	eax, DWORD PTR -148[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -148[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -144[rbp+rax], dl
	mov	ecx, DWORD PTR -156[rbp]
	mov	eax, DWORD PTR -148[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -148[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -144[rbp+rax], dl
	add	DWORD PTR -152[rbp], 1
.L2:
	cmp	DWORD PTR -152[rbp], 15
	jle	.L4
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, QWORD PTR -144[rbp]
	mov	rbx, QWORD PTR -136[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -120[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -112[rbp]
	mov	rbx, QWORD PTR -104[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 80[rax], rcx
	mov	QWORD PTR 88[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 96[rax], rcx
	mov	QWORD PTR 104[rax], rbx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rax, QWORD PTR -184[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_palette_from_color_set, .-get_palette_from_color_set
	.type	get_console_fd, @function
get_console_fd:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -17[rbp], 0
	cmp	QWORD PTR -40[rbp], 0
	jne	.L8
	mov	DWORD PTR -16[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, console_paths[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	get_console_fd
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jle	.L10
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L16
.L10:
	add	DWORD PTR -16[rbp], 1
.L9:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, console_paths[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L12
	mov	eax, -1
	jmp	.L16
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 258
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L13
	mov	eax, -1
	jmp	.L16
.L13:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	isatty@PLT
	test	eax, eax
	je	.L14
	lea	rdx, -17[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 19251
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	js	.L14
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 2
	je	.L15
.L14:
	mov	eax, -1
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -12[rbp]
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_console_fd, .-get_console_fd
	.section	.rodata
.LC8:
	.string	"r"
.LC9:
	.string	"%d#%s"
	.align 8
.LC10:
	.string	"Color %d: value too short, skipping\n"
	.align 8
.LC11:
	.string	"Warning: Less than 16 colors in configuration\n"
	.text
	.type	get_color_set_from_file, @function
get_color_set_from_file:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L19
	mov	eax, -1
	jmp	.L32
.L19:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L21
.L29:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L24
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	mov	DWORD PTR -44[rbp], eax
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L26
	add	QWORD PTR -24[rbp], 1
.L26:
	mov	rcx, QWORD PTR -24[rbp]
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 15
	jg	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 5
	ja	.L28
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 6
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	jmp	.L25
.L35:
	nop
.L25:
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
.L21:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	test	rax, rax
	jg	.L29
	jmp	.L23
.L34:
	nop
.L23:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 15
	jg	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
.L30:
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	je	.L31
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
.L31:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L32:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_color_set_from_file, .-get_color_set_from_file
	.section	.rodata
.LC12:
	.string	"console"
.LC13:
	.string	"help"
	.align 8
.LC14:
	.ascii	"Usage: setcolors [-c device] [config-file]\nUpdates the linu"
	.ascii	"x VT101 console default color palette\n\nThe color configura"
	.ascii	"tion file passed should contain at most 16 hexadecimal\nvalu"
	.ascii	"es separated by new lines. You can specify the c"
	.string	"olor ID by prefixing\nthe hexadecimal value with the color Id (between 0 and 15) and a `#'\n\nIf no color config file is passed the colors will be reset to the defaults\n\n -c, --console   Indicate console device to be used.\n -h, --help      Show this help text"
	.align 8
.LC15:
	.string	"Unable to load color set from file"
.LC16:
	.string	"-c:h"
.LC17:
	.string	"Unable to open console"
	.align 8
.LC18:
	.string	"Failed to set new color map on console"
.LC19:
	.string	"\033[2J\033[1;1H"
	.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, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR default_color_set[rip]
	mov	rdx, QWORD PTR default_color_set[rip+8]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	rax, QWORD PTR default_color_set[rip+16]
	mov	rdx, QWORD PTR default_color_set[rip+24]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR default_color_set[rip+32]
	mov	rdx, QWORD PTR default_color_set[rip+40]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR default_color_set[rip+48]
	mov	rdx, QWORD PTR default_color_set[rip+56]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR default_color_set[rip+64]
	mov	rdx, QWORD PTR default_color_set[rip+72]
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	mov	rax, QWORD PTR default_color_set[rip+80]
	mov	rdx, QWORD PTR default_color_set[rip+88]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR default_color_set[rip+96]
	mov	rdx, QWORD PTR default_color_set[rip+104]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	QWORD PTR -344[rbp], 0
	lea	rax, .LC12[rip]
	mov	QWORD PTR -336[rbp], rax
	mov	DWORD PTR -328[rbp], 1
	mov	QWORD PTR -320[rbp], 0
	mov	DWORD PTR -312[rbp], 99
	lea	rax, .LC13[rip]
	mov	QWORD PTR -304[rbp], rax
	mov	DWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	DWORD PTR -280[rbp], 104
	mov	QWORD PTR -272[rbp], 0
	mov	DWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	DWORD PTR -248[rbp], 0
	jmp	.L37
.L43:
	cmp	DWORD PTR -352[rbp], 104
	je	.L38
	cmp	DWORD PTR -352[rbp], 104
	jg	.L39
	cmp	DWORD PTR -352[rbp], 1
	je	.L40
	cmp	DWORD PTR -352[rbp], 99
	jne	.L39
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -344[rbp], rax
	jmp	.L37
.L38:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L46
.L40:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_color_set_from_file
	test	eax, eax
	jns	.L37
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L39:
	mov	edi, 1
	call	exit@PLT
.L37:
	lea	rdx, -336[rbp]
	mov	rsi, QWORD PTR -368[rbp]
	mov	eax, DWORD PTR -356[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	lea	rdx, .LC16[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -352[rbp], eax
	cmp	DWORD PTR -352[rbp], -1
	jne	.L43
	lea	rax, -128[rbp]
	lea	rdx, -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_palette_from_color_set
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	get_console_fd
	mov	DWORD PTR -348[rbp], eax
	cmp	DWORD PTR -348[rbp], 0
	jns	.L44
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L44:
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -348[rbp]
	mov	esi, 19313
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L45
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, 10
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -348[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L46:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	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	"515489.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"console\000"
	.align	2
.LC1:
	.ascii	"help\000"
	.text
	.section	.rodata
	.align	2
.LC3:
	.ascii	"/proc/self/fd/0\000"
	.align	2
.LC4:
	.ascii	"/dev/tty\000"
	.align	2
.LC5:
	.ascii	"/dev/tty0\000"
	.align	2
.LC6:
	.ascii	"/dev/vc/0\000"
	.align	2
.LC7:
	.ascii	"/dev/systty\000"
	.align	2
.LC8:
	.ascii	"/dev/console\000"
	.data
	.align	2
	.type	console_paths, %object
	.size	console_paths, 28
console_paths:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	0
	.section	.rodata
	.align	2
	.type	default_color_set, %object
	.size	default_color_set, 112
default_color_set:
	.ascii	"000000\000"
	.ascii	"aa0000\000"
	.ascii	"00aa00\000"
	.ascii	"aa5500\000"
	.ascii	"0000aa\000"
	.ascii	"aa00aa\000"
	.ascii	"00aaaa\000"
	.ascii	"aaaaaa\000"
	.ascii	"555555\000"
	.ascii	"ff5555\000"
	.ascii	"55ff55\000"
	.ascii	"ffff55\000"
	.ascii	"5555ff\000"
	.ascii	"ff55ff\000"
	.ascii	"55ffff\000"
	.ascii	"ffffff\000"
	.align	2
.LC9:
	.ascii	"%2x%2x%2x\000"
	.align	2
.LC10:
	.ascii	"Color %d: Invalid hex code\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_palette_from_color_set, %function
get_palette_from_color_set:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-128]
	b	.L2
.L4:
	ldr	r2, [fp, #-128]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-148]
	add	r0, r2, r3
	sub	r1, fp, #136
	sub	r2, fp, #140
	sub	r3, fp, #132
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L7+4
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #3
	beq	.L3
	ldr	r3, .L7+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	ldr	r1, .L7+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-124]
	add	r1, r3, #1
	str	r1, [fp, #-124]
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-116]
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-124]
	add	r1, r3, #1
	str	r1, [fp, #-124]
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-116]
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-124]
	add	r1, r3, #1
	str	r1, [fp, #-124]
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-116]
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L2:
	ldr	r3, [fp, #-128]
	cmp	r3, #15
	ble	.L4
	ldr	r3, [fp, #-144]
	mov	r0, r3
	sub	r3, fp, #120
	mov	r2, #112
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	ldr	r0, [fp, #-144]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC11
	.word	.LC9
	.word	stderr
	.word	.LC10
	.size	get_palette_from_color_set, .-get_palette_from_color_set
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_console_fd, %function
get_console_fd:
	@ 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, #-24]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L11
.L14:
	ldr	r2, .L20+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	get_console_fd
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L12
	ldr	r3, [fp, #-12]
	b	.L18
.L12:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r2, .L20+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L14
	mvn	r3, #0
	b	.L18
.L10:
	ldr	r1, .L20+8
	ldr	r0, [fp, #-24]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L15
	mvn	r3, #0
	b	.L18
.L15:
	ldr	r0, [fp, #-12]
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #17
	mov	r2, r3
	ldr	r1, .L20+12
	ldr	r0, [fp, #-12]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	blt	.L16
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L17
.L16:
	mvn	r3, #0
	b	.L18
.L17:
	ldr	r3, [fp, #-12]
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC12
	.word	console_paths
	.word	258
	.word	19251
	.size	get_console_fd, .-get_console_fd
	.section	.rodata
	.align	2
.LC13:
	.ascii	"r\000"
	.align	2
.LC14:
	.ascii	"%d#%s\000"
	.align	2
.LC15:
	.ascii	"Color %d: value too short, skipping\012\000"
	.align	2
.LC16:
	.ascii	"Warning: Less than 16 colors in configuration\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_color_set_from_file, %function
get_color_set_from_file:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, .L40+4
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L23
	mvn	r3, #0
	b	.L36
.L23:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L25
.L33:
	ldr	r3, [fp, #-28]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L28
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L29
.L28:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L30
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L30:
	sub	r2, fp, #28
	ldr	r3, [fp, #-16]
	ldr	r1, .L40+8
	ldr	r0, [fp, #-16]
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-28]
	cmp	r3, #15
	bgt	.L39
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	cmp	r3, #5
	bhi	.L32
	ldr	r3, .L40+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, .L40+16
	mov	r0, r3
	bl	fprintf
	b	.L29
.L32:
	ldr	r3, [fp, #-28]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #6
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strncpy
	b	.L29
.L39:
	nop
.L29:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L25:
	sub	r1, fp, #20
	sub	r3, fp, #24
	ldr	r2, [fp, #-12]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmp	r3, #0
	bgt	.L33
	b	.L27
.L38:
	nop
.L27:
	ldr	r3, [fp, #-28]
	cmp	r3, #15
	bgt	.L34
	ldr	r3, .L40+12
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L40+20
	bl	fwrite
.L34:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
.L35:
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
.L36:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC17
	.word	.LC13
	.word	.LC14
	.word	stderr
	.word	.LC15
	.word	.LC16
	.size	get_color_set_from_file, .-get_color_set_from_file
	.section	.rodata
	.align	2
.LC19:
	.ascii	"Usage: setcolors [-c device] [config-file]\012Updat"
	.ascii	"es the linux VT101 console default color palette\012"
	.ascii	"\012The color configuration file passed should cont"
	.ascii	"ain at most 16 hexadecimal\012values separated by n"
	.ascii	"ew lines. You can specify the color ID by prefixing"
	.ascii	"\012the hexadecimal value with the color Id (betwee"
	.ascii	"n 0 and 15) and a `#'\012\012If no color config fil"
	.ascii	"e is passed the colors will be reset to the default"
	.ascii	"s\012\012 -c, --console   Indicate console device t"
	.ascii	"o be used.\012 -h, --help      Show this help text\000"
	.align	2
.LC20:
	.ascii	"Unable to load color set from file\000"
	.align	2
.LC21:
	.ascii	"-c:h\000"
	.align	2
.LC22:
	.ascii	"Unable to open console\000"
	.align	2
.LC23:
	.ascii	"Failed to set new color map on console\000"
	.align	2
.LC24:
	.ascii	"\033[2J\033[1;1H\000"
	.align	2
.LC18:
	.word	.LC0
	.word	1
	.word	0
	.word	99
	.word	.LC1
	.word	0
	.word	0
	.word	104
	.word	0
	.word	0
	.word	0
	.word	0
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L54+4
	sub	r3, fp, #232
	mov	r1, r2
	mov	r2, #112
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-292]
	ldr	r3, .L54+8
	sub	ip, fp, #280
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L43
.L49:
	ldr	r3, [fp, #-288]
	cmp	r3, #104
	beq	.L44
	ldr	r3, [fp, #-288]
	cmp	r3, #104
	bgt	.L45
	ldr	r3, [fp, #-288]
	cmp	r3, #1
	beq	.L46
	ldr	r3, [fp, #-288]
	cmp	r3, #99
	bne	.L45
	ldr	r3, .L54+12
	ldr	r3, [r3]
	str	r3, [fp, #-292]
	b	.L43
.L44:
	ldr	r0, .L54+16
	bl	puts
	mov	r3, #0
	b	.L52
.L46:
	ldr	r3, .L54+12
	ldr	r3, [r3]
	sub	r2, fp, #232
	mov	r1, r2
	mov	r0, r3
	bl	get_color_set_from_file
	mov	r3, r0
	cmp	r3, #0
	bge	.L43
	ldr	r0, .L54+20
	bl	perror
	mov	r0, #1
	bl	exit
.L45:
	mov	r0, #1
	bl	exit
.L43:
	sub	r3, fp, #280
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, .L54+24
	ldr	r1, [fp, #-300]
	ldr	r0, [fp, #-296]
	bl	getopt_long
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmn	r3, #1
	bne	.L49
	sub	r3, fp, #120
	sub	r2, fp, #232
	mov	r1, r2
	mov	r0, r3
	bl	get_palette_from_color_set
	ldr	r0, [fp, #-292]
	bl	get_console_fd
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmp	r3, #0
	bge	.L50
	ldr	r0, .L54+28
	bl	perror
	mov	r0, #1
	bl	exit
.L50:
	sub	r3, fp, #120
	mov	r2, r3
	ldr	r1, .L54+32
	ldr	r0, [fp, #-284]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L51
	ldr	r0, .L54+36
	bl	perror
	mov	r0, #1
	bl	exit
.L51:
	mov	r2, #10
	ldr	r1, .L54+40
	ldr	r0, [fp, #-284]
	bl	write
	ldr	r0, [fp, #-284]
	bl	close
	mov	r3, #0
.L52:
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC25
	.word	default_color_set
	.word	.LC18
	.word	optarg
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	19313
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
