	.file	"414158.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"parse error"
	.text
	.globl	getCoord
	.type	getCoord, @function
getCoord:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	BYTE PTR -16[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L2
.L16:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	sete	al
	mov	BYTE PTR -33[rbp], al
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 119
	je	.L3
	cmp	eax, 119
	jg	.L4
	cmp	eax, 115
	je	.L5
	cmp	eax, 115
	jg	.L4
	cmp	eax, 101
	je	.L6
	cmp	eax, 110
	je	.L7
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 2
	mov	DWORD PTR -24[rbp], eax
	jmp	.L8
.L3:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 2
	mov	DWORD PTR -24[rbp], eax
	jmp	.L8
.L5:
	mov	edx, DWORD PTR -20[rbp]
	movzx	eax, BYTE PTR -33[rbp]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 101
	jne	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	mov	eax, -1
.L10:
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	add	QWORD PTR -32[rbp], 1
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -20[rbp]
	cmp	BYTE PTR -33[rbp], 0
	je	.L11
	mov	edx, 0
	jmp	.L12
.L11:
	mov	edx, -1
.L12:
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 101
	jne	.L13
	mov	eax, 1
	jmp	.L14
.L13:
	mov	eax, -1
.L14:
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	add	QWORD PTR -32[rbp], 1
	jmp	.L8
.L4:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	add	QWORD PTR -32[rbp], 1
.L2:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L15
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L16
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -12[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rdx, rcx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getCoord, .-getCoord
	.section	.rodata
.LC1:
	.string	"tileCount too low"
	.text
	.globl	insert
	.type	insert, @function
insert:
.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, 48
	mov	rcx, rdi
	mov	eax, esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cmp	edx, eax
	jne	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	jne	.L20
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	test	eax, eax
	setne	al
	xor	eax, 1
	movzx	eax, al
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	mov	BYTE PTR 8[rdx], al
	jmp	.L18
.L20:
	add	DWORD PTR -12[rbp], 1
.L19:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 48000[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L22
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 48000[rax]
	cmp	eax, 3999
	jbe	.L23
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 48000[rax]
	mov	rcx, QWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 48000[rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	DWORD PTR 48000[rdx], ecx
	mov	rcx, QWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 8
	mov	BYTE PTR [rax], 1
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insert, .-insert
	.globl	countBlack
	.type	countBlack, @function
countBlack:
.LFB8:
	.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 -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L26:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48000[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L26
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	countBlack, .-countBlack
	.globl	mutate
	.type	mutate, @function
mutate:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -45056[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3152
	mov	DWORD PTR -48196[rbp], edi
	mov	QWORD PTR -48208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48096[rbp], 2
	mov	DWORD PTR -48092[rbp], 0
	mov	DWORD PTR -48088[rbp], 0
	mov	DWORD PTR -48084[rbp], -2
	mov	DWORD PTR -48080[rbp], 0
	mov	DWORD PTR -48076[rbp], 0
	mov	DWORD PTR -48072[rbp], 1
	mov	DWORD PTR -48068[rbp], 1
	mov	DWORD PTR -48064[rbp], 0
	mov	DWORD PTR -48060[rbp], -1
	mov	DWORD PTR -48056[rbp], 1
	mov	DWORD PTR -48052[rbp], 0
	mov	DWORD PTR -48048[rbp], -1
	mov	DWORD PTR -48044[rbp], 0
	mov	DWORD PTR -48040[rbp], -1
	mov	DWORD PTR -48036[rbp], 1
	mov	DWORD PTR -48032[rbp], 0
	mov	DWORD PTR -48028[rbp], -1
	mov	DWORD PTR -48188[rbp], 0
	jmp	.L29
.L57:
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -48184[rbp], 0
	jmp	.L30
.L56:
	mov	eax, DWORD PTR -48184[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -48208[rbp]
	add	rax, rdx
	mov	QWORD PTR -48136[rbp], rax
	mov	DWORD PTR -48180[rbp], 0
	mov	DWORD PTR -48176[rbp], 0
	jmp	.L31
.L50:
	mov	rax, QWORD PTR -48136[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 48096
	mov	eax, DWORD PTR [rax]
	add	eax, ecx
	mov	DWORD PTR -48152[rbp], eax
	mov	rax, QWORD PTR -48136[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -48136[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	jne	.L32
	mov	eax, 1
	jmp	.L33
.L32:
	mov	eax, 2
.L33:
	movsx	rsi, eax
	mov	eax, DWORD PTR -48176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	mov	eax, DWORD PTR -48096[rbp+rax*4]
	add	eax, ecx
	mov	DWORD PTR -48148[rbp], eax
	mov	BYTE PTR -48190[rbp], 0
	mov	DWORD PTR -48172[rbp], 0
	jmp	.L34
.L36:
	mov	eax, DWORD PTR -48172[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -48208[rbp]
	add	rax, rdx
	mov	QWORD PTR -48120[rbp], rax
	mov	rax, QWORD PTR -48120[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -48152[rbp], eax
	jne	.L35
	mov	rax, QWORD PTR -48120[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -48148[rbp], eax
	jne	.L35
	mov	BYTE PTR -48190[rbp], 1
	mov	rax, QWORD PTR -48120[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	add	DWORD PTR -48180[rbp], eax
.L35:
	add	DWORD PTR -48172[rbp], 1
.L34:
	mov	rax, QWORD PTR -48208[rbp]
	mov	eax, DWORD PTR 48000[rax]
	cmp	DWORD PTR -48172[rbp], eax
	jl	.L36
	movzx	eax, BYTE PTR -48190[rbp]
	xor	eax, 1
	test	al, al
	je	.L37
	mov	BYTE PTR -48189[rbp], 0
	mov	DWORD PTR -48168[rbp], 0
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -48168[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 48016
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -48152[rbp], eax
	jne	.L39
	mov	eax, DWORD PTR -48168[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 48012
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -48148[rbp], eax
	jne	.L39
	mov	BYTE PTR -48189[rbp], 1
	jmp	.L40
.L39:
	add	DWORD PTR -48168[rbp], 1
.L38:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -48168[rbp], eax
	jl	.L41
.L40:
	movzx	eax, BYTE PTR -48189[rbp]
	xor	eax, 1
	test	al, al
	je	.L37
	mov	DWORD PTR -48164[rbp], 0
	mov	eax, DWORD PTR -48152[rbp]
	mov	DWORD PTR -48108[rbp], eax
	mov	eax, DWORD PTR -48148[rbp]
	mov	DWORD PTR -48104[rbp], eax
	mov	BYTE PTR -48100[rbp], 0
	mov	DWORD PTR -48160[rbp], 0
	jmp	.L42
.L48:
	mov	ecx, DWORD PTR -48108[rbp]
	mov	eax, DWORD PTR -48160[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 48096
	mov	eax, DWORD PTR [rax]
	add	eax, ecx
	mov	DWORD PTR -48144[rbp], eax
	mov	ecx, DWORD PTR -48104[rbp]
	mov	eax, DWORD PTR -48152[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L43
	mov	eax, 1
	jmp	.L44
.L43:
	mov	eax, 2
.L44:
	movsx	rsi, eax
	mov	eax, DWORD PTR -48160[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	mov	eax, DWORD PTR -48096[rbp+rax*4]
	add	eax, ecx
	mov	DWORD PTR -48140[rbp], eax
	mov	DWORD PTR -48156[rbp], 0
	jmp	.L45
.L47:
	mov	eax, DWORD PTR -48156[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -48208[rbp]
	add	rax, rdx
	mov	QWORD PTR -48128[rbp], rax
	mov	rax, QWORD PTR -48128[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -48144[rbp], eax
	jne	.L46
	mov	rax, QWORD PTR -48128[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -48140[rbp], eax
	jne	.L46
	mov	rax, QWORD PTR -48128[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	add	DWORD PTR -48164[rbp], eax
.L46:
	add	DWORD PTR -48156[rbp], 1
.L45:
	mov	rax, QWORD PTR -48208[rbp]
	mov	eax, DWORD PTR 48000[rax]
	cmp	DWORD PTR -48156[rbp], eax
	jl	.L47
	add	DWORD PTR -48160[rbp], 1
.L42:
	cmp	DWORD PTR -48160[rbp], 5
	jle	.L48
	cmp	DWORD PTR -48164[rbp], 2
	jne	.L37
	mov	BYTE PTR -48100[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 48016
	mov	rdx, QWORD PTR -48108[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -48100[rbp]
	mov	DWORD PTR 8[rax], edx
.L37:
	add	DWORD PTR -48176[rbp], 1
.L31:
	cmp	DWORD PTR -48176[rbp], 5
	jle	.L50
	mov	rax, QWORD PTR -48136[rbp]
	movzx	eax, BYTE PTR 8[rax]
	test	al, al
	je	.L51
	cmp	DWORD PTR -48180[rbp], 0
	je	.L52
	cmp	DWORD PTR -48180[rbp], 2
	jg	.L52
	mov	eax, 1
	jmp	.L53
.L52:
	mov	eax, 0
.L53:
	and	eax, 1
	jmp	.L54
.L51:
	cmp	DWORD PTR -48180[rbp], 2
	sete	al
.L54:
	test	al, al
	je	.L55
	mov	rax, QWORD PTR -48136[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR -48108[rbp], rdx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -48100[rbp], eax
	mov	BYTE PTR -48100[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 48016
	mov	rdx, QWORD PTR -48108[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -48100[rbp]
	mov	DWORD PTR 8[rax], edx
.L55:
	add	DWORD PTR -48184[rbp], 1
.L30:
	mov	rax, QWORD PTR -48208[rbp]
	mov	eax, DWORD PTR 48000[rax]
	cmp	DWORD PTR -48184[rbp], eax
	jl	.L56
	mov	rax, QWORD PTR -48208[rbp]
	mov	rcx, rax
	lea	rax, -48016[rbp]
	mov	edx, 48004
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	add	DWORD PTR -48188[rbp], 1
.L29:
	mov	eax, DWORD PTR -48188[rbp]
	cmp	eax, DWORD PTR -48196[rbp]
	jl	.L57
	mov	rax, QWORD PTR -48208[rbp]
	mov	rdi, rax
	call	countBlack
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	mutate, .-mutate
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"input24.txt"
.LC4:
	.string	"Part 1: %d\n"
.LC5:
	.string	"Part 2: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -45056[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 3264
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -48312[rbp], rax
	cmp	QWORD PTR -48312[rbp], 0
	je	.L61
	jmp	.L62
.L63:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	getCoord
	mov	QWORD PTR -48300[rbp], rax
	mov	eax, DWORD PTR -48292[rbp]
	and	eax, 0
	or	eax, edx
	mov	DWORD PTR -48292[rbp], eax
	lea	rdx, -48288[rbp]
	mov	rcx, QWORD PTR -48300[rbp]
	mov	eax, DWORD PTR -48292[rbp]
	mov	rdi, rcx
	mov	esi, eax
	call	insert
.L62:
	mov	rdx, QWORD PTR -48312[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L63
	mov	rax, QWORD PTR -48312[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -48288[rbp]
	mov	rdi, rax
	call	countBlack
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48288[rbp]
	mov	rsi, rax
	mov	edi, 100
	call	mutate
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L61:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"414158.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"parse error\000"
	.text
	.align	2
	.global	getCoord
	.syntax unified
	.arm
	.fpu softvfp
	.type	getCoord, %function
getCoord:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	b	.L2
.L17:
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #101
	cmp	r3, #18
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L4
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L9
.L4:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L9
.L6:
	ldr	r3, [fp, #-12]
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, #101
	bne	.L10
	mov	r2, #1
	b	.L11
.L10:
	mvn	r2, #0
.L11:
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L9
.L7:
	ldr	r3, [fp, #-12]
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L12
	mov	r2, #0
	b	.L13
.L12:
	mvn	r2, #0
.L13:
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, #101
	bne	.L14
	mov	r2, #1
	b	.L15
.L14:
	mvn	r2, #0
.L15:
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L9
.L3:
	ldr	r0, .L19
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L17
.L16:
	ldr	r3, [fp, #-32]
	mov	ip, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC1
	.size	getCoord, .-getCoord
	.section	.rodata
	.align	2
.LC2:
	.ascii	"tileCount too low\000"
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	sub	ip, fp, #24
	stm	ip, {r0, r1, r2}
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L25:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L23
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L23
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	eor	r3, r3, #1
	and	r3, r3, #255
	and	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #8]
	b	.L21
.L23:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-28]
	add	r3, r3, #45056
	ldr	r3, [r3, #2944]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-28]
	add	r3, r3, #45056
	ldr	r3, [r3, #2944]
	cmp	r3, #4000
	bcc	.L26
	ldr	r0, .L27
	bl	puts
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, [fp, #-28]
	add	r3, r3, #45056
	ldr	r2, [r3, #2944]
	ldr	r1, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	ip, r3
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-28]
	add	r3, r3, #45056
	ldr	r2, [r3, #2944]
	add	r3, r2, #1
	ldr	r1, [fp, #-28]
	add	r1, r1, #45056
	str	r3, [r1, #2944]
	ldr	r1, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #1
	strb	r2, [r3]
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC2
	.size	insert, .-insert
	.align	2
	.global	countBlack
	.syntax unified
	.arm
	.fpu softvfp
	.type	countBlack, %function
countBlack:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L31:
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-16]
	add	r3, r3, #45056
	ldr	r3, [r3, #2944]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L31
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	countBlack, .-countBlack
	.section	.rodata
	.align	2
.LC0:
	.word	2
	.word	0
	.word	0
	.word	-2
	.word	0
	.word	0
	.word	1
	.word	1
	.word	0
	.word	-1
	.word	1
	.word	0
	.word	-1
	.word	0
	.word	-1
	.word	1
	.word	0
	.word	-1
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mutate
	.syntax unified
	.arm
	.fpu softvfp
	.type	mutate, %function
mutate:
	@ args = 0, pretend = 0, frame = 48168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48128
	sub	sp, sp, #40
	sub	r3, fp, #45056
	sub	r3, r3, #4
	str	r0, [r3, #-3108]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	str	r1, [r3, #-3112]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, .L65+4
	sub	r3, r3, #3024
	mov	r1, r2
	mov	r2, #72
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3100]
	b	.L34
.L62:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	add	r3, r3, #40960
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #4088]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3096]
	b	.L35
.L61:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3096]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [r0, #-3112]
	add	r3, r2, r3
	str	r3, [r1, #-3064]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3092]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3088]
	b	.L36
.L55:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3064]
	ldr	r1, [r3]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3088]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	sub	r3, r3, #3024
	ldr	r3, [r3]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	add	r3, r1, r3
	str	r3, [r2, #-3060]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3064]
	ldr	r1, [r3, #4]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3064]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L37
	mov	r0, #1
	b	.L38
.L37:
	mov	r0, #2
.L38:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	ip, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3088]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r3, [r3, #-3024]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	add	r3, r1, r3
	str	r3, [r2, #-3056]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3, #-3102]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3084]
	b	.L39
.L41:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3084]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [r0, #-3112]
	add	r3, r2, r3
	str	r3, [r1, #-3040]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3040]
	ldr	r3, [r3]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3060]
	cmp	r2, r3
	bne	.L40
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3040]
	ldr	r3, [r3, #4]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3056]
	cmp	r2, r3
	bne	.L40
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, #1
	strb	r2, [r3, #-3102]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3040]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3092]
	add	r3, r3, r1
	str	r3, [r2, #-3092]
.L40:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3084]
	add	r3, r3, #1
	str	r3, [r2, #-3084]
.L39:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3112]
	add	r3, r3, #45056
	ldr	r3, [r3, #2944]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3084]
	cmp	r2, r3
	blt	.L41
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldrb	r3, [r3, #-3102]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L42
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3, #-3101]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3080]
	b	.L43
.L46:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3080]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #2944
	sub	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3060]
	cmp	r2, r3
	bne	.L44
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3080]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #2944
	sub	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3056]
	cmp	r2, r3
	bne	.L44
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, #1
	strb	r2, [r3, #-3101]
	b	.L45
.L44:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3080]
	add	r3, r3, #1
	str	r3, [r2, #-3080]
.L43:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	add	r3, r3, #40960
	ldr	r3, [r3, #4088]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3080]
	cmp	r2, r3
	blt	.L46
.L45:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldrb	r3, [r3, #-3101]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L42
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3076]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3060]
	str	r3, [r2, #-3036]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3056]
	str	r3, [r2, #-3032]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3, #-3028]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3072]
	b	.L47
.L53:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r1, [r3, #-3036]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3072]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	sub	r3, r3, #3024
	ldr	r3, [r3]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	add	r3, r1, r3
	str	r3, [r2, #-3052]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r1, [r3, #-3032]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3060]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L48
	mov	r0, #1
	b	.L49
.L48:
	mov	r0, #2
.L49:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	ip, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3072]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r3, [r3, #-3024]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	add	r3, r1, r3
	str	r3, [r2, #-3048]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3068]
	b	.L50
.L52:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3068]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [r0, #-3112]
	add	r3, r2, r3
	str	r3, [r1, #-3044]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3044]
	ldr	r3, [r3]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3052]
	cmp	r2, r3
	bne	.L51
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3044]
	ldr	r3, [r3, #4]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3048]
	cmp	r2, r3
	bne	.L51
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3044]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3076]
	add	r3, r3, r1
	str	r3, [r2, #-3076]
.L51:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3068]
	add	r3, r3, #1
	str	r3, [r2, #-3068]
.L50:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3112]
	add	r3, r3, #45056
	ldr	r3, [r3, #2944]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3068]
	cmp	r2, r3
	blt	.L52
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3072]
	add	r3, r3, #1
	str	r3, [r2, #-3072]
.L47:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3072]
	cmp	r3, #5
	ble	.L53
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3076]
	cmp	r3, #2
	bne	.L42
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, #1
	strb	r2, [r3, #-3028]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	add	r3, r3, #40960
	ldr	r2, [r3, #4088]
	add	r3, r2, #1
	sub	r1, fp, #45056
	sub	r1, r1, #4
	add	r1, r1, #40960
	str	r3, [r1, #4088]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #2944
	sub	r3, r3, #8
	sub	r2, fp, #45056
	sub	r2, r2, #4
	mov	ip, r3
	sub	r3, r2, #3024
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
.L42:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3088]
	add	r3, r3, #1
	str	r3, [r2, #-3088]
.L36:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3088]
	cmp	r3, #5
	ble	.L55
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3064]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L56
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3092]
	cmp	r3, #0
	beq	.L57
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3092]
	cmp	r3, #2
	bgt	.L57
	mov	r3, #1
	b	.L58
.L57:
	mov	r3, #0
.L58:
	and	r3, r3, #1
	and	r3, r3, #255
	b	.L59
.L56:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3092]
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L59:
	cmp	r3, #0
	beq	.L60
	sub	r3, fp, #45056
	sub	r3, r3, #4
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3064]
	sub	r3, r3, #3024
	sub	r3, r3, #12
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, #1
	strb	r2, [r3, #-3028]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	add	r3, r3, #40960
	ldr	r2, [r3, #4088]
	add	r3, r2, #1
	sub	r1, fp, #45056
	sub	r1, r1, #4
	add	r1, r1, #40960
	str	r3, [r1, #4088]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #2944
	sub	r3, r3, #8
	sub	r2, fp, #45056
	sub	r2, r2, #4
	mov	ip, r3
	sub	r3, r2, #3024
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
.L60:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3096]
	add	r3, r3, #1
	str	r3, [r2, #-3096]
.L35:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3112]
	add	r3, r3, #45056
	ldr	r3, [r3, #2944]
	sub	r2, fp, #45056
	sub	r2, r2, #4
	ldr	r2, [r2, #-3096]
	cmp	r2, r3
	blt	.L61
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r3, #-3112]
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r0, r2
	sub	r3, r3, #2944
	sub	r3, r3, #8
	ldr	r2, .L65+8
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r3, [r3, #-3100]
	add	r3, r3, #1
	str	r3, [r2, #-3100]
.L34:
	sub	r3, fp, #45056
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r2, [r2, #-3100]
	ldr	r3, [r3, #-3108]
	cmp	r2, r3
	blt	.L62
	sub	r3, fp, #45056
	sub	r3, r3, #4
	ldr	r0, [r3, #-3112]
	bl	countBlack
	mov	r3, r0
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC3
	.word	.LC0
	.word	48004
	.size	mutate, .-mutate
	.section	.rodata
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"input24.txt\000"
	.align	2
.LC6:
	.ascii	"Part 1: %d\012\000"
	.align	2
.LC7:
	.ascii	"Part 2: %d\012\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 = 48280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #48128
	sub	sp, sp, #156
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #45056
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L73+4
	ldr	r0, .L73+8
	bl	fopen
	str	r0, [r4, #-3224]
	sub	r3, fp, #45056
	sub	r3, r3, #12
	ldr	r3, [r3, #-3224]
	cmp	r3, #0
	beq	.L68
	b	.L69
.L70:
	sub	r3, fp, #45056
	sub	r3, r3, #12
	sub	r3, r3, #3216
	sub	r3, r3, #4
	sub	r2, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	getCoord
	sub	r3, fp, #48128
	sub	r3, r3, #12
	sub	r3, r3, #136
	sub	r2, fp, #45056
	sub	r2, r2, #12
	sub	r2, r2, #3216
	sub	r2, r2, #4
	ldm	r2, {r0, r1, r2}
	bl	insert
.L69:
	sub	r3, fp, #45056
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #272
	ldr	r2, [r2, #-3224]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	sub	r3, fp, #45056
	sub	r3, r3, #12
	ldr	r0, [r3, #-3224]
	bl	fclose
	sub	r3, fp, #48128
	sub	r3, r3, #12
	sub	r3, r3, #136
	mov	r0, r3
	bl	countBlack
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L73+12
	bl	printf
	sub	r3, fp, #48128
	sub	r3, r3, #12
	sub	r3, r3, #136
	mov	r1, r3
	mov	r0, #100
	bl	mutate
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L73+16
	bl	printf
.L68:
	mov	r3, #0
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L72
	bl	__stack_chk_fail
.L72:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC8
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
