	.file	"463024.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Game of Life\n\n"
	.align 8
.LC1:
	.string	"\n\nQ for quit. RETURN to continue."
	.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
	sub	rsp, 2032
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2020[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -2016[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	InitializeArray
.L4:
	lea	rdx, -1616[rbp]
	lea	rax, -2016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	CountNeighbours
	lea	rdx, -1616[rbp]
	lea	rax, -2016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	BuildNextGeneration
	add	DWORD PTR -2020[rbp], 1
	mov	edx, DWORD PTR -2020[rbp]
	lea	rax, -2016[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	UpdateDisplay
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	call	quit
	test	eax, eax
	jne	.L8
	jmp	.L4
.L8:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.string	"\nEnter starting setup. Type '.' for empty"
	.align 8
.LC3:
	.string	"\nand any other character for occupied."
.LC4:
	.string	"RETURN after each line.\n"
.LC5:
	.string	"Array size guide:\n"
.LC6:
	.string	"\n"
.LC7:
	.string	"%c"
	.align 8
.LC8:
	.string	"\n\nInput is complete. Press RETURN."
	.text
	.globl	InitializeArray
	.type	InitializeArray, @function
InitializeArray:
.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 -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L10
.L11:
	mov	edi, 94
	call	putchar@PLT
.L10:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	cmp	eax, 19
	jle	.L11
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L12
.L17:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L13
.L16:
	lea	rax, -17[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 46
	jne	.L14
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 46
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 42
.L15:
	add	DWORD PTR -12[rbp], 1
.L13:
	cmp	DWORD PTR -12[rbp], 19
	jle	.L16
	mov	eax, 0
	call	skipgarb
	add	DWORD PTR -16[rbp], 1
.L12:
	cmp	DWORD PTR -16[rbp], 19
	jle	.L17
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	skipgarb
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	InitializeArray, .-InitializeArray
	.globl	CountNeighbours
	.type	CountNeighbours, @function
CountNeighbours:
.LFB2:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 0
	jmp	.L20
.L23:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	mov	eax, 0
	call	numalive
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rbx+rdx*4], eax
	add	DWORD PTR -20[rbp], 1
.L21:
	cmp	DWORD PTR -20[rbp], 19
	jle	.L22
	add	DWORD PTR -24[rbp], 1
.L20:
	cmp	DWORD PTR -24[rbp], 19
	jle	.L23
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	CountNeighbours, .-CountNeighbours
	.globl	BuildNextGeneration
	.type	BuildNextGeneration, @function
BuildNextGeneration:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L25
.L32:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L26
.L31:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 42
	jne	.L27
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	sub	eax, 2
	cmp	eax, 1
	jbe	.L33
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 46
	jmp	.L29
.L27:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 3
	jne	.L34
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 42
	jmp	.L29
.L33:
	nop
	jmp	.L29
.L34:
	nop
.L29:
	add	DWORD PTR -4[rbp], 1
.L26:
	cmp	DWORD PTR -4[rbp], 19
	jle	.L31
	add	DWORD PTR -8[rbp], 1
.L25:
	cmp	DWORD PTR -8[rbp], 19
	jle	.L32
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	BuildNextGeneration, .-BuildNextGeneration
	.section	.rodata
.LC9:
	.string	"\n\nGeneration %d\n\n"
	.text
	.globl	UpdateDisplay
	.type	UpdateDisplay, @function
UpdateDisplay:
.LFB4:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L36
.L39:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L37:
	cmp	DWORD PTR -4[rbp], 19
	jle	.L38
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L36:
	cmp	DWORD PTR -8[rbp], 19
	jle	.L39
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	UpdateDisplay, .-UpdateDisplay
	.globl	numalive
	.type	numalive, @function
numalive:
.LFB5:
	.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 -4[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L41
.L45:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L42
.L44:
	cmp	DWORD PTR -12[rbp], 0
	js	.L43
	cmp	DWORD PTR -12[rbp], 19
	jg	.L43
	cmp	DWORD PTR -8[rbp], 0
	js	.L43
	cmp	DWORD PTR -8[rbp], 19
	jg	.L43
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 42
	jne	.L43
	add	DWORD PTR -4[rbp], 1
.L43:
	add	DWORD PTR -8[rbp], 1
.L42:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jle	.L44
	add	DWORD PTR -12[rbp], 1
.L41:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jle	.L45
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 42
	jne	.L46
	sub	DWORD PTR -4[rbp], 1
.L46:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	numalive, .-numalive
	.globl	quit
	.type	quit, @function
quit:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 10
	je	.L49
	mov	eax, 0
	call	skipgarb
.L49:
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	cmp	eax, 81
	je	.L50
	cmp	eax, 113
	jne	.L51
.L50:
	mov	eax, 1
	jmp	.L53
.L51:
	mov	eax, 0
.L53:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	quit, .-quit
	.globl	skipgarb
	.type	skipgarb, @function
skipgarb:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L56:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L56
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	skipgarb, .-skipgarb
	.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	"463024.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Game of Life\012\012\000"
	.align	2
.LC1:
	.ascii	"\012\012Q for quit. RETURN to continue.\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2008
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2000
	sub	sp, sp, #8
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2012]
	ldr	r0, .L9+4
	bl	puts
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	InitializeArray
.L4:
	sub	r2, fp, #1600
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	CountNeighbours
	sub	r2, fp, #1600
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	BuildNextGeneration
	ldr	r3, [fp, #-2012]
	add	r3, r3, #1
	str	r3, [fp, #-2012]
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2012]
	mov	r0, r3
	bl	UpdateDisplay
	ldr	r0, .L9+8
	bl	puts
	bl	quit
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	b	.L4
.L8:
	nop
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Enter starting setup. Type '.' for empty\000"
	.align	2
.LC4:
	.ascii	"\012and any other character for occupied.\000"
	.align	2
.LC5:
	.ascii	"RETURN after each line.\012\000"
	.align	2
.LC6:
	.ascii	"Array size guide:\012\000"
	.align	2
.LC7:
	.ascii	"\012\000"
	.align	2
.LC8:
	.ascii	"%c\000"
	.align	2
.LC9:
	.ascii	"\012\012Input is complete. Press RETURN.\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	InitializeArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitializeArray, %function
InitializeArray:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L21+4
	bl	printf
	ldr	r0, .L21+8
	bl	puts
	ldr	r0, .L21+12
	bl	puts
	ldr	r0, .L21+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L13:
	mov	r0, #94
	bl	putchar
.L12:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #19
	ble	.L13
	ldr	r0, .L21+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L14
.L19:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L18:
	sub	r3, fp, #17
	mov	r1, r3
	ldr	r0, .L21+24
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L16
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
	b	.L17
.L16:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	ble	.L18
	bl	skipgarb
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #19
	ble	.L19
	ldr	r0, .L21+28
	bl	printf
	bl	skipgarb
	nop
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC10
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	InitializeArray, .-InitializeArray
	.align	2
	.global	CountNeighbours
	.syntax unified
	.arm
	.fpu softvfp
	.type	CountNeighbours, %function
CountNeighbours:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L24
.L27:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L25
.L26:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r4, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	numalive
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r4, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L25:
	ldr	r3, [fp, #-16]
	cmp	r3, #19
	ble	.L26
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L24:
	ldr	r3, [fp, #-20]
	cmp	r3, #19
	ble	.L27
	nop
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	CountNeighbours, .-CountNeighbours
	.align	2
	.global	BuildNextGeneration
	.syntax unified
	.arm
	.fpu softvfp
	.type	BuildNextGeneration, %function
BuildNextGeneration:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L29
.L36:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L35:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L31
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	sub	r3, r3, #2
	cmp	r3, #1
	bls	.L37
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
	b	.L33
.L31:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #3
	bne	.L38
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
	b	.L33
.L37:
	nop
	b	.L33
.L38:
	nop
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L35
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L29:
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	ble	.L36
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	BuildNextGeneration, .-BuildNextGeneration
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012\012Generation %d\012\012\000"
	.text
	.align	2
	.global	UpdateDisplay
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateDisplay, %function
UpdateDisplay:
	@ 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]
	ldr	r1, [fp, #-20]
	ldr	r0, .L44
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L40
.L43:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L42:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L42
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L40:
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	ble	.L43
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC11
	.size	UpdateDisplay, .-UpdateDisplay
	.align	2
	.global	numalive
	.syntax unified
	.arm
	.fpu softvfp
	.type	numalive, %function
numalive:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L47
.L51:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L48
.L50:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L49
	ldr	r3, [fp, #-16]
	cmp	r3, #19
	bgt	.L49
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L49
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	bgt	.L49
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L49
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L48:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L50
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L47:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L51
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L52
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L52:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	numalive, .-numalive
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	quit
	.syntax unified
	.arm
	.fpu softvfp
	.type	quit, %function
quit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L61+4
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L55
	bl	skipgarb
.L55:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #81
	beq	.L56
	cmp	r3, #113
	bne	.L57
.L56:
	mov	r3, #1
	b	.L59
.L57:
	mov	r3, #0
.L59:
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC12
	.word	.LC8
	.size	quit, .-quit
	.align	2
	.global	skipgarb
	.syntax unified
	.arm
	.fpu softvfp
	.type	skipgarb, %function
skipgarb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L64:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L64
	nop
	mov	r0, r3
	pop	{fp, pc}
	.size	skipgarb, .-skipgarb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
