	.file	"285586.c"
	.intel_syntax noprefix
	.text
	.globl	boardWidth
	.bss
	.align 4
	.type	boardWidth, @object
	.size	boardWidth, 4
boardWidth:
	.zero	4
	.globl	boardHeight
	.align 4
	.type	boardHeight, @object
	.size	boardHeight, 4
boardHeight:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Invalid arguments.\nUsage: %s <file-name containing initial data> <width> <height> <no. of generations to calculate>\nThe program will now exit.\n"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Invalid board width.\nPlease ensure that board width is an integer greater than or equal to zero, and less than or equal to %d.\nThe program will now exit.\n"
	.align 8
.LC3:
	.string	"Invalid board height.\nPlease ensure that board height is an integer greater than or equal to zero, and less than or equal to %d.\nThe program will now exit.\n"
	.align 8
.LC4:
	.string	"Invalid no. of generations to calculate.\nPlease ensure that The no. of generations to calculate is an integer greater than or equal tozero.\nThe program will now exit.\n"
	.align 8
.LC5:
	.string	"Memory allocation error.\nThe program will now exit.\n"
.LC6:
	.string	"The program will now exit.\n"
.LC7:
	.string	"Finished"
	.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	r15
	push	r14
	push	r13
	push	r12
	sub	rsp, 144
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 5
	je	.L2
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	DWORD PTR -112[rbp], -1
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR boardHeight[rip], eax
	mov	eax, DWORD PTR boardHeight[rip]
	mov	DWORD PTR boardWidth[rip], eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, boardWidth[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR boardWidth[rip]
	test	eax, eax
	js	.L3
	mov	eax, DWORD PTR boardWidth[rip]
	cmp	eax, 78
	jle	.L4
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 78
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rdx, boardHeight[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR boardHeight[rip]
	test	eax, eax
	js	.L5
	mov	eax, DWORD PTR boardHeight[rip]
	cmp	eax, 50
	jle	.L6
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 50
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rdx, -112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -112[rbp]
	test	eax, eax
	jns	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 167
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR boardWidth[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	cdqe
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], 0
	mov	eax, DWORD PTR boardWidth[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -80[rbp], rdx
	cdqe
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	mov	eax, DWORD PTR boardWidth[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	cdqe
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	mov	eax, DWORD PTR boardWidth[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -64[rbp], rdx
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	edx, DWORD PTR boardWidth[rip]
	mov	eax, DWORD PTR boardHeight[rip]
	imul	eax, edx
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR boardWidth[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	edx, DWORD PTR boardWidth[rip]
	mov	eax, DWORD PTR boardHeight[rip]
	imul	eax, edx
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	je	.L8
	cmp	QWORD PTR -104[rbp], 0
	jne	.L9
.L8:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 52
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
.L9:
	mov	edx, DWORD PTR boardWidth[rip]
	mov	eax, DWORD PTR boardHeight[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	readFileToBoard
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	DWORD PTR -108[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	printBoard
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	iterateBoard
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -104[rbp], rax
	add	DWORD PTR -108[rbp], 1
.L11:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -108[rbp], eax
	jle	.L12
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -40[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	add	rsp, 144
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC8:
	.string	"r"
	.align 8
.LC9:
	.string	"Error opening board configuration file.\nPlease ensure that the file exists.\n"
.LC10:
	.string	"%d%d"
	.align 8
.LC11:
	.string	"Co-ordinate outside board dimensions.\n"
	.text
	.globl	readFileToBoard
	.type	readFileToBoard, @function
readFileToBoard:
.LFB7:
	.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	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	ebx, DWORD PTR boardWidth[rip]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -48[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 76
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L22
.L16:
	lea	rdx, -52[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L18
.L21:
	lea	rdx, -32[rbp]
	lea	rax, -32[rbp]
	lea	rsi, 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR boardHeight[rip]
	cmp	edx, eax
	jge	.L19
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR boardWidth[rip]
	cmp	edx, eax
	jl	.L20
.L19:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L22
.L20:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	mov	DWORD PTR -52[rbp], eax
.L18:
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jg	.L21
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
.L22:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readFileToBoard, .-readFileToBoard
	.section	.rodata
.LC12:
	.string	"|%.*s|\n"
	.text
	.globl	printBoard
	.type	printBoard, @function
printBoard:
.LFB8:
	.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	ebx, DWORD PTR boardWidth[rip]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	call	printBorderRow
	mov	DWORD PTR -28[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR boardWidth[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L25:
	mov	eax, DWORD PTR boardHeight[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L26
	call	printBorderRow
	mov	DWORD PTR -28[rbp], 1
	jmp	.L27
.L28:
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -28[rbp], 1
.L27:
	cmp	DWORD PTR -28[rbp], 2
	jle	.L28
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printBoard, .-printBoard
	.globl	printBorderRow
	.type	printBorderRow, @function
printBorderRow:
.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	edi, 42
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L32:
	mov	edi, 45
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, DWORD PTR boardWidth[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L32
	mov	edi, 42
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printBorderRow, .-printBorderRow
	.globl	iterateBoard
	.type	iterateBoard, @function
iterateBoard:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	r12d, DWORD PTR boardWidth[rip]
	movsx	rax, r12d
	sub	rax, 1
	mov	QWORD PTR -40[rbp], rax
	movsx	rax, r12d
	mov	rcx, rax
	mov	ebx, 0
	mov	ebx, DWORD PTR boardWidth[rip]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -32[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L35
.L49:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L36
.L48:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	numberOfNeighbours
	cmp	eax, 2
	je	.L37
	cmp	eax, 3
	je	.L38
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 32
	jmp	.L39
.L37:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, r12d
	imul	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	cmp	eax, 88
	je	.L40
	cmp	eax, 88
	jg	.L41
	cmp	eax, 32
	je	.L42
	cmp	eax, 57
	je	.L40
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 32
	jmp	.L43
.L40:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 88
	jmp	.L43
.L41:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, r12d
	imul	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	nop
.L43:
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, r12d
	imul	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	cmp	eax, 88
	je	.L44
	cmp	eax, 88
	jg	.L45
	cmp	eax, 32
	je	.L46
	cmp	eax, 57
	je	.L44
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 48
	jmp	.L47
.L44:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 88
	jmp	.L47
.L45:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, r12d
	imul	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	nop
.L47:
	nop
.L39:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
.L36:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR boardWidth[rip]
	cmp	edx, eax
	jl	.L48
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
.L35:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR boardHeight[rip]
	cmp	edx, eax
	jl	.L49
	nop
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	iterateBoard, .-iterateBoard
	.globl	numberOfNeighbours
	.type	numberOfNeighbours, @function
numberOfNeighbours:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, DWORD PTR boardWidth[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -24[rbp], rdx
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	mov	DWORD PTR -28[rbp], 0
	mov	edx, DWORD PTR -44[rbp]
	test	edx, edx
	jle	.L52
	mov	edx, DWORD PTR -48[rbp]
	test	edx, edx
	jle	.L52
	mov	edx, DWORD PTR -44[rbp]
	sub	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	imul	rcx, rdx
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -48[rbp]
	sub	edx, 1
	movsx	rdx, edx
	movzx	edx, BYTE PTR [rcx+rdx]
	cmp	dl, 32
	je	.L52
	add	DWORD PTR -28[rbp], 1
.L52:
	mov	edx, DWORD PTR -44[rbp]
	test	edx, edx
	jle	.L53
	mov	edx, DWORD PTR -44[rbp]
	sub	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	imul	rcx, rdx
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -48[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR [rcx+rdx]
	cmp	dl, 32
	je	.L53
	add	DWORD PTR -28[rbp], 1
.L53:
	mov	edx, DWORD PTR -44[rbp]
	test	edx, edx
	jle	.L54
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR boardWidth[rip]
	sub	ecx, 1
	cmp	edx, ecx
	jge	.L54
	mov	edx, DWORD PTR -44[rbp]
	sub	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	imul	rcx, rdx
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -48[rbp]
	add	edx, 1
	movsx	rdx, edx
	movzx	edx, BYTE PTR [rcx+rdx]
	cmp	dl, 32
	je	.L54
	add	DWORD PTR -28[rbp], 1
.L54:
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR boardWidth[rip]
	sub	ecx, 1
	cmp	edx, ecx
	jge	.L55
	mov	edx, DWORD PTR -44[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	imul	rcx, rdx
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -48[rbp]
	add	edx, 1
	movsx	rdx, edx
	movzx	edx, BYTE PTR [rcx+rdx]
	cmp	dl, 32
	je	.L55
	add	DWORD PTR -28[rbp], 1
.L55:
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR boardWidth[rip]
	sub	ecx, 1
	cmp	edx, ecx
	jge	.L56
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR boardHeight[rip]
	sub	ecx, 1
	cmp	edx, ecx
	jge	.L56
	mov	edx, DWORD PTR -44[rbp]
	add	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	imul	rcx, rdx
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -48[rbp]
	add	edx, 1
	movsx	rdx, edx
	movzx	edx, BYTE PTR [rcx+rdx]
	cmp	dl, 32
	je	.L56
	add	DWORD PTR -28[rbp], 1
.L56:
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR boardHeight[rip]
	sub	ecx, 1
	cmp	edx, ecx
	jge	.L57
	mov	edx, DWORD PTR -44[rbp]
	add	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	imul	rcx, rdx
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -48[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR [rcx+rdx]
	cmp	dl, 32
	je	.L57
	add	DWORD PTR -28[rbp], 1
.L57:
	mov	edx, DWORD PTR -48[rbp]
	test	edx, edx
	jle	.L58
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR boardHeight[rip]
	sub	ecx, 1
	cmp	edx, ecx
	jge	.L58
	mov	edx, DWORD PTR -44[rbp]
	add	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	imul	rcx, rdx
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -48[rbp]
	sub	edx, 1
	movsx	rdx, edx
	movzx	edx, BYTE PTR [rcx+rdx]
	cmp	dl, 32
	je	.L58
	add	DWORD PTR -28[rbp], 1
.L58:
	mov	edx, DWORD PTR -48[rbp]
	test	edx, edx
	jle	.L59
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	je	.L59
	add	DWORD PTR -28[rbp], 1
.L59:
	mov	eax, DWORD PTR -28[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	numberOfNeighbours, .-numberOfNeighbours
	.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	"285586.c"
	.text
	.comm	boardWidth,4,4
	.comm	boardHeight,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid arguments.\012Usage: %s <file-name containi"
	.ascii	"ng initial data> <width> <height> <no. of generatio"
	.ascii	"ns to calculate>\012The program will now exit.\012\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Invalid board width.\012Please ensure that board wi"
	.ascii	"dth is an integer greater than or equal to zero, an"
	.ascii	"d less than or equal to %d.\012The program will now"
	.ascii	" exit.\012\000"
	.align	2
.LC3:
	.ascii	"Invalid board height.\012Please ensure that board h"
	.ascii	"eight is an integer greater than or equal to zero, "
	.ascii	"and less than or equal to %d.\012The program will n"
	.ascii	"ow exit.\012\000"
	.align	2
.LC4:
	.ascii	"Invalid no. of generations to calculate.\012Please "
	.ascii	"ensure that The no. of generations to calculate is "
	.ascii	"an integer greater than or equal tozero.\012The pro"
	.ascii	"gram will now exit.\012\000"
	.align	2
.LC5:
	.ascii	"Memory allocation error.\012The program will now ex"
	.ascii	"it.\012\000"
	.align	2
.LC6:
	.ascii	"The program will now exit.\012\000"
	.align	2
.LC7:
	.ascii	"Finished\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #5
	beq	.L2
	ldr	r3, .L15+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	mvn	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r2, .L15+12
	str	r3, [r2]
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, .L15+16
	str	r3, [r2]
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, .L15+16
	ldr	r1, .L15+20
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, .L15+16
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L3
	ldr	r3, .L15+16
	ldr	r3, [r3]
	cmp	r3, #78
	ble	.L4
.L3:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, #78
	ldr	r1, .L15+24
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-60]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r2, .L15+12
	ldr	r1, .L15+20
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, .L15+12
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L5
	ldr	r3, .L15+12
	ldr	r3, [r3]
	cmp	r3, #50
	ble	.L6
.L5:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, #50
	ldr	r1, .L15+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-60]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #48
	ldr	r1, .L15+20
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, #167
	mov	r1, #1
	ldr	r0, .L15+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	sub	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L15+16
	ldr	r3, [r3]
	sub	r2, r3, #1
	str	r2, [fp, #-28]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L15+16
	ldr	r3, [r3]
	sub	r2, r3, #1
	str	r2, [fp, #-24]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L15+16
	ldr	r3, [r3]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L15+16
	ldr	r3, [r3]
	ldr	r2, .L15+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, .L15+16
	ldr	r3, [r3]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L15+16
	ldr	r3, [r3]
	ldr	r2, .L15+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, #52
	mov	r1, #1
	ldr	r0, .L15+36
	bl	fwrite
.L9:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	ldr	r2, .L15+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r1, #32
	ldr	r0, [fp, #-36]
	bl	memset
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	readFileToBoard
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L15+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L10:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L11
.L12:
	ldr	r0, [fp, #-36]
	bl	printBoard
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	iterateBoard
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L11:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	ble	.L12
	ldr	r0, .L15+44
	bl	puts
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-40]
	bl	free
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	boardHeight
	.word	boardWidth
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
.LC9:
	.ascii	"r\000"
	.align	2
.LC10:
	.ascii	"Error opening board configuration file.\012Please e"
	.ascii	"nsure that the file exists.\012\000"
	.align	2
.LC11:
	.ascii	"%d%d\000"
	.align	2
.LC12:
	.ascii	"Co-ordinate outside board dimensions.\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readFileToBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	readFileToBoard, %function
readFileToBoard:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L26+4
	ldr	r4, [r3]
	sub	r3, r4, #1
	str	r3, [fp, #-32]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r1, .L26+8
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L26+12
	ldr	r3, [r3]
	mov	r2, #76
	mov	r1, #1
	ldr	r0, .L26+16
	bl	fwrite
	mov	r3, #0
	b	.L24
.L18:
	sub	r3, fp, #36
	mov	r2, r3
	ldr	r1, .L26+20
	ldr	r0, [fp, #-28]
	bl	__isoc99_fscanf
	b	.L20
.L23:
	sub	r1, fp, #24
	sub	r3, fp, #24
	add	r2, r3, #4
	mov	r3, r1
	ldr	r1, .L26+24
	ldr	r0, [fp, #-28]
	bl	__isoc99_fscanf
	ldr	r2, [fp, #-20]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L21
	ldr	r2, [fp, #-24]
	ldr	r3, .L26+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L22
.L21:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L26+32
	bl	fwrite
	mov	r3, #0
	b	.L24
.L22:
	ldr	r3, [fp, #-20]
	mov	r2, r4
	mul	r3, r2, r3
	ldr	r2, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	mov	r1, #48
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
.L20:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bgt	.L23
	ldr	r0, [fp, #-28]
	bl	fclose
	mov	r3, #1
.L24:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC13
	.word	boardWidth
	.word	.LC9
	.word	stderr
	.word	.LC10
	.word	.LC1
	.word	.LC11
	.word	boardHeight
	.word	.LC12
	.size	readFileToBoard, .-readFileToBoard
	.section	.rodata
	.align	2
.LC14:
	.ascii	"|%.*s|\012\000"
	.text
	.align	2
	.global	printBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	printBoard, %function
printBoard:
	@ 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]
	ldr	r3, .L34
	ldr	r4, [r3]
	sub	r3, r4, #1
	str	r3, [fp, #-16]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	bl	printBorderRow
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L29
.L30:
	ldr	r3, .L34
	ldr	r1, [r3]
	mov	r2, r4
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r0, .L34+4
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L29:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L30
	bl	printBorderRow
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L31
.L32:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L31:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	ble	.L32
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	boardWidth
	.word	.LC14
	.word	boardHeight
	.size	printBoard, .-printBoard
	.align	2
	.global	printBorderRow
	.syntax unified
	.arm
	.fpu softvfp
	.type	printBorderRow, %function
printBorderRow:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #42
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L38:
	mov	r0, #45
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L38
	mov	r0, #42
	bl	putchar
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	boardWidth
	.size	printBorderRow, .-printBorderRow
	.align	2
	.global	iterateBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	iterateBoard, %function
iterateBoard:
	@ 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, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L59
	ldr	r5, [r3]
	sub	r3, r5, #1
	str	r3, [fp, #-28]
	mov	r3, r5
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L59
	ldr	r4, [r3]
	sub	r3, r4, #1
	str	r3, [fp, #-24]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L43
.L57:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L44
.L56:
	sub	r3, fp, #20
	ldm	r3, {r1, r2}
	ldr	r0, [fp, #-32]
	bl	numberOfNeighbours
	mov	r3, r0
	cmp	r3, #2
	beq	.L45
	cmp	r3, #3
	beq	.L46
	ldr	r3, [fp, #-16]
	mov	r2, r4
	mul	r3, r2, r3
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	mov	r1, #32
	strb	r1, [r2, r3]
	b	.L47
.L45:
	ldr	r3, [fp, #-16]
	mov	r2, r5
	mul	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L48
	cmp	r3, #88
	bgt	.L49
	cmp	r3, #32
	beq	.L50
	cmp	r3, #57
	beq	.L48
	b	.L49
.L50:
	ldr	r3, [fp, #-16]
	mov	r2, r4
	mul	r3, r2, r3
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	mov	r1, #32
	strb	r1, [r2, r3]
	b	.L51
.L48:
	ldr	r3, [fp, #-16]
	mov	r2, r4
	mul	r3, r2, r3
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	mov	r1, #88
	strb	r1, [r2, r3]
	b	.L51
.L49:
	ldr	r3, [fp, #-16]
	mov	r2, r5
	mul	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldrb	r1, [r2, r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	mov	r2, r4
	mul	r3, r2, r3
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r1, r1, #1
	and	r1, r1, #255
	strb	r1, [r2, r3]
	nop
.L51:
	b	.L47
.L46:
	ldr	r3, [fp, #-16]
	mov	r2, r5
	mul	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L52
	cmp	r3, #88
	bgt	.L53
	cmp	r3, #32
	beq	.L54
	cmp	r3, #57
	beq	.L52
	b	.L53
.L54:
	ldr	r3, [fp, #-16]
	mov	r2, r4
	mul	r3, r2, r3
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	mov	r1, #48
	strb	r1, [r2, r3]
	b	.L55
.L52:
	ldr	r3, [fp, #-16]
	mov	r2, r4
	mul	r3, r2, r3
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	mov	r1, #88
	strb	r1, [r2, r3]
	b	.L55
.L53:
	ldr	r3, [fp, #-16]
	mov	r2, r5
	mul	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldrb	r1, [r2, r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	mov	r2, r4
	mul	r3, r2, r3
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r1, r1, #1
	and	r1, r1, #255
	strb	r1, [r2, r3]
	nop
.L55:
	nop
.L47:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L44:
	ldr	r2, [fp, #-20]
	ldr	r3, .L59
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L56
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L43:
	ldr	r2, [fp, #-16]
	ldr	r3, .L59+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L57
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L60:
	.align	2
.L59:
	.word	boardWidth
	.word	boardHeight
	.size	iterateBoard, .-iterateBoard
	.align	2
	.global	numberOfNeighbours
	.syntax unified
	.arm
	.fpu softvfp
	.type	numberOfNeighbours, %function
numberOfNeighbours:
	@ args = 0, 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]
	sub	r3, fp, #24
	stm	r3, {r1, r2}
	ldr	r3, .L71
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-8]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L62
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L62
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r2, ip
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L62
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L62:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L63
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r2, ip
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L63
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L63:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L64
	ldr	r2, [fp, #-24]
	ldr	r3, .L71
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L64
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r2, ip
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L64
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L64:
	ldr	r2, [fp, #-24]
	ldr	r3, .L71
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L65
	ldr	r3, [fp, #-20]
	mov	r2, ip
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L65
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L65:
	ldr	r2, [fp, #-24]
	ldr	r3, .L71
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L66
	ldr	r2, [fp, #-20]
	ldr	r3, .L71+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L66
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r2, ip
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L66
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L66:
	ldr	r2, [fp, #-20]
	ldr	r3, .L71+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L67
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r2, ip
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L67
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L67:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L68
	ldr	r2, [fp, #-20]
	ldr	r3, .L71+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L68
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r2, ip
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L68
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L68:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L69
	ldr	r3, [fp, #-20]
	mov	r2, ip
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L69
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L69:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L72:
	.align	2
.L71:
	.word	boardWidth
	.word	boardHeight
	.size	numberOfNeighbours, .-numberOfNeighbours
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
