	.file	"15234.c"
	.intel_syntax noprefix
	.text
	.globl	STARTX
	.bss
	.align 4
	.type	STARTX, @object
	.size	STARTX, 4
STARTX:
	.zero	4
	.globl	STARTY
	.align 4
	.type	STARTY, @object
	.size	STARTY, 4
STARTY:
	.zero	4
	.globl	ENDX
	.data
	.align 4
	.type	ENDX, @object
	.size	ENDX, 4
ENDX:
	.long	79
	.globl	ENDY
	.align 4
	.type	ENDY, @object
	.size	ENDY, 4
ENDY:
	.long	24
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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, 24
	.cfi_offset 3, -24
	call	initscr@PLT
	call	cbreak@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 300
	mov	rdi, rax
	call	wtimeout@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	eax, DWORD PTR COLS[rip]
	sub	eax, 1
	mov	DWORD PTR ENDX[rip], eax
	mov	eax, DWORD PTR LINES[rip]
	sub	eax, 1
	mov	DWORD PTR ENDY[rip], eax
	mov	eax, DWORD PTR COLS[rip]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR LINES[rip]
	cdqe
	mov	edx, DWORD PTR -32[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
	add	DWORD PTR -32[rbp], 1
.L2:
	mov	eax, DWORD PTR COLS[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L3
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 312
	mov	rax, QWORD PTR [rax]
	add	rax, 120
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 320
	mov	rax, QWORD PTR [rax]
	add	rax, 120
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 328
	mov	rax, QWORD PTR [rax]
	add	rax, 120
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 312
	mov	rax, QWORD PTR [rax]
	sub	rax, -128
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 312
	mov	rax, QWORD PTR [rax]
	add	rax, 136
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 328
	mov	rax, QWORD PTR [rax]
	sub	rax, -128
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 328
	mov	rax, QWORD PTR [rax]
	add	rax, 136
	mov	DWORD PTR 4[rax], 1
	mov	edi, DWORD PTR ENDY[rip]
	mov	ecx, DWORD PTR ENDX[rip]
	mov	edx, DWORD PTR STARTY[rip]
	mov	esi, DWORD PTR STARTX[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	update_state
	mov	r8d, DWORD PTR ENDY[rip]
	mov	edi, DWORD PTR ENDX[rip]
	mov	ecx, DWORD PTR STARTY[rip]
	mov	edx, DWORD PTR STARTX[rip]
	mov	rax, QWORD PTR stdscr[rip]
	mov	rsi, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	display
	jmp	.L4
.L9:
	mov	eax, DWORD PTR STARTX[rip]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L5
.L8:
	mov	eax, DWORD PTR STARTY[rip]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L6
.L7:
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	calc
	add	DWORD PTR -28[rbp], 1
.L6:
	mov	eax, DWORD PTR ENDY[rip]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L7
	add	DWORD PTR -32[rbp], 1
.L5:
	mov	eax, DWORD PTR ENDX[rip]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L8
	mov	edi, DWORD PTR ENDY[rip]
	mov	ecx, DWORD PTR ENDX[rip]
	mov	edx, DWORD PTR STARTY[rip]
	mov	esi, DWORD PTR STARTX[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	update_state
	mov	r8d, DWORD PTR ENDY[rip]
	mov	edi, DWORD PTR ENDX[rip]
	mov	ecx, DWORD PTR STARTY[rip]
	mov	edx, DWORD PTR STARTX[rip]
	mov	rax, QWORD PTR stdscr[rip]
	mov	rsi, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	display
.L4:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	cmp	eax, 265
	jne	.L9
	call	endwin@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	display
	.type	display, @function
display:
.LFB1:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -44[rbp], r8d
	mov	DWORD PTR -48[rbp], r9d
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	wclear@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L12
.L17:
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 1
	jne	.L14
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 35
	mov	rdi, rax
	call	waddch@PLT
.L14:
	add	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jle	.L16
	add	DWORD PTR -8[rbp], 1
.L12:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L17
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	display, .-display
	.globl	calc
	.type	calc, @function
calc:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[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
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[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
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[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
	sal	rax, 3
	add	rax, rdi
	mov	eax, DWORD PTR [rax]
	lea	edi, [rsi+rax]
	mov	eax, DWORD PTR -28[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
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	lea	esi, [rdi+rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR COLS[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 -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	edi, [rsi+rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR COLS[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 -32[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
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	add	edi, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR COLS[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 -32[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	add	edi, eax
	mov	eax, DWORD PTR -28[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 -32[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
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	add	edi, eax
	mov	eax, DWORD PTR -28[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 -32[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR LINES[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	add	eax, edi
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -28[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 -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L19
	cmp	DWORD PTR -4[rbp], 2
	je	.L20
	cmp	DWORD PTR -4[rbp], 3
	jne	.L19
.L20:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L21
.L19:
	mov	eax, DWORD PTR -28[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 -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L21
	cmp	DWORD PTR -4[rbp], 3
	jne	.L21
	mov	DWORD PTR -8[rbp], 1
.L21:
	mov	eax, DWORD PTR -28[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 -32[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR 4[rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	calc, .-calc
	.globl	update_state
	.type	update_state, @function
update_state:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L23
.L26:
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -8[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 -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jle	.L25
	add	DWORD PTR -8[rbp], 1
.L23:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L26
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	update_state, .-update_state
	.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	"15234.c"
	.text
	.global	STARTX
	.bss
	.align	2
	.type	STARTX, %object
	.size	STARTX, 4
STARTX:
	.space	4
	.global	STARTY
	.align	2
	.type	STARTY, %object
	.size	STARTY, 4
STARTY:
	.space	4
	.global	ENDX
	.data
	.align	2
	.type	ENDX, %object
	.size	ENDX, 4
ENDX:
	.word	79
	.global	ENDY
	.align	2
	.type	ENDY, %object
	.size	ENDY, 4
ENDY:
	.word	24
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	bl	initscr
	bl	cbreak
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r1, #300
	mov	r0, r3
	bl	wtimeout
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	ldr	r3, .L11+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11+8
	str	r3, [r2]
	ldr	r3, .L11+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11+16
	str	r3, [r2]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	mov	r0, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	mov	r1, #8
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-16]
	add	r3, r3, #156
	ldr	r3, [r3]
	add	r3, r3, #120
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #160
	ldr	r3, [r3]
	add	r3, r3, #120
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #164
	ldr	r3, [r3]
	add	r3, r3, #120
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #156
	ldr	r3, [r3]
	add	r3, r3, #128
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #156
	ldr	r3, [r3]
	add	r3, r3, #136
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #164
	ldr	r3, [r3]
	add	r3, r3, #128
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #164
	ldr	r3, [r3]
	add	r3, r3, #136
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L11+20
	ldr	r1, [r3]
	ldr	r3, .L11+24
	ldr	r2, [r3]
	ldr	r3, .L11+8
	ldr	r0, [r3]
	ldr	r3, .L11+16
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-16]
	bl	update_state
	ldr	r3, .L11
	ldr	r0, [r3]
	ldr	r3, .L11+20
	ldr	r1, [r3]
	ldr	r3, .L11+24
	ldr	ip, [r3]
	ldr	r3, .L11+8
	ldr	r3, [r3]
	ldr	r2, .L11+16
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r1
	ldr	r1, [fp, #-16]
	bl	display
	b	.L4
.L9:
	ldr	r3, .L11+20
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L5
.L8:
	ldr	r3, .L11+24
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L6
.L7:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	calc
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L6:
	ldr	r3, .L11+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L5:
	ldr	r3, .L11+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L8
	ldr	r3, .L11+20
	ldr	r1, [r3]
	ldr	r3, .L11+24
	ldr	r2, [r3]
	ldr	r3, .L11+8
	ldr	r0, [r3]
	ldr	r3, .L11+16
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-16]
	bl	update_state
	ldr	r3, .L11
	ldr	r0, [r3]
	ldr	r3, .L11+20
	ldr	r1, [r3]
	ldr	r3, .L11+24
	ldr	ip, [r3]
	ldr	r3, .L11+8
	ldr	r3, [r3]
	ldr	r2, .L11+16
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r1
	ldr	r1, [fp, #-16]
	bl	display
.L4:
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	mov	r3, r0
	ldr	r2, .L11+28
	cmp	r3, r2
	bne	.L9
	bl	endwin
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	stdscr
	.word	COLS
	.word	ENDX
	.word	LINES
	.word	ENDY
	.word	STARTX
	.word	STARTY
	.word	265
	.size	main, .-main
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 8, 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	wclear
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	b	.L14
.L19:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-8]
	b	.L15
.L18:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L16
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L16
	mov	r1, #35
	ldr	r0, [fp, #-16]
	bl	waddch
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	ble	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L19
	ldr	r0, [fp, #-16]
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	display, .-display
	.global	__aeabi_idivmod
	.align	2
	.global	calc
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc, %function
calc:
	@ 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
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, .L24
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, .L24
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, .L24+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L24+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r5, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, .L24
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, .L24+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r5, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, .L24+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L24+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r5, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, .L24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, .L24+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r5, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, .L24+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L24+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r5, r3
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r5, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, .L24+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r5, r3
	ldr	r3, [r3]
	add	r3, r4, r3
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L21
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L22
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L21
.L22:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L23
.L21:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L23
	mov	r3, #1
	str	r3, [fp, #-20]
.L23:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	COLS
	.word	LINES
	.size	calc, .-calc
	.align	2
	.global	update_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_state, %function
update_state:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	b	.L27
.L30:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	b	.L28
.L29:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [r2, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L29
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L30
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	update_state, .-update_state
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
