	.file	"935728.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	lea	rsi, finish[rip]
	mov	edi, 2
	call	signal@PLT
	call	initscr@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	call	nonl@PLT
	call	cbreak@PLT
	call	echo@PLT
	call	has_colors@PLT
	test	al, al
	je	.L3
	call	start_color@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 3
	mov	edi, 3
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 4
	mov	edi, 4
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 6
	mov	edi, 5
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 5
	mov	edi, 6
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 7
	mov	edi, 7
	call	init_pair@PLT
.L3:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	sal	eax, 8
	movzx	edx, ax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	wattrset@PLT
	add	DWORD PTR -8[rbp], 1
	jmp	.L3
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	finish, @function
finish:
.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	DWORD PTR -4[rbp], edi
	call	endwin@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	finish, .-finish
	.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	"935728.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L4
	mov	r0, #2
	bl	signal
	bl	initscr
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	bl	nonl
	bl	cbreak
	bl	echo
	bl	has_colors
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	bl	start_color
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	init_pair
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	init_pair
	mov	r2, #0
	mov	r1, #3
	mov	r0, #3
	bl	init_pair
	mov	r2, #0
	mov	r1, #4
	mov	r0, #4
	bl	init_pair
	mov	r2, #0
	mov	r1, #6
	mov	r0, #5
	bl	init_pair
	mov	r2, #0
	mov	r1, #5
	mov	r0, #6
	bl	init_pair
	mov	r2, #0
	mov	r1, #7
	mov	r0, #7
	bl	init_pair
.L3:
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-8]
	ldr	r3, .L4+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r1, r3
	bl	wattrset
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L3
.L5:
	.align	2
.L4:
	.word	finish
	.word	stdscr
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	finish, %function
finish:
	@ 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]
	bl	endwin
	mov	r0, #0
	bl	exit
	.size	finish, .-finish
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
