	.file	"986385.c"
	.intel_syntax noprefix
	.text
	.globl	CTRLS
	.section	.rodata
	.align 16
	.type	CTRLS, @object
	.size	CTRLS, 28
CTRLS:
	.long	101
	.long	32
	.long	113
	.long	116
	.long	115
	.long	114
	.long	110
	.align 8
.LC0:
	.string	"Your terminal does not support color."
.LC1:
	.string	"Game of Life, step %d"
	.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
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	call	initscr@PLT
	call	has_colors@PLT
	xor	eax, 1
	test	al, al
	je	.L2
	call	endwin@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	call	start_color@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	init_pair@PLT
	mov	edx, 1
	mov	esi, 0
	mov	edi, 2
	call	init_pair@PLT
	call	noecho@PLT
	mov	esi, DWORD PTR COLS[rip]
	mov	eax, DWORD PTR LINES[rip]
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	newwin@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	nodelay@PLT
	mov	DWORD PTR -64[rbp], 0
	mov	eax, DWORD PTR LINES[rip]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR COLS[rip]
	cdqe
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	esi, 4
	mov	edi, 2
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -56[rbp], 1
.L4:
	mov	eax, DWORD PTR COLS[rip]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L5
	add	DWORD PTR -60[rbp], 1
.L3:
	mov	eax, DWORD PTR LINES[rip]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L6
	mov	eax, DWORD PTR LINES[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR COLS[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -48[rbp], eax
	mov	DWORD PTR -44[rbp], 32
	mov	DWORD PTR -40[rbp], 0
	jmp	.L7
.L27:
	mov	eax, 101
	cmp	DWORD PTR -44[rbp], eax
	jne	.L8
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	sete	cl
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L10
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	movsx	edx, ax
	mov	rax, QWORD PTR -32[rbp]
	mov	r8d, 0
	mov	ecx, edx
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	wchgat@PLT
	jmp	.L10
.L8:
	mov	eax, 116
	cmp	DWORD PTR -44[rbp], eax
	jne	.L11
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR COLS[rip]
	add	eax, edx
	mov	ecx, DWORD PTR COLS[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -48[rbp], edx
	jmp	.L10
.L11:
	mov	eax, 115
	cmp	DWORD PTR -44[rbp], eax
	jne	.L12
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -52[rbp], edx
	jmp	.L10
.L12:
	mov	eax, 114
	cmp	DWORD PTR -44[rbp], eax
	jne	.L13
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR LINES[rip]
	add	eax, edx
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -52[rbp], edx
	jmp	.L10
.L13:
	mov	eax, 110
	cmp	DWORD PTR -44[rbp], eax
	jne	.L14
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR COLS[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -48[rbp], edx
	jmp	.L10
.L14:
	mov	eax, 32
	cmp	DWORD PTR -44[rbp], eax
	jne	.L10
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40[rbp], edx
	mov	rdi, QWORD PTR -32[rbp]
	mov	r8d, eax
	lea	rcx, .LC1[rip]
	mov	edx, 0
	mov	esi, 0
	mov	eax, 0
	call	mvwprintw@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L15
.L26:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L16
.L25:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR LINES[rip]
	add	eax, edx
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR COLS[rip]
	add	eax, edx
	mov	ecx, DWORD PTR COLS[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR LINES[rip]
	add	eax, edx
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edi, [rsi+rax]
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR LINES[rip]
	add	eax, edx
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR COLS[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	edi, eax
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR COLS[rip]
	add	eax, edx
	mov	ecx, DWORD PTR COLS[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	edi, eax
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR COLS[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	edi, eax
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR COLS[rip]
	add	eax, edx
	mov	ecx, DWORD PTR COLS[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	esi, [rdi+rax]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edi, [rsi+rax]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR COLS[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, edi
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 3
	jg	.L17
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, 3
	sub	eax, edx
	cmp	DWORD PTR -36[rbp], eax
	jl	.L17
	mov	edx, 1
	jmp	.L18
.L17:
	mov	edx, 0
.L18:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR -64[rbp], 0
	jne	.L19
	mov	ecx, 4
	jmp	.L20
.L19:
	mov	ecx, 0
.L20:
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L24
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR -64[rbp], 0
	jne	.L22
	mov	edx, 4
	jmp	.L23
.L22:
	mov	edx, 0
.L23:
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	movsx	edx, ax
	mov	rax, QWORD PTR -32[rbp]
	mov	r8d, 0
	mov	ecx, edx
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	wchgat@PLT
.L24:
	add	DWORD PTR -56[rbp], 1
.L16:
	mov	eax, DWORD PTR COLS[rip]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L25
	add	DWORD PTR -60[rbp], 1
.L15:
	mov	eax, DWORD PTR LINES[rip]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L26
	cmp	DWORD PTR -64[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -64[rbp], eax
.L10:
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
.L7:
	mov	eax, 113
	cmp	DWORD PTR -44[rbp], eax
	jne	.L27
	mov	DWORD PTR -60[rbp], 0
	jmp	.L28
.L31:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -56[rbp], 1
.L29:
	mov	eax, DWORD PTR COLS[rip]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L30
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -60[rbp], 1
.L28:
	mov	eax, DWORD PTR LINES[rip]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	delwin@PLT
	call	endwin@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"986385.c"
	.text
	.global	CTRLS
	.section	.rodata
	.align	2
	.type	CTRLS, %object
	.size	CTRLS, 28
CTRLS:
	.word	101
	.word	32
	.word	113
	.word	116
	.word	115
	.word	114
	.word	110
	.align	2
.LC0:
	.ascii	"Your terminal does not support color.\000"
	.global	__aeabi_idivmod
	.align	2
.LC1:
	.ascii	"Game of Life, step %d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	bl	initscr
	bl	has_colors
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	bl	endwin
	ldr	r0, .L33
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	bl	start_color
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	init_pair
	mov	r2, #1
	mov	r1, #0
	mov	r0, #2
	bl	init_pair
	bl	noecho
	ldr	r3, .L33+4
	ldr	r0, [r3]
	ldr	r3, .L33+8
	ldr	r1, [r3]
	mov	r3, #0
	mov	r2, #0
	bl	newwin
	str	r0, [fp, #-24]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	nodelay
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L3
.L6:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r0, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	mov	r1, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L4
.L5:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r1, #4
	mov	r0, #2
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L4:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L3:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L6
	ldr	r3, .L33+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, .L33+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r3, #32
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L7
.L27:
	mov	r2, #101
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bne	.L8
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-24]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L10
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	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	r3, r3, #16
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	wchgat
	b	.L10
.L8:
	mov	r2, #116
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bne	.L11
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, .L33+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-36]
	b	.L10
.L11:
	mov	r2, #115
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bne	.L12
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldr	r2, .L33+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-40]
	b	.L10
.L12:
	mov	r2, #114
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bne	.L13
	ldr	r3, [fp, #-40]
	sub	r2, r3, #1
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-40]
	b	.L10
.L13:
	mov	r2, #110
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bne	.L14
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, .L33+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-36]
	b	.L10
.L14:
	mov	r2, #32
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bne	.L10
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	str	r3, [sp]
	ldr	r3, .L33+12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	mvwprintw
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L15
.L26:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L16
.L25:
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	ldr	r3, .L33+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	ldr	r3, .L33+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldr	r2, .L33+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r5, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	ldr	r3, .L33+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r5, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldr	r2, .L33+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r5, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	ldr	r2, .L33+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	ldr	r3, .L33+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L33+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r5, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	ldr	r2, .L33+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	ldr	r2, .L33+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldr	r2, .L33+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r5, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r4, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bgt	.L17
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	rsb	r3, r3, #3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L17
	mov	r2, #1
	b	.L18
.L17:
	mov	r2, #0
.L18:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L19
	mov	r3, #4
	b	.L20
.L19:
	mov	r3, #0
.L20:
	add	r3, r1, r3
	str	r2, [r3]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-24]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L24
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L22
	mov	r3, #4
	b	.L23
.L22:
	mov	r3, #0
.L23:
	add	r3, r2, r3
	ldr	r3, [r3]
	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	r3, r3, #16
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	wchgat
.L24:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L16:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L15:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-52]
.L10:
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-24]
	bl	wmove
	ldr	r0, [fp, #-24]
	bl	wgetch
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	wrefresh
.L7:
	mov	r2, #113
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bne	.L27
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L28
.L31:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L29
.L30:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L29:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L28:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L31
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-24]
	bl	delwin
	bl	endwin
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	LINES
	.word	COLS
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
