	.file	"1156809.c"
	.intel_syntax noprefix
	.text
	.globl	gradient_size
	.data
	.align 4
	.type	gradient_size, @object
	.size	gradient_size, 4
gradient_size:
	.long	64
	.section	.rodata
	.align 8
.LC0:
	.string	"Your terminal can not change color definitions, please use one of the predefined colors.\n"
.LC1:
	.string	"%02hx%02hx%02hx"
	.text
	.type	parse_color, @function
parse_color:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L4
	call	can_change_color@PLT
	xor	eax, 1
	test	al, al
	je	.L3
	mov	eax, 0
	call	cleanup_terminal_ncurses
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 89
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], -2
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, 6[rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 2[rax]
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parse_color, .-parse_color
	.type	change_color_definition, @function
change_color_definition:
.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	ecx, edi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, edx
	mov	edx, ecx
	mov	WORD PTR -36[rbp], dx
	mov	WORD PTR -40[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_color
	movzx	eax, WORD PTR -40[rbp]
	mov	WORD PTR -18[rbp], ax
	movzx	eax, WORD PTR -16[rbp]
	cmp	ax, -2
	jne	.L6
	movzx	eax, WORD PTR -10[rbp]
	cwde
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	movsd	xmm2, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	movsx	ecx, ax
	movzx	eax, WORD PTR -12[rbp]
	cwde
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	movsd	xmm2, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	movsx	edx, ax
	movzx	eax, WORD PTR -14[rbp]
	cwde
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	movsd	xmm2, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	movsx	esi, ax
	movsx	eax, WORD PTR -36[rbp]
	mov	edi, eax
	call	init_color@PLT
	movzx	eax, WORD PTR -36[rbp]
	mov	WORD PTR -18[rbp], ax
.L6:
	movzx	eax, WORD PTR -18[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	change_color_definition, .-change_color_definition
	.section	.rodata
.LC6:
	.string	"#%02x%02x%02x"
	.text
	.globl	init_terminal_ncurses
	.type	init_terminal_ncurses, @function
init_terminal_ncurses:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -84[rbp], edx
	mov	DWORD PTR -88[rbp], ecx
	mov	DWORD PTR -92[rbp], r8d
	mov	QWORD PTR -104[rbp], r9
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	initscr@PLT
	mov	edi, 0
	call	curs_set@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wtimeout@PLT
	call	noecho@PLT
	call	start_color@PLT
	call	use_default_colors@PLT
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 4[rax]
	cwde
	lea	edx, 1[rax]
	jmp	.L11
.L10:
	mov	edx, -1
.L11:
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 6[rax]
	cwde
	lea	edx, 1[rax]
	jmp	.L13
.L12:
	mov	edx, -1
.L13:
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	WORD PTR -62[rbp], 1
	mov	eax, DWORD PTR -88[rbp]
	movsx	edx, ax
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	change_color_definition
	mov	WORD PTR -60[rbp], ax
	cmp	DWORD PTR -92[rbp], 0
	jne	.L14
	mov	eax, DWORD PTR -84[rbp]
	movsx	edx, ax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	change_color_definition
	mov	WORD PTR -58[rbp], ax
	movsx	edx, WORD PTR -60[rbp]
	movsx	ecx, WORD PTR -58[rbp]
	movsx	eax, WORD PTR -62[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	init_pair@PLT
	jmp	.L15
.L14:
	cmp	DWORD PTR -92[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -128[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR gradient_size[rip], eax
	mov	edx, DWORD PTR gradient_size[rip]
	mov	eax, DWORD PTR COLORS[rip]
	cmp	edx, eax
	jle	.L16
	mov	eax, DWORD PTR COLORS[rip]
	sub	eax, 1
	mov	DWORD PTR gradient_size[rip], eax
.L16:
	mov	edx, DWORD PTR gradient_size[rip]
	mov	eax, DWORD PTR COLOR_PAIRS[rip]
	cmp	edx, eax
	jle	.L17
	mov	eax, DWORD PTR COLOR_PAIRS[rip]
	sub	eax, 1
	mov	DWORD PTR gradient_size[rip], eax
.L17:
	mov	eax, DWORD PTR gradient_size[rip]
	cmp	eax, 256
	jle	.L18
	mov	DWORD PTR gradient_size[rip], 255
.L18:
	mov	rax, QWORD PTR -104[rbp]
	lea	rdi, 1[rax]
	lea	rax, -48[rbp]
	lea	rcx, 4[rax]
	lea	rax, -48[rbp]
	lea	rdx, 2[rax]
	lea	rax, -48[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 1
	lea	rdx, -48[rbp]
	lea	rsi, 10[rdx]
	lea	rdx, -48[rbp]
	lea	rcx, 8[rdx]
	lea	rdx, -48[rbp]
	add	rdx, 6
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L19
.L25:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L20
.L24:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	movzx	eax, WORD PTR -48[rbp+rax*2]
	movzx	eax, ax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 3
	movzx	eax, WORD PTR -48[rbp+rax*2]
	movzx	edx, ax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	movzx	eax, WORD PTR -48[rbp+rax*2]
	movzx	ecx, ax
	mov	eax, edx
	sub	eax, ecx
	imul	eax, DWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR gradient_size[rip]
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movsd	xmm2, QWORD PTR .LC5[rip]
	mulsd	xmm2, xmm3
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 6
	mov	WORD PTR -48[rbp+rax*2], dx
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 6
	movzx	eax, WORD PTR -48[rbp+rax*2]
	cmp	ax, 255
	jbe	.L21
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 6
	mov	WORD PTR -48[rbp+rax*2], 0
.L21:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR gradient_size[rip]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm1, QWORD PTR .LC5[rip]
	mulsd	xmm1, xmm2
	comisd	xmm0, xmm1
	jbe	.L22
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 3
	movzx	eax, WORD PTR -48[rbp+rax*2]
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	add	rdx, 6
	mov	WORD PTR -48[rbp+rdx*2], ax
.L22:
	add	DWORD PTR -52[rbp], 1
.L20:
	cmp	DWORD PTR -52[rbp], 2
	jle	.L24
	movzx	eax, WORD PTR -32[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -34[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -36[rbp]
	movzx	edx, ax
	lea	rax, -16[rbp]
	mov	r8d, esi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	movsx	edx, ax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	cwde
	lea	rcx, -16[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	change_color_definition
	movsx	edx, WORD PTR -60[rbp]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	movsx	ecx, ax
	movzx	eax, WORD PTR -62[rbp]
	mov	esi, eax
	add	esi, 1
	mov	WORD PTR -62[rbp], si
	cwde
	mov	esi, ecx
	mov	edi, eax
	call	init_pair@PLT
	add	DWORD PTR -56[rbp], 1
.L19:
	mov	eax, DWORD PTR gradient_size[rip]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L25
.L15:
	cmp	WORD PTR -60[rbp], -1
	je	.L26
	movsx	eax, WORD PTR -62[rbp]
	sal	eax, 8
	movzx	edx, ax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	wbkgd@PLT
.L26:
	movsx	eax, WORD PTR -62[rbp]
	sal	eax, 8
	movzx	ecx, ax
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wattr_on@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init_terminal_ncurses, .-init_terminal_ncurses
	.globl	change_colors
	.type	change_colors, @function
change_colors:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	ecx, DWORD PTR gradient_size[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jg	.L30
	mov	DWORD PTR -8[rbp], 1
.L30:
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR gradient_size[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L31
	mov	eax, DWORD PTR gradient_size[rip]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
.L31:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	sal	eax, 8
	movzx	ecx, ax
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wattr_on@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	change_colors, .-change_colors
	.globl	get_terminal_dim_ncurses
	.type	get_terminal_dim_ncurses, @function
get_terminal_dim_ncurses:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L33
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 4[rax]
	cwde
	lea	edx, 1[rax]
	jmp	.L34
.L33:
	mov	edx, -1
.L34:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 6[rax]
	cwde
	lea	edx, 1[rax]
	jmp	.L36
.L35:
	mov	edx, -1
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR gradient_size[rip], eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_terminal_dim_ncurses, .-get_terminal_dim_ncurses
	.section	.rodata
	.align 4
.LC7:
	.string	"\201%"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 4
.LC8:
	.string	"\202%"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 4
.LC9:
	.string	"\203%"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 4
.LC10:
	.string	"\204%"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 4
.LC11:
	.string	"\205%"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 4
.LC12:
	.string	"\206%"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 4
.LC13:
	.string	"\207%"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.align 4
.LC14:
	.string	"\210%"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
.LC15:
	.string	"%d"
.LC16:
	.string	" "
	.text
	.globl	draw_terminal_ncurses
	.type	draw_terminal_ncurses, @function
draw_terminal_ncurses:
.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, 176
	mov	DWORD PTR -132[rbp], edi
	mov	DWORD PTR -136[rbp], esi
	mov	DWORD PTR -140[rbp], edx
	mov	DWORD PTR -144[rbp], ecx
	mov	DWORD PTR -148[rbp], r8d
	mov	DWORD PTR -152[rbp], r9d
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC14[rip]
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -132[rbp], 0
	jne	.L38
	mov	eax, DWORD PTR LINES[rip]
	cmp	DWORD PTR -136[rbp], eax
	jne	.L39
	mov	eax, DWORD PTR COLS[rip]
	cmp	DWORD PTR -140[rbp], eax
	je	.L38
.L39:
	mov	eax, -1
	jmp	.L75
.L38:
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -128[rbp], 0
	jmp	.L41
.L74:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L42
	cmp	DWORD PTR -132[rbp], 0
	je	.L43
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR -124[rbp], eax
	jmp	.L44
.L48:
	cmp	DWORD PTR 40[rbp], 0
	je	.L45
	mov	edx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, edx
	mov	edi, eax
	call	change_colors
.L45:
	mov	DWORD PTR -120[rbp], 0
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -148[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -120[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -152[rbp]
	add	edx, eax
	mov	eax, DWORD PTR 16[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -124[rbp]
	mov	ecx, 8
	lea	rdx, .LC15[rip]
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	add	DWORD PTR -120[rbp], 1
.L46:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L47
	add	DWORD PTR -124[rbp], 1
.L44:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	cmp	DWORD PTR -124[rbp], eax
	jl	.L48
	jmp	.L49
.L43:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR -116[rbp], eax
	jmp	.L50
.L54:
	cmp	DWORD PTR 40[rbp], 0
	je	.L51
	mov	edx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, edx
	mov	edi, eax
	call	change_colors
.L51:
	mov	DWORD PTR -112[rbp], 0
	jmp	.L52
.L53:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -148[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -112[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -152[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR 16[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -116[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvaddwstr@PLT
	add	DWORD PTR -112[rbp], 1
.L52:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L53
	add	DWORD PTR -116[rbp], 1
.L50:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	cmp	DWORD PTR -116[rbp], eax
	jl	.L54
.L49:
	cmp	DWORD PTR 40[rbp], 0
	je	.L55
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	mov	edi, edx
	call	change_colors
.L55:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 7
	test	eax, eax
	je	.L56
	cmp	DWORD PTR -132[rbp], 0
	je	.L57
	mov	DWORD PTR -108[rbp], 0
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -148[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -152[rbp]
	add	edx, eax
	mov	eax, DWORD PTR 16[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, edx
	lea	rdx, .LC15[rip]
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	add	DWORD PTR -108[rbp], 1
.L58:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L59
	jmp	.L56
.L57:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L60
.L61:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	sub	eax, 1
	cdqe
	mov	rdx, QWORD PTR -80[rbp+rax*8]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -148[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -104[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -152[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR 16[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	lea	esi, 7[rax]
	test	eax, eax
	cmovs	eax, esi
	sar	eax, 3
	neg	eax
	mov	esi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, esi
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvaddwstr@PLT
	add	DWORD PTR -104[rbp], 1
.L60:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L61
	jmp	.L56
.L42:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L56
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR -100[rbp], eax
	jmp	.L62
.L67:
	mov	DWORD PTR -96[rbp], 0
	jmp	.L63
.L66:
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -148[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -96[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -152[rbp]
	add	edx, eax
	mov	eax, DWORD PTR 16[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -100[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L65
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L65:
	add	DWORD PTR -96[rbp], 1
.L63:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L66
	add	DWORD PTR -100[rbp], 1
.L62:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	cmp	DWORD PTR -100[rbp], eax
	jle	.L67
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 7
	test	eax, eax
	je	.L56
	cmp	DWORD PTR 40[rbp], 0
	je	.L68
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	mov	edi, edx
	call	change_colors
.L68:
	cmp	DWORD PTR -132[rbp], 0
	je	.L69
	mov	DWORD PTR -92[rbp], 0
	jmp	.L70
.L71:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -148[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -92[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -152[rbp]
	add	edx, eax
	mov	eax, DWORD PTR 16[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, edx
	lea	rdx, .LC15[rip]
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	add	DWORD PTR -92[rbp], 1
.L70:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L71
	jmp	.L56
.L69:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L72
.L73:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	sub	eax, 1
	cdqe
	mov	rdx, QWORD PTR -80[rbp+rax*8]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -148[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, DWORD PTR -152[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR 16[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	lea	esi, 7[rax]
	test	eax, eax
	cmovs	eax, esi
	sar	eax, 3
	neg	eax
	mov	esi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, esi
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvaddwstr@PLT
	add	DWORD PTR -88[rbp], 1
.L72:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L73
.L56:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -128[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -168[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -128[rbp], 1
.L41:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -144[rbp]
	jl	.L74
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	eax, 0
.L75:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	draw_terminal_ncurses, .-draw_terminal_ncurses
	.section	.rodata
.LC17:
	.string	"setfont  >/dev/null 2>&1"
	.align 8
.LC18:
	.string	"setfont /usr/share/consolefonts/Lat2-Fixed16.psf.gz  >/dev/null 2>&1"
.LC19:
	.string	"setterm -blank 10"
.LC20:
	.string	"clear"
.LC21:
	.string	"reset"
	.text
	.globl	cleanup_terminal_ncurses
	.type	cleanup_terminal_ncurses, @function
cleanup_terminal_ncurses:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	echo@PLT
	lea	rdi, .LC17[rip]
	call	system@PLT
	lea	rdi, .LC18[rip]
	call	system@PLT
	lea	rdi, .LC19[rip]
	call	system@PLT
	call	endwin@PLT
	lea	rdi, .LC20[rip]
	call	system@PLT
	lea	rdi, .LC21[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	cleanup_terminal_ncurses, .-cleanup_terminal_ncurses
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1083129856
	.align 8
.LC3:
	.long	0
	.long	1081073664
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.align 8
.LC5:
	.long	858993459
	.long	1072378675
	.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	"1156809.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\201%\000\000\000\000\000\000"
	.align	2
.LC1:
	.ascii	"\202%\000\000\000\000\000\000"
	.align	2
.LC2:
	.ascii	"\203%\000\000\000\000\000\000"
	.align	2
.LC3:
	.ascii	"\204%\000\000\000\000\000\000"
	.align	2
.LC4:
	.ascii	"\205%\000\000\000\000\000\000"
	.align	2
.LC5:
	.ascii	"\206%\000\000\000\000\000\000"
	.align	2
.LC6:
	.ascii	"\207%\000\000\000\000\000\000"
	.align	2
.LC7:
	.ascii	"\210%\000\000\000\000\000\000"
	.text
	.global	gradient_size
	.data
	.align	2
	.type	gradient_size, %object
	.size	gradient_size, 4
gradient_size:
	.word	64
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Your terminal can not change color definitions, ple"
	.ascii	"ase use one of the predefined colors.\012\000"
	.align	2
.LC10:
	.ascii	"%02hx%02hx%02hx\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_color, %function
parse_color:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L4
	bl	can_change_color
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L3
	bl	cleanup_terminal_ncurses
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #89
	mov	r1, #1
	ldr	r0, .L5+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-12]
	mvn	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r2, r3, #2
	ldr	r3, [fp, #-12]
	add	r1, r3, #4
	ldr	r3, [fp, #-12]
	add	r3, r3, #6
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L5+8
	ldr	r0, [fp, #-8]
	bl	__isoc99_sscanf
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC9
	.word	.LC10
	.size	parse_color, .-parse_color
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_color_definition, %function
change_color_definition:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	mov	r3, r0
	str	r1, [fp, #-36]
	strh	r3, [fp, #-30]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	parse_color
	ldrh	r3, [fp, #-32]	@ movhi
	strh	r3, [fp, #-26]	@ movhi
	ldrsh	r3, [fp, #-24]
	cmn	r3, #2
	bne	.L8
	ldrsh	r3, [fp, #-22]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L11+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+12
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r4, r3, #16
	ldrsh	r3, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L11+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+12
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r5, r3, #16
	ldrsh	r3, [fp, #-18]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L11+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+12
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldrsh	r0, [fp, #-30]
	mov	r2, r5
	mov	r1, r4
	bl	init_color
	ldrh	r3, [fp, #-30]	@ movhi
	strh	r3, [fp, #-26]	@ movhi
.L8:
	ldrsh	r3, [fp, #-26]
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC11
	.word	1083129856
	.word	1081073664
	.word	1071644672
	.size	change_color_definition, .-change_color_definition
	.global	__aeabi_d2uiz
	.global	__aeabi_dcmpgt
	.section	.rodata
	.align	2
.LC12:
	.ascii	"#%02x%02x%02x\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_terminal_ncurses
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_terminal_ncurses, %function
init_terminal_ncurses:
	@ args = 20, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-92]
	ldr	r3, [fp, #16]
	str	r3, [fp, #-96]
	ldr	r3, [fp, #20]
	str	r3, [fp, #-100]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	initscr
	mov	r0, #0
	bl	curs_set
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wtimeout
	bl	noecho
	bl	start_color
	bl	use_default_colors
	ldr	r3, .L33+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldrsh	r3, [r3, #4]
	add	r3, r3, #1
	b	.L15
.L14:
	mvn	r3, #0
.L15:
	ldr	r2, [fp, #-100]
	str	r3, [r2]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldrsh	r3, [r3, #6]
	add	r3, r3, #1
	b	.L17
.L16:
	mvn	r3, #0
.L17:
	ldr	r2, [fp, #-96]
	str	r3, [r2]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	mov	r3, #1
	strh	r3, [fp, #-66]	@ movhi
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r2, r3
	ldr	r1, [fp, #-76]
	mov	r0, #0
	bl	change_color_definition
	mov	r3, r0
	strh	r3, [fp, #-64]	@ movhi
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r2, r3
	ldr	r1, [fp, #-72]
	mov	r0, #1
	bl	change_color_definition
	mov	r3, r0
	strh	r3, [fp, #-62]	@ movhi
	ldrsh	r2, [fp, #-64]
	ldrsh	r1, [fp, #-62]
	ldrsh	r3, [fp, #-66]
	mov	r0, r3
	bl	init_pair
	b	.L19
.L18:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r2, .L33+8
	str	r3, [r2]
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, .L33+12
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L20
	ldr	r3, .L33+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L33+8
	str	r3, [r2]
.L20:
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, .L33+16
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L21
	ldr	r3, .L33+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L33+8
	str	r3, [r2]
.L21:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	cmp	r3, #256
	ble	.L22
	ldr	r3, .L33+8
	mov	r2, #255
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-88]
	add	r0, r3, #1
	sub	r3, fp, #52
	add	r1, r3, #2
	sub	r2, fp, #52
	sub	r3, fp, #52
	add	r3, r3, #4
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L33+20
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-92]
	add	r0, r3, #1
	sub	r3, fp, #52
	add	r1, r3, #8
	sub	r3, fp, #52
	add	r2, r3, #6
	sub	r3, fp, #52
	add	r3, r3, #10
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L33+20
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L23
.L29:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L24
.L28:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #1
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #32
	ldrh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-56]
	add	r3, r3, #3
	lsl	r3, r3, #1
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #32
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #1
	sub	r1, fp, #20
	add	r3, r1, r3
	sub	r3, r3, #32
	ldrh	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-60]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r6, r0
	mov	r7, r1
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L33+24
	ldr	r3, .L33+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-56]
	add	r3, r3, #6
	lsl	r3, r3, #1
	sub	r1, fp, #20
	add	r3, r1, r3
	sub	r3, r3, #32
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-56]
	add	r3, r3, #6
	lsl	r3, r3, #1
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #32
	ldrh	r3, [r3]
	cmp	r3, #255
	bls	.L25
	ldr	r3, [fp, #-56]
	add	r3, r3, #6
	lsl	r3, r3, #1
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #32
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L25:
	ldr	r0, [fp, #-60]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L33+24
	ldr	r3, .L33+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-56]
	add	r3, r3, #3
	lsl	r3, r3, #1
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #32
	ldrh	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #6
	lsl	r3, r3, #1
	sub	r1, fp, #20
	add	r3, r1, r3
	sub	r3, r3, #32
	strh	r2, [r3]	@ movhi
.L26:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L24:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L28
	ldrh	r3, [fp, #-40]
	mov	r2, r3
	ldrh	r3, [fp, #-38]
	mov	r1, r3
	ldrh	r3, [fp, #-36]
	sub	r0, fp, #32
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L33+32
	bl	sprintf
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r0, r3, #16
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r2, r3, #16
	sub	r3, fp, #32
	mov	r1, r3
	bl	change_color_definition
	ldrsh	r3, [fp, #-66]
	lsl	r2, r3, #16
	lsr	r2, r2, #16
	add	r2, r2, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [fp, #-66]	@ movhi
	ldr	r2, [fp, #-60]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	add	r2, r2, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	lsl	r2, r2, #16
	asr	r1, r2, #16
	ldrsh	r2, [fp, #-64]
	mov	r0, r3
	bl	init_pair
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L23:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L29
.L19:
	ldrsh	r3, [fp, #-64]
	cmn	r3, #1
	beq	.L30
	ldr	r3, .L33+4
	ldr	r2, [r3]
	ldrsh	r3, [fp, #-66]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	mov	r0, r2
	bl	wbkgd
.L30:
	ldr	r3, .L33+4
	ldr	r0, [r3]
	ldrsh	r3, [fp, #-66]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	bl	wattr_on
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC13
	.word	stdscr
	.word	gradient_size
	.word	COLORS
	.word	COLOR_PAIRS
	.word	.LC10
	.word	858993459
	.word	1072378675
	.word	.LC12
	.size	init_terminal_ncurses, .-init_terminal_ncurses
	.global	__aeabi_idiv
	.align	2
	.global	change_colors
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_colors, %function
change_colors:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L38
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L36
	mov	r3, #1
	str	r3, [fp, #-12]
.L36:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L38
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L37
	ldr	r3, .L38
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r3, .L38+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	bl	wattr_on
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	gradient_size
	.word	stdscr
	.size	change_colors, .-change_colors
	.align	2
	.global	get_terminal_dim_ncurses
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_terminal_dim_ncurses, %function
get_terminal_dim_ncurses:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L45
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L45
	ldr	r3, [r3]
	ldrsh	r3, [r3, #4]
	add	r3, r3, #1
	b	.L42
.L41:
	mvn	r3, #0
.L42:
	ldr	r2, [fp, #-12]
	str	r3, [r2]
	ldr	r3, .L45
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L45
	ldr	r3, [r3]
	ldrsh	r3, [r3, #6]
	add	r3, r3, #1
	b	.L44
.L43:
	mvn	r3, #0
.L44:
	ldr	r2, [fp, #-8]
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, .L45+4
	str	r3, [r2]
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	stdscr
	.word	gradient_size
	.size	get_terminal_dim_ncurses, .-get_terminal_dim_ncurses
	.section	.rodata
	.align	2
.LC15:
	.ascii	"%d\000"
	.align	2
.LC16:
	.ascii	" \000"
	.align	2
.LC14:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw_terminal_ncurses
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_terminal_ncurses, %function
draw_terminal_ncurses:
	@ args = 24, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	str	r2, [fp, #-104]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #16]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #20]
	str	r3, [fp, #-116]
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L87+4
	sub	ip, fp, #40
	mov	lr, 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}
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L87+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	bne	.L49
	ldr	r3, .L87+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	beq	.L48
.L49:
	mvn	r3, #0
	b	.L85
.L48:
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L51
.L84:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-116]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L52
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-84]
	b	.L54
.L58:
	ldr	r3, [fp, #24]
	cmp	r3, #0
	beq	.L55
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-84]
	bl	change_colors
.L55:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L56
.L57:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-84]
	sub	r0, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-80]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #12]
	add	r1, r2, r3
	mov	r3, #8
	ldr	r2, .L87+16
	bl	mvprintw
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L56:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L57
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L54:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-84]
	cmp	r3, r2
	blt	.L58
	b	.L59
.L53:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-76]
	b	.L60
.L64:
	ldr	r3, [fp, #24]
	cmp	r3, #0
	beq	.L61
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-76]
	bl	change_colors
.L61:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L62
.L63:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-76]
	sub	r0, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-72]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	mov	r1, r3
	bl	mvaddwstr
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L62:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L63
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L60:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	cmp	r3, r2
	blt	.L64
.L59:
	ldr	r3, [fp, #24]
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	change_colors
.L65:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #7
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L67
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L68
.L69:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r0, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-68]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #12]
	add	r1, r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	ldr	r2, .L87+16
	bl	mvprintw
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L68:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L69
	b	.L66
.L67:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L70
.L71:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r0, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #12]
	add	r1, r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	mov	r2, r3
	bl	mvaddwstr
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L70:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L71
	b	.L66
.L52:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-116]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L66
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-60]
	b	.L72
.L77:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L73
.L76:
	ldr	r3, .L87+20
	ldr	r0, [r3]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	sub	ip, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #12]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, ip
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L75
	ldr	r3, .L87+20
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L87+24
	mov	r0, r3
	bl	waddnstr
.L75:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L73:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L76
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L72:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	ble	.L77
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #7
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #24]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	change_colors
.L78:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L79
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L80
.L81:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r0, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-52]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #12]
	add	r1, r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	ldr	r2, .L87+16
	bl	mvprintw
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L80:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L81
	b	.L66
.L79:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L82
.L83:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r0, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r1, [fp, #8]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #12]
	add	r1, r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	mov	r2, r3
	bl	mvaddwstr
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L82:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L83
.L66:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-116]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L51:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L84
	ldr	r3, .L87+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r3, #0
.L85:
	ldr	r2, .L87
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L86
	bl	__stack_chk_fail
.L86:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC17
	.word	.LC14
	.word	LINES
	.word	COLS
	.word	.LC15
	.word	stdscr
	.word	.LC16
	.size	draw_terminal_ncurses, .-draw_terminal_ncurses
	.section	.rodata
	.align	2
.LC18:
	.ascii	"setfont  >/dev/null 2>&1\000"
	.align	2
.LC19:
	.ascii	"setfont /usr/share/consolefonts/Lat2-Fixed16.psf.gz"
	.ascii	"  >/dev/null 2>&1\000"
	.align	2
.LC20:
	.ascii	"setterm -blank 10\000"
	.align	2
.LC21:
	.ascii	"clear\000"
	.align	2
.LC22:
	.ascii	"reset\000"
	.text
	.align	2
	.global	cleanup_terminal_ncurses
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup_terminal_ncurses, %function
cleanup_terminal_ncurses:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	echo
	ldr	r0, .L90
	bl	system
	ldr	r0, .L90+4
	bl	system
	ldr	r0, .L90+8
	bl	system
	bl	endwin
	ldr	r0, .L90+12
	bl	system
	ldr	r0, .L90+16
	bl	system
	nop
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	cleanup_terminal_ncurses, .-cleanup_terminal_ncurses
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
