	.file	"484971.c"
	.intel_syntax noprefix
	.text
	.globl	rndNumber
	.data
	.align 4
	.type	rndNumber, @object
	.size	rndNumber, 4
rndNumber:
	.long	8
	.globl	cells
	.bss
	.align 32
	.type	cells, @object
	.size	cells, 1500
cells:
	.zero	1500
	.globl	longestCellsState
	.align 32
	.type	longestCellsState, @object
	.size	longestCellsState, 1500
longestCellsState:
	.zero	1500
	.globl	maybeLongestCellsState
	.align 32
	.type	maybeLongestCellsState, @object
	.size	maybeLongestCellsState, 1500
maybeLongestCellsState:
	.zero	1500
	.globl	stateBefore
	.align 32
	.type	stateBefore, @object
	.size	stateBefore, 1500
stateBefore:
	.zero	1500
	.globl	stateBeforeBefore
	.align 32
	.type	stateBeforeBefore, @object
	.size	stateBeforeBefore, 1500
stateBeforeBefore:
	.zero	1500
	.globl	countRounds
	.align 4
	.type	countRounds, @object
	.size	countRounds, 4
countRounds:
	.zero	4
	.globl	countStates
	.align 4
	.type	countStates, @object
	.size	countStates, 4
countStates:
	.zero	4
	.globl	longestRound
	.align 4
	.type	longestRound, @object
	.size	longestRound, 4
longestRound:
	.zero	4
	.globl	outputString
	.align 32
	.type	outputString, @object
	.size	outputString, 1530
outputString:
	.zero	1530
	.text
	.globl	initialize_cells
	.type	initialize_cells, @function
initialize_cells:
.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	DWORD PTR -12[rbp], 0
	jmp	.L2
.L7:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, stateBefore[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, stateBeforeBefore[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	call	rand@PLT
	mov	ecx, DWORD PTR rndNumber[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	cmp	DWORD PTR -4[rbp], 0
	jle	.L4
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
.L5:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	lea	rcx, [rax+rsi]
	lea	rax, maybeLongestCellsState[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -8[rbp], 1
.L3:
	cmp	DWORD PTR -8[rbp], 49
	jle	.L6
	add	DWORD PTR -12[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 29
	jle	.L7
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	initialize_cells, .-initialize_cells
	.section	.rodata
.LC0:
	.string	"\033[2J\033[1;1H"
.LC1:
	.string	"States: %d Rounds %d \n"
.LC2:
	.string	"%s"
	.text
	.globl	display_cells
	.type	display_cells, @function
display_cells:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L9
.L14:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L11
	mov	eax, DWORD PTR -8[rbp]
	imul	edx, eax, 51
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, outputString[rip]
	mov	BYTE PTR [rax+rdx], 35
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -8[rbp]
	imul	edx, eax, 51
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, outputString[rip]
	mov	BYTE PTR [rax+rdx], 32
.L12:
	add	DWORD PTR -4[rbp], 1
.L10:
	cmp	DWORD PTR -4[rbp], 49
	jle	.L13
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, eax, 51
	add	eax, 50
	cdqe
	lea	rdx, outputString[rip]
	mov	BYTE PTR [rax+rdx], 10
	add	DWORD PTR -8[rbp], 1
.L9:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L14
	mov	edx, DWORD PTR countRounds[rip]
	mov	eax, DWORD PTR countStates[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, outputString[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	display_cells, .-display_cells
	.globl	countAlivedCells
	.type	countAlivedCells, @function
countAlivedCells:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L16
.L23:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L22:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	test	eax, eax
	js	.L18
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	test	eax, eax
	js	.L19
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L20
	add	DWORD PTR -12[rbp], 1
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	lea	rax, cells[rip+49]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 1
	jne	.L20
	add	DWORD PTR -12[rbp], 1
	jmp	.L20
.L18:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	test	eax, eax
	js	.L21
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, cells[rip+1450]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 1
	jne	.L20
	add	DWORD PTR -12[rbp], 1
	jmp	.L20
.L21:
	movzx	eax, BYTE PTR cells[rip+1499]
	cmp	al, 1
	jne	.L20
	add	DWORD PTR -12[rbp], 1
.L20:
	add	DWORD PTR -4[rbp], 1
.L17:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L22
	add	DWORD PTR -8[rbp], 1
.L16:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L23
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L24
	sub	DWORD PTR -12[rbp], 1
.L24:
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	countAlivedCells, .-countAlivedCells
	.globl	evolution_step
	.type	evolution_step, @function
evolution_step:
.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, 1552
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1544[rbp], 0
	jmp	.L27
.L30:
	mov	DWORD PTR -1540[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -1540[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1544[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 1520
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -1540[rbp], 1
.L28:
	cmp	DWORD PTR -1540[rbp], 49
	jle	.L29
	add	DWORD PTR -1544[rbp], 1
.L27:
	cmp	DWORD PTR -1544[rbp], 29
	jle	.L30
	mov	DWORD PTR -1536[rbp], 0
	jmp	.L31
.L39:
	mov	DWORD PTR -1532[rbp], 0
	jmp	.L32
.L38:
	mov	eax, DWORD PTR -1532[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1536[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L33
	mov	edx, DWORD PTR -1532[rbp]
	mov	eax, DWORD PTR -1536[rbp]
	mov	esi, edx
	mov	edi, eax
	call	countAlivedCells
	cmp	eax, 3
	jle	.L34
	mov	eax, DWORD PTR -1532[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1536[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 1520
	mov	BYTE PTR [rax], 0
	jmp	.L37
.L34:
	mov	edx, DWORD PTR -1532[rbp]
	mov	eax, DWORD PTR -1536[rbp]
	mov	esi, edx
	mov	edi, eax
	call	countAlivedCells
	cmp	eax, 1
	jle	.L36
	mov	edx, DWORD PTR -1532[rbp]
	mov	eax, DWORD PTR -1536[rbp]
	mov	esi, edx
	mov	edi, eax
	call	countAlivedCells
	cmp	eax, 3
	jg	.L36
	mov	eax, DWORD PTR -1532[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1536[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 1520
	mov	BYTE PTR [rax], 1
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -1532[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1536[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 1520
	mov	BYTE PTR [rax], 0
	jmp	.L37
.L33:
	mov	edx, DWORD PTR -1532[rbp]
	mov	eax, DWORD PTR -1536[rbp]
	mov	esi, edx
	mov	edi, eax
	call	countAlivedCells
	cmp	eax, 3
	jne	.L37
	mov	eax, DWORD PTR -1532[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1536[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 1520
	mov	BYTE PTR [rax], 1
.L37:
	add	DWORD PTR -1532[rbp], 1
.L32:
	cmp	DWORD PTR -1532[rbp], 49
	jle	.L38
	add	DWORD PTR -1536[rbp], 1
.L31:
	cmp	DWORD PTR -1536[rbp], 29
	jle	.L39
	mov	DWORD PTR -1528[rbp], 0
	jmp	.L40
.L43:
	mov	DWORD PTR -1524[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -1524[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1528[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 1520
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -1524[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -1528[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	lea	rcx, [rax+rsi]
	lea	rax, cells[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -1524[rbp], 1
.L41:
	cmp	DWORD PTR -1524[rbp], 49
	jle	.L42
	add	DWORD PTR -1528[rbp], 1
.L40:
	cmp	DWORD PTR -1528[rbp], 29
	jle	.L43
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	evolution_step, .-evolution_step
	.globl	count_cells
	.type	count_cells, @function
count_cells:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L46
.L50:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L47
.L49:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L48
	add	DWORD PTR -12[rbp], 1
.L48:
	add	DWORD PTR -4[rbp], 1
.L47:
	cmp	DWORD PTR -4[rbp], 49
	jle	.L49
	add	DWORD PTR -8[rbp], 1
.L46:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L50
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	count_cells, .-count_cells
	.globl	checkStableSystem
	.type	checkStableSystem, @function
checkStableSystem:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR countRounds[rip]
	test	eax, eax
	jne	.L53
	mov	DWORD PTR -32[rbp], 0
	jmp	.L54
.L57:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L55
.L56:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	lea	rcx, [rax+rsi]
	lea	rax, stateBeforeBefore[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -28[rbp], 1
.L55:
	cmp	DWORD PTR -28[rbp], 49
	jle	.L56
	add	DWORD PTR -32[rbp], 1
.L54:
	cmp	DWORD PTR -32[rbp], 29
	jle	.L57
	mov	eax, DWORD PTR countRounds[rip]
	add	eax, 1
	mov	DWORD PTR countRounds[rip], eax
	mov	eax, 0
	jmp	.L58
.L53:
	mov	eax, DWORD PTR countRounds[rip]
	cmp	eax, 1
	jne	.L59
	mov	DWORD PTR -24[rbp], 0
	jmp	.L60
.L63:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L61
.L62:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	lea	rcx, [rax+rsi]
	lea	rax, stateBefore[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -20[rbp], 1
.L61:
	cmp	DWORD PTR -20[rbp], 49
	jle	.L62
	add	DWORD PTR -24[rbp], 1
.L60:
	cmp	DWORD PTR -24[rbp], 29
	jle	.L63
	mov	eax, DWORD PTR countRounds[rip]
	add	eax, 1
	mov	DWORD PTR countRounds[rip], eax
	mov	eax, 0
	jmp	.L58
.L59:
	mov	eax, DWORD PTR countRounds[rip]
	cmp	eax, 1
	jle	.L64
	mov	DWORD PTR -16[rbp], 0
	jmp	.L65
.L73:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L66
.L72:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, stateBeforeBefore[rip]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rsi]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	je	.L67
	mov	eax, DWORD PTR countRounds[rip]
	add	eax, 1
	mov	DWORD PTR countRounds[rip], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L68
.L71:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L69
.L70:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, stateBefore[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	lea	rcx, [rax+rsi]
	lea	rax, stateBeforeBefore[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, cells[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	lea	rcx, [rax+rsi]
	lea	rax, stateBefore[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L69:
	cmp	DWORD PTR -4[rbp], 49
	jle	.L70
	add	DWORD PTR -8[rbp], 1
.L68:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L71
	mov	eax, 0
	jmp	.L58
.L67:
	add	DWORD PTR -12[rbp], 1
.L66:
	cmp	DWORD PTR -12[rbp], 49
	jle	.L72
	add	DWORD PTR -16[rbp], 1
.L65:
	cmp	DWORD PTR -16[rbp], 29
	jle	.L73
	mov	eax, 1
	jmp	.L58
.L64:
	mov	eax, 0
.L58:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	checkStableSystem, .-checkStableSystem
	.section	.rodata
.LC3:
	.string	"new longest road %d"
	.text
	.globl	saveLongestRound
	.type	saveLongestRound, @function
saveLongestRound:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR longestRound[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L75
	mov	DWORD PTR -8[rbp], 0
	jmp	.L76
.L79:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L77
.L78:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, maybeLongestCellsState[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	add	rax, rcx
	add	rax, rax
	lea	rcx, [rax+rsi]
	lea	rax, longestCellsState[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L77:
	cmp	DWORD PTR -4[rbp], 49
	jle	.L78
	add	DWORD PTR -8[rbp], 1
.L76:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L79
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR longestRound[rip], eax
	mov	eax, DWORD PTR longestRound[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L75:
	mov	eax, DWORD PTR countStates[rip]
	cmp	eax, 499
	jg	.L80
	mov	eax, 0
	jmp	.L81
.L80:
	mov	eax, 1
.L81:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	saveLongestRound, .-saveLongestRound
	.section	.rodata
.LC4:
	.string	"System unstable.."
.LC5:
	.string	"Press enter"
	.align 8
.LC6:
	.string	"longestRound is %d and states: %d"
.LC7:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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
.L100:
	mov	eax, 0
	call	initialize_cells
.L93:
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	display_cells
	mov	eax, 0
	call	count_cells
	test	eax, eax
	je	.L103
	mov	eax, 0
	call	evolution_step
	mov	eax, 0
	call	checkStableSystem
	test	eax, eax
	je	.L85
	mov	eax, DWORD PTR countStates[rip]
	add	eax, 1
	mov	DWORD PTR countStates[rip], eax
	jmp	.L84
.L85:
	mov	eax, DWORD PTR countRounds[rip]
	cmp	eax, 10000
	jle	.L93
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L87
.L92:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L88
.L91:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, maybeLongestCellsState[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L89
	mov	eax, DWORD PTR -16[rbp]
	imul	edx, eax, 51
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, outputString[rip]
	mov	BYTE PTR [rax+rdx], 35
	jmp	.L90
.L89:
	mov	eax, DWORD PTR -16[rbp]
	imul	edx, eax, 51
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, outputString[rip]
	mov	BYTE PTR [rax+rdx], 32
.L90:
	add	DWORD PTR -12[rbp], 1
.L88:
	cmp	DWORD PTR -12[rbp], 49
	jle	.L91
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, eax, 51
	add	eax, 50
	cdqe
	lea	rdx, outputString[rip]
	mov	BYTE PTR [rax+rdx], 10
	add	DWORD PTR -16[rbp], 1
.L87:
	cmp	DWORD PTR -16[rbp], 29
	jle	.L92
	lea	rsi, outputString[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L84
.L103:
	nop
.L84:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, DWORD PTR countRounds[rip]
	mov	edi, eax
	call	saveLongestRound
	test	eax, eax
	je	.L94
	mov	edx, DWORD PTR countStates[rip]
	mov	eax, DWORD PTR longestRound[rip]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L95
.L98:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L96
.L97:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rax+rcx]
	lea	rax, longestCellsState[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L96:
	cmp	DWORD PTR -4[rbp], 49
	jle	.L97
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L95:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L98
	jmp	.L102
.L94:
	mov	DWORD PTR countRounds[rip], 0
	jmp	.L100
.L102:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"484971.c"
	.text
	.global	rndNumber
	.data
	.align	2
	.type	rndNumber, %object
	.size	rndNumber, 4
rndNumber:
	.word	8
	.comm	cells,1500,4
	.comm	longestCellsState,1500,4
	.comm	maybeLongestCellsState,1500,4
	.comm	stateBefore,1500,4
	.comm	stateBeforeBefore,1500,4
	.global	countRounds
	.bss
	.align	2
	.type	countRounds, %object
	.size	countRounds, 4
countRounds:
	.space	4
	.global	countStates
	.align	2
	.type	countStates, %object
	.size	countStates, 4
countStates:
	.space	4
	.global	longestRound
	.align	2
	.type	longestRound, %object
	.size	longestRound, 4
longestRound:
	.space	4
	.comm	outputString,1530,4
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	initialize_cells
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_cells, %function
initialize_cells:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L7:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L3
.L6:
	ldr	r1, .L8
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, .L8+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	bl	rand
	mov	r2, r0
	ldr	r3, .L8+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L4
	ldr	r1, .L8+12
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L5
.L4:
	ldr	r1, .L8+12
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
.L5:
	ldr	r1, .L8+12
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, .L8+16
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #49
	ble	.L6
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #29
	ble	.L7
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	stateBefore
	.word	stateBeforeBefore
	.word	rndNumber
	.word	cells
	.word	maybeLongestCellsState
	.size	initialize_cells, .-initialize_cells
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[2J\033[1;1H\000"
	.align	2
.LC1:
	.ascii	"States: %d Rounds %d \012\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.text
	.align	2
	.global	display_cells
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_cells, %function
display_cells:
	@ 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	r0, .L17
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L16:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L15:
	ldr	r1, .L17+4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L13
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L17+8
	mov	r1, #35
	strb	r1, [r2, r3]
	b	.L14
.L13:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L17+8
	mov	r1, #32
	strb	r1, [r2, r3]
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	ble	.L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	add	r3, r3, #50
	ldr	r2, .L17+8
	mov	r1, #10
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L16
	ldr	r3, .L17+12
	ldr	r3, [r3]
	ldr	r2, .L17+16
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L17+20
	bl	printf
	ldr	r1, .L17+8
	ldr	r0, .L17+24
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	cells
	.word	outputString
	.word	countStates
	.word	countRounds
	.word	.LC1
	.word	.LC2
	.size	display_cells, .-display_cells
	.align	2
	.global	countAlivedCells
	.syntax unified
	.arm
	.fpu softvfp
	.type	countAlivedCells, %function
countAlivedCells:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L27:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L26:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #0
	blt	.L22
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	cmp	r3, #0
	blt	.L23
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	sub	r1, r3, #1
	ldr	r3, [fp, #-8]
	add	r1, r1, r3
	ldr	r0, .L30
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r0, r3
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L24
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L24
.L23:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r1, .L30
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	add	r3, r3, #49
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L24
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L24
.L22:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	cmp	r3, #0
	blt	.L25
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L30
	add	r3, r2, r3
	ldrb	r3, [r3, #1450]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L24
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L24
.L25:
	ldr	r3, .L30
	ldrb	r3, [r3, #1499]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L24
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L26
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L27
	ldr	r1, .L30
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L28
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	cells
	.size	countAlivedCells, .-countAlivedCells
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	evolution_step
	.syntax unified
	.arm
	.fpu softvfp
	.type	evolution_step, %function
evolution_step:
	@ args = 0, pretend = 0, frame = 1528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1520
	sub	sp, sp, #8
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1532]
	b	.L33
.L36:
	mov	r3, #0
	str	r3, [fp, #-1528]
	b	.L34
.L35:
	ldr	r2, [fp, #-1532]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-1528]
	add	r3, r2, r3
	sub	r3, r3, #1504
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1528]
	add	r3, r3, #1
	str	r3, [fp, #-1528]
.L34:
	ldr	r3, [fp, #-1528]
	cmp	r3, #49
	ble	.L35
	ldr	r3, [fp, #-1532]
	add	r3, r3, #1
	str	r3, [fp, #-1532]
.L33:
	ldr	r3, [fp, #-1532]
	cmp	r3, #29
	ble	.L36
	mov	r3, #0
	str	r3, [fp, #-1524]
	b	.L37
.L45:
	mov	r3, #0
	str	r3, [fp, #-1520]
	b	.L38
.L44:
	ldr	r1, .L51+4
	ldr	r2, [fp, #-1524]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-1520]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L39
	ldr	r1, [fp, #-1520]
	ldr	r0, [fp, #-1524]
	bl	countAlivedCells
	mov	r3, r0
	cmp	r3, #3
	ble	.L40
	ldr	r2, [fp, #-1524]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-1520]
	add	r3, r2, r3
	sub	r3, r3, #1504
	mov	r2, #0
	strb	r2, [r3]
	b	.L43
.L40:
	ldr	r1, [fp, #-1520]
	ldr	r0, [fp, #-1524]
	bl	countAlivedCells
	mov	r3, r0
	cmp	r3, #1
	ble	.L42
	ldr	r1, [fp, #-1520]
	ldr	r0, [fp, #-1524]
	bl	countAlivedCells
	mov	r3, r0
	cmp	r3, #3
	bgt	.L42
	ldr	r2, [fp, #-1524]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-1520]
	add	r3, r2, r3
	sub	r3, r3, #1504
	mov	r2, #1
	strb	r2, [r3]
	b	.L43
.L42:
	ldr	r2, [fp, #-1524]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-1520]
	add	r3, r2, r3
	sub	r3, r3, #1504
	mov	r2, #0
	strb	r2, [r3]
	b	.L43
.L39:
	ldr	r1, [fp, #-1520]
	ldr	r0, [fp, #-1524]
	bl	countAlivedCells
	mov	r3, r0
	cmp	r3, #3
	bne	.L43
	ldr	r2, [fp, #-1524]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-1520]
	add	r3, r2, r3
	sub	r3, r3, #1504
	mov	r2, #1
	strb	r2, [r3]
.L43:
	ldr	r3, [fp, #-1520]
	add	r3, r3, #1
	str	r3, [fp, #-1520]
.L38:
	ldr	r3, [fp, #-1520]
	cmp	r3, #49
	ble	.L44
	ldr	r3, [fp, #-1524]
	add	r3, r3, #1
	str	r3, [fp, #-1524]
.L37:
	ldr	r3, [fp, #-1524]
	cmp	r3, #29
	ble	.L45
	mov	r3, #0
	str	r3, [fp, #-1516]
	b	.L46
.L49:
	mov	r3, #0
	str	r3, [fp, #-1512]
	b	.L47
.L48:
	ldr	r2, [fp, #-1516]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-1512]
	add	r3, r2, r3
	sub	r3, r3, #1504
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, .L51+4
	ldr	r2, [fp, #-1516]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-1512]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-1512]
	add	r3, r3, #1
	str	r3, [fp, #-1512]
.L47:
	ldr	r3, [fp, #-1512]
	cmp	r3, #49
	ble	.L48
	ldr	r3, [fp, #-1516]
	add	r3, r3, #1
	str	r3, [fp, #-1516]
.L46:
	ldr	r3, [fp, #-1516]
	cmp	r3, #29
	ble	.L49
	nop
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC3
	.word	cells
	.size	evolution_step, .-evolution_step
	.align	2
	.global	count_cells
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_cells, %function
count_cells:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L54
.L58:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L55
.L57:
	ldr	r1, .L60
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L56:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L55:
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	ble	.L57
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L54:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L58
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L61:
	.align	2
.L60:
	.word	cells
	.size	count_cells, .-count_cells
	.align	2
	.global	checkStableSystem
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkStableSystem, %function
checkStableSystem:
	@ 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
	ldr	r3, .L84
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L63
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L64
.L67:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L65
.L66:
	ldr	r1, .L84+4
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, .L84+8
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L65:
	ldr	r3, [fp, #-32]
	cmp	r3, #49
	ble	.L66
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L64:
	ldr	r3, [fp, #-36]
	cmp	r3, #29
	ble	.L67
	ldr	r3, .L84
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L84
	str	r3, [r2]
	mov	r3, #0
	b	.L68
.L63:
	ldr	r3, .L84
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L69
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L70
.L73:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L71
.L72:
	ldr	r1, .L84+4
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, .L84+12
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L71:
	ldr	r3, [fp, #-24]
	cmp	r3, #49
	ble	.L72
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L70:
	ldr	r3, [fp, #-28]
	cmp	r3, #29
	ble	.L73
	ldr	r3, .L84
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L84
	str	r3, [r2]
	mov	r3, #0
	b	.L68
.L69:
	ldr	r3, .L84
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L74
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L75
.L83:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L76
.L82:
	ldr	r1, .L84+8
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r0, .L84+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r0, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	beq	.L77
	ldr	r3, .L84
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L84
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L78
.L81:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L79
.L80:
	ldr	r1, .L84+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, .L84+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r1, .L84+4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, .L84+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L79:
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	ble	.L80
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L78:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L81
	mov	r3, #0
	b	.L68
.L77:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L76:
	ldr	r3, [fp, #-16]
	cmp	r3, #49
	ble	.L82
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L75:
	ldr	r3, [fp, #-20]
	cmp	r3, #29
	ble	.L83
	mov	r3, #1
	b	.L68
.L74:
	mov	r3, #0
.L68:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L85:
	.align	2
.L84:
	.word	countRounds
	.word	cells
	.word	stateBeforeBefore
	.word	stateBefore
	.size	checkStableSystem, .-checkStableSystem
	.section	.rodata
	.align	2
.LC4:
	.ascii	"new longest road %d\000"
	.text
	.align	2
	.global	saveLongestRound
	.syntax unified
	.arm
	.fpu softvfp
	.type	saveLongestRound, %function
saveLongestRound:
	@ 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]
	ldr	r3, .L94
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L87
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L88
.L91:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L89
.L90:
	ldr	r1, .L94+4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r1, .L94+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L89:
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	ble	.L90
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L88:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L91
	ldr	r2, .L94
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r3, .L94
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L94+12
	bl	printf
.L87:
	ldr	r3, .L94+16
	ldr	r3, [r3]
	cmp	r3, #500
	bge	.L92
	mov	r3, #0
	b	.L93
.L92:
	mov	r3, #1
.L93:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L95:
	.align	2
.L94:
	.word	longestRound
	.word	maybeLongestCellsState
	.word	longestCellsState
	.word	.LC4
	.word	countStates
	.size	saveLongestRound, .-saveLongestRound
	.section	.rodata
	.align	2
.LC5:
	.ascii	"System unstable..\000"
	.align	2
.LC6:
	.ascii	"Press enter\000"
	.align	2
.LC7:
	.ascii	"longestRound is %d and states: %d\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
.L114:
	bl	initialize_cells
.L107:
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	display_cells
	bl	count_cells
	mov	r3, r0
	cmp	r3, #0
	beq	.L117
	bl	evolution_step
	bl	checkStableSystem
	mov	r3, r0
	cmp	r3, #0
	beq	.L99
	ldr	r3, .L118
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L118
	str	r3, [r2]
	b	.L98
.L99:
	ldr	r3, .L118+4
	ldr	r3, [r3]
	ldr	r2, .L118+8
	cmp	r3, r2
	ble	.L107
	ldr	r0, .L118+12
	bl	printf
	ldr	r0, .L118+16
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L101
.L106:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L102
.L105:
	ldr	r1, .L118+20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L103
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L118+24
	mov	r1, #35
	strb	r1, [r2, r3]
	b	.L104
.L103:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L118+24
	mov	r1, #32
	strb	r1, [r2, r3]
.L104:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L102:
	ldr	r3, [fp, #-16]
	cmp	r3, #49
	ble	.L105
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	add	r3, r3, #50
	ldr	r2, .L118+24
	mov	r1, #10
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L101:
	ldr	r3, [fp, #-20]
	cmp	r3, #29
	ble	.L106
	ldr	r1, .L118+24
	ldr	r0, .L118+28
	bl	printf
	b	.L98
.L117:
	nop
.L98:
	ldr	r0, .L118+32
	bl	printf
	bl	getchar
	ldr	r3, .L118+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	saveLongestRound
	mov	r3, r0
	cmp	r3, #0
	beq	.L108
	ldr	r3, .L118+36
	ldr	r3, [r3]
	ldr	r2, .L118
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L118+40
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L109
.L112:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L110
.L111:
	ldr	r1, .L118+44
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L118+48
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L110:
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	ble	.L111
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L109:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L112
	b	.L116
.L108:
	ldr	r3, .L118+4
	mov	r2, #0
	str	r2, [r3]
	b	.L114
.L116:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L119:
	.align	2
.L118:
	.word	countStates
	.word	countRounds
	.word	10000
	.word	.LC0
	.word	.LC5
	.word	maybeLongestCellsState
	.word	outputString
	.word	.LC2
	.word	.LC6
	.word	longestRound
	.word	.LC7
	.word	longestCellsState
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
