	.file	"977889.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"in22"
.LC2:
	.string	"Part1: %d\n"
.LC3:
	.string	"Part2: %d\n"
	.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
	sub	rsp, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	part1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	part2
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	part1
	.type	part1, @function
part1:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3344
	mov	QWORD PTR -7432[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -7408[rbp]
	mov	rax, QWORD PTR -7432[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read
	mov	QWORD PTR -7416[rbp], rax
	mov	rax, QWORD PTR -7416[rbp]
	mov	rdi, rax
	call	countAllPairs
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	part1, .-part1
	.globl	part2
	.type	part2, @function
part2:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -3428352[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1632
	mov	QWORD PTR -3429976[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -3429920[rbp]
	mov	rax, QWORD PTR -3429976[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read
	mov	QWORD PTR -3429928[rbp], rax
	mov	DWORD PTR -3429960[rbp], -1
	mov	DWORD PTR -3429956[rbp], -1
	mov	DWORD PTR -3429952[rbp], 0
	jmp	.L7
.L12:
	mov	DWORD PTR -3429948[rbp], 0
	jmp	.L8
.L11:
	mov	edx, DWORD PTR -3429948[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -3429952[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -3429928[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -3429952[rbp]
	mov	DWORD PTR -3429960[rbp], eax
	mov	eax, DWORD PTR -3429948[rbp]
	mov	DWORD PTR -3429956[rbp], eax
	jmp	.L10
.L9:
	add	DWORD PTR -3429948[rbp], 1
.L8:
	cmp	DWORD PTR -3429948[rbp], 24
	jle	.L11
	add	DWORD PTR -3429952[rbp], 1
.L7:
	cmp	DWORD PTR -3429952[rbp], 36
	jle	.L12
	nop
.L10:
	mov	DWORD PTR -3429944[rbp], -1
	mov	DWORD PTR -3429940[rbp], -1
	lea	rax, -3422512[rbp]
	mov	edx, 3422500
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -3429936[rbp], 0
	jmp	.L13
.L18:
	mov	DWORD PTR -3429932[rbp], 0
	jmp	.L14
.L17:
	mov	edx, DWORD PTR -3429932[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -3429936[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -3429928[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 100
	jle	.L15
	mov	eax, DWORD PTR -3429936[rbp]
	mov	DWORD PTR -3429944[rbp], eax
	mov	eax, DWORD PTR -3429932[rbp]
	mov	DWORD PTR -3429940[rbp], eax
	jmp	.L16
.L15:
	add	DWORD PTR -3429932[rbp], 1
.L14:
	cmp	DWORD PTR -3429932[rbp], 24
	jle	.L17
	add	DWORD PTR -3429936[rbp], 1
.L13:
	cmp	DWORD PTR -3429936[rbp], 36
	jle	.L18
	nop
.L16:
	lea	rdi, -3422512[rbp]
	mov	edx, DWORD PTR -3429956[rbp]
	mov	esi, DWORD PTR -3429960[rbp]
	mov	rax, QWORD PTR -3429928[rbp]
	sub	rsp, 8
	mov	ecx, DWORD PTR -3429940[rbp]
	push	rcx
	mov	ecx, DWORD PTR -3429944[rbp]
	push	rcx
	push	0
	mov	r9, rdi
	mov	r8d, 0
	mov	ecx, 36
	mov	rdi, rax
	call	countMoves
	add	rsp, 32
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	part2, .-part2
	.section	.rodata
.LC4:
	.string	"%*[^\n]\n%*[^\n]\n"
.LC5:
	.string	"PANIC\n"
	.align 8
.LC6:
	.string	"/dev/grid/node-x%*d-y%*d%*[ ]%*dT%*[ ]%dT%*[ ]%dT%*[ ]%*d%%\n%n"
.LC7:
	.string	"PANIC %d, %d (%d,%d)\n"
	.text
	.globl	read
	.type	read, @function
read:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
.L24:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L25
.L31:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L26
.L30:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rcx, 4[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rdx
	mov	rdx, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 2
	je	.L29
	mov	ecx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	edi, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
.L29:
	add	DWORD PTR -16[rbp], 1
.L26:
	cmp	DWORD PTR -16[rbp], 24
	jle	.L30
	add	DWORD PTR -20[rbp], 1
.L25:
	cmp	DWORD PTR -20[rbp], 36
	jle	.L31
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read, .-read
	.globl	countPairs
	.type	countPairs, @function
countPairs:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L35
	mov	eax, 0
	jmp	.L36
.L35:
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L37
.L42:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L39
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	je	.L40
.L39:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	ecx, eax
	jg	.L40
	add	DWORD PTR -12[rbp], 1
.L40:
	add	DWORD PTR -4[rbp], 1
.L38:
	cmp	DWORD PTR -4[rbp], 24
	jle	.L41
	add	DWORD PTR -8[rbp], 1
.L37:
	cmp	DWORD PTR -8[rbp], 36
	jle	.L42
	mov	eax, DWORD PTR -12[rbp]
.L36:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	countPairs, .-countPairs
	.globl	countAllPairs
	.type	countAllPairs, @function
countAllPairs:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L44
.L47:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L45
.L46:
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	countPairs
	add	DWORD PTR -12[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L45:
	cmp	DWORD PTR -4[rbp], 24
	jle	.L46
	add	DWORD PTR -8[rbp], 1
.L44:
	cmp	DWORD PTR -8[rbp], 36
	jle	.L47
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	countAllPairs, .-countAllPairs
	.section	.rodata
.LC8:
	.string	"Overflow!"
	.text
	.globl	countMoves
	.type	countMoves, @function
countMoves:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	DWORD PTR -52[rbp], ecx
	mov	DWORD PTR -56[rbp], r8d
	mov	QWORD PTR -64[rbp], r9
	cmp	DWORD PTR 16[rbp], 9999
	jle	.L50
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L51
.L50:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L52
	cmp	DWORD PTR -56[rbp], 0
	jne	.L52
	mov	eax, 0
	jmp	.L51
.L52:
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, eax, 925
	add	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, eax, 34225
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L53
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, eax, 925
	add	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, eax, 34225
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	jmp	.L51
.L53:
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 100
	jg	.L54
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 100
	jle	.L55
.L54:
	mov	eax, -1
	jmp	.L51
.L55:
	cmp	DWORD PTR -56[rbp], 0
	jle	.L56
	mov	eax, -1
	jmp	.L51
.L56:
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, eax, 925
	add	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, eax, 34225
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	DWORD PTR -24[rbp], 1073741824
	mov	DWORD PTR -20[rbp], 0
	cmp	DWORD PTR -44[rbp], 0
	jle	.L57
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	cmp	DWORD PTR -52[rbp], eax
	jne	.L58
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	je	.L57
.L58:
	mov	eax, DWORD PTR 32[rbp]
	add	eax, 1
	cmp	DWORD PTR -48[rbp], eax
	jne	.L59
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR 24[rbp]
	jge	.L60
.L59:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L57
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	cmp	DWORD PTR -48[rbp], eax
	jne	.L57
.L60:
	mov	eax, DWORD PTR 16[rbp]
	lea	r8d, 1[rax]
	mov	eax, DWORD PTR -44[rbp]
	lea	esi, -1[rax]
	mov	r9, QWORD PTR -64[rbp]
	mov	r10d, DWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	mov	edi, DWORD PTR 32[rbp]
	push	rdi
	mov	edi, DWORD PTR 24[rbp]
	push	rdi
	push	r8
	mov	r8d, r10d
	mov	rdi, rax
	call	countMoves
	add	rsp, 32
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L61
	cmp	DWORD PTR -16[rbp], 0
	js	.L61
	mov	eax, 1
	jmp	.L62
.L61:
	mov	eax, 0
.L62:
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	js	.L57
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jle	.L57
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
.L57:
	cmp	DWORD PTR -48[rbp], 0
	jle	.L63
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	cmp	DWORD PTR -56[rbp], eax
	jne	.L64
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	je	.L63
.L64:
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	cmp	DWORD PTR -48[rbp], eax
	jg	.L65
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	cmp	DWORD PTR -48[rbp], eax
	jne	.L63
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L63
.L65:
	mov	eax, DWORD PTR 16[rbp]
	lea	r8d, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	lea	edi, -1[rax]
	mov	r9, QWORD PTR -64[rbp]
	mov	r10d, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	mov	ecx, DWORD PTR 32[rbp]
	push	rcx
	mov	ecx, DWORD PTR 24[rbp]
	push	rcx
	push	r8
	mov	r8d, r10d
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	countMoves
	add	rsp, 32
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L66
	cmp	DWORD PTR -12[rbp], 0
	js	.L66
	mov	eax, 1
	jmp	.L67
.L66:
	mov	eax, 0
.L67:
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L63
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jle	.L63
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
.L63:
	cmp	DWORD PTR -44[rbp], 35
	jg	.L68
	cmp	DWORD PTR -48[rbp], 0
	jne	.L68
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jge	.L68
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jne	.L68
	mov	eax, DWORD PTR 16[rbp]
	lea	r8d, 1[rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	cmp	DWORD PTR -52[rbp], eax
	jne	.L69
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jne	.L69
	mov	eax, DWORD PTR -44[rbp]
	jmp	.L70
.L69:
	mov	eax, DWORD PTR -52[rbp]
.L70:
	mov	edx, DWORD PTR -44[rbp]
	lea	esi, 1[rdx]
	mov	r9, QWORD PTR -64[rbp]
	mov	r10d, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	rdi, QWORD PTR -40[rbp]
	sub	rsp, 8
	mov	ecx, DWORD PTR 32[rbp]
	push	rcx
	mov	ecx, DWORD PTR 24[rbp]
	push	rcx
	push	r8
	mov	r8d, r10d
	mov	ecx, eax
	call	countMoves
	add	rsp, 32
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L71
	cmp	DWORD PTR -8[rbp], 0
	js	.L71
	mov	eax, 1
	jmp	.L72
.L71:
	mov	eax, 0
.L72:
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L68
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jle	.L68
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
.L68:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L73
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	cmp	DWORD PTR -56[rbp], eax
	jne	.L74
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	je	.L73
.L74:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	cmp	DWORD PTR -44[rbp], eax
	jne	.L73
	mov	eax, DWORD PTR 16[rbp]
	lea	r8d, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	lea	edi, 1[rax]
	mov	r9, QWORD PTR -64[rbp]
	mov	r10d, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	mov	ecx, DWORD PTR 32[rbp]
	push	rcx
	mov	ecx, DWORD PTR 24[rbp]
	push	rcx
	push	r8
	mov	r8d, r10d
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	countMoves
	add	rsp, 32
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L75
	cmp	DWORD PTR -4[rbp], 0
	js	.L75
	mov	eax, 1
	jmp	.L76
.L75:
	mov	eax, 0
.L76:
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L73
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jle	.L73
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
.L73:
	cmp	DWORD PTR -20[rbp], 0
	je	.L77
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, eax, 925
	add	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, eax, 34225
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L78
.L77:
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, eax, 925
	add	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, eax, 34225
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L78:
	mov	eax, DWORD PTR -24[rbp]
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	countMoves, .-countMoves
	.globl	print
	.type	print, @function
print:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	DWORD PTR -8[rbp], 0
	jmp	.L80
.L91:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L81
.L90:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L82
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	je	.L83
.L82:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jne	.L84
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	je	.L85
.L84:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	sal	eax, 2
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 100
	jle	.L86
	mov	eax, 35
	jmp	.L88
.L86:
	mov	eax, 46
	jmp	.L88
.L85:
	mov	eax, 33
	jmp	.L89
.L88:
	jmp	.L89
.L83:
	mov	eax, 95
.L89:
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L81:
	cmp	DWORD PTR -4[rbp], 36
	jle	.L90
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L80:
	cmp	DWORD PTR -8[rbp], 24
	jle	.L91
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	print, .-print
	.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	"977889.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"in22\000"
	.align	2
.LC2:
	.ascii	"Part1: %d\012\000"
	.align	2
.LC3:
	.ascii	"Part2: %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r1, .L3
	ldr	r0, .L3+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	part1
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L3+8
	bl	printf
	ldr	r0, [fp, #-8]
	bl	rewind
	ldr	r0, [fp, #-8]
	bl	part2
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L3+12
	bl	printf
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	part1
	.syntax unified
	.arm
	.fpu softvfp
	.type	part1, %function
part1:
	@ args = 0, pretend = 0, frame = 7416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #7360
	sub	sp, sp, #60
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-3316]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #7360
	sub	r3, r3, #12
	sub	r3, r3, #44
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-3316]
	bl	read
	str	r0, [r4, #-3312]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-3312]
	bl	countAllPairs
	mov	r3, r0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.size	part1, .-part1
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	part2
	.syntax unified
	.arm
	.fpu softvfp
	.type	part2, %function
part2:
	@ args = 0, pretend = 0, frame = 3429952
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #3424256
	sub	sp, sp, #5696
	sub	sp, sp, #28
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	str	r0, [r3, #-1596]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r4, r3
	ldr	r3, .L25+4
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #3424256
	sub	r2, r2, #12
	sub	r2, r2, #4096
	mov	r1, r3
	ldr	r0, [r2, #-1596]
	bl	read
	str	r0, [r4, #-1556]
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-1588]
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-1584]
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1580]
	b	.L11
.L16:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1576]
	b	.L12
.L15:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r2, [r3, #-1576]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1580]
	add	r3, r2, r3
	lsl	r2, r3, #3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1556]
	add	r3, r3, r2
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1580]
	str	r3, [r2, #-1588]
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1576]
	str	r3, [r2, #-1584]
	b	.L14
.L13:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1576]
	add	r3, r3, #1
	str	r3, [r2, #-1576]
.L12:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1576]
	cmp	r3, #24
	ble	.L15
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1580]
	add	r3, r3, #1
	str	r3, [r2, #-1580]
.L11:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1580]
	cmp	r3, #36
	ble	.L16
	nop
.L14:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-1572]
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-1568]
	sub	r3, fp, #3407872
	sub	r3, r3, #12
	sub	r3, r3, #12288
	sub	r3, r3, #2336
	sub	r3, r3, #8
	ldr	r2, .L25+8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1564]
	b	.L17
.L22:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1560]
	b	.L18
.L21:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r2, [r3, #-1560]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1564]
	add	r3, r2, r3
	lsl	r2, r3, #3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1556]
	add	r3, r3, r2
	ldr	r3, [r3]
	cmp	r3, #100
	ble	.L19
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1564]
	str	r3, [r2, #-1572]
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1560]
	str	r3, [r2, #-1568]
	b	.L20
.L19:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1560]
	add	r3, r3, #1
	str	r3, [r2, #-1560]
.L18:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1560]
	cmp	r3, #24
	ble	.L21
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1564]
	add	r3, r3, #1
	str	r3, [r2, #-1564]
.L17:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1564]
	cmp	r3, #36
	ble	.L22
	nop
.L20:
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r1, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r0, r3
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1568]
	str	r3, [sp, #16]
	sub	r3, fp, #3424256
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1572]
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	ldr	r3, .L25+12
	sub	ip, fp, #12
	add	r3, ip, r3
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #36
	ldr	r2, [r2, #-1584]
	ldr	r1, [r1, #-1588]
	ldr	r0, [r0, #-1556]
	bl	countMoves
	mov	r3, r0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	-3429904
	.word	3422500
	.word	-3422504
	.size	part2, .-part2
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%*[^\012]\012%*[^\012]\012\000"
	.align	2
.LC7:
	.ascii	"PANIC\012\000"
	.align	2
.LC8:
	.ascii	"/dev/grid/node-x%*d-y%*d%*[ ]%*dT%*[ ]%dT%*[ ]%dT%*"
	.ascii	"[ ]%*d%%\012%n\000"
	.align	2
.LC9:
	.ascii	"PANIC %d, %d (%d,%d)\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read
	.syntax unified
	.arm
	.fpu softvfp
	.type	read, %function
read:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L40+4
	ldr	r0, [fp, #-32]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L40+8
	ldr	r3, [r3]
	ldr	r1, .L40+12
	mov	r0, r3
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
.L30:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L31
.L37:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L32
.L36:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	add	r2, r3, #4
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L40+16
	ldr	r0, [fp, #-32]
	bl	__isoc99_fscanf
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	beq	.L35
	ldr	r3, .L40+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-12]
	ldr	r1, .L40+20
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
.L35:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L32:
	ldr	r3, [fp, #-16]
	cmp	r3, #24
	ble	.L36
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L31:
	ldr	r3, [fp, #-20]
	cmp	r3, #36
	ble	.L37
	ldr	r3, [fp, #-36]
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC10
	.word	.LC6
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	read, .-read
	.align	2
	.global	countPairs
	.syntax unified
	.arm
	.fpu softvfp
	.type	countPairs, %function
countPairs:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L43
	mov	r3, #0
	b	.L44
.L43:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L45
.L50:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L46
.L49:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L47
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L48
.L47:
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r1, r3
	bgt	.L48
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L48:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L46:
	ldr	r3, [fp, #-8]
	cmp	r3, #24
	ble	.L49
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L45:
	ldr	r3, [fp, #-12]
	cmp	r3, #36
	ble	.L50
	ldr	r3, [fp, #-16]
.L44:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	countPairs, .-countPairs
	.align	2
	.global	countAllPairs
	.syntax unified
	.arm
	.fpu softvfp
	.type	countAllPairs, %function
countAllPairs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L52
.L55:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L53
.L54:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	countPairs
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L53:
	ldr	r3, [fp, #-8]
	cmp	r3, #24
	ble	.L54
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L52:
	ldr	r3, [fp, #-12]
	cmp	r3, #36
	ble	.L55
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	countAllPairs, .-countAllPairs
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Overflow!\000"
	.text
	.align	2
	.global	countMoves
	.syntax unified
	.arm
	.fpu softvfp
	.type	countMoves, %function
countMoves:
	@ args = 20, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #12]
	ldr	r2, .L87
	cmp	r3, r2
	ble	.L58
	ldr	r0, .L87+4
	bl	puts
	mvn	r3, #0
	b	.L59
.L58:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L60
	mov	r3, #0
	b	.L59
.L60:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r1, r2, r3
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r0, r3, #5
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r0, r1, r3
	ldr	r1, [fp, #4]
	mov	r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r2, r3, #5
	sub	r2, r2, r3
	lsl	r2, r2, #4
	add	r3, r2, r1
	add	r3, r0, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L61
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r1, r2, r3
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r0, r3, #5
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r0, r1, r3
	ldr	r1, [fp, #4]
	mov	r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r2, r3, #5
	sub	r2, r2, r3
	lsl	r2, r2, #4
	add	r3, r2, r1
	add	r3, r0, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L59
.L61:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #100
	bgt	.L62
	ldr	r2, [fp, #4]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #100
	ble	.L63
.L62:
	mvn	r3, #0
	b	.L59
.L63:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	ble	.L64
	mvn	r3, #0
	b	.L59
.L64:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r1, r2, r3
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r0, r3, #5
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r0, r1, r3
	ldr	r1, [fp, #4]
	mov	r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r2, r3, #5
	sub	r2, r2, r3
	lsl	r2, r2, #4
	add	r3, r2, r1
	add	r3, r0, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	mov	r3, #1073741824
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L65
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L66
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	beq	.L65
.L66:
	ldr	r3, [fp, #20]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L67
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #16]
	cmp	r2, r3
	bge	.L68
.L67:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L65
	ldr	r3, [fp, #4]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L65
.L68:
	ldr	r3, [fp, #-36]
	sub	r1, r3, #1
	ldr	r3, [fp, #12]
	add	r3, r3, #1
	ldr	r2, [fp, #20]
	str	r2, [sp, #16]
	ldr	r2, [fp, #16]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	countMoves
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L69
	mov	r3, #1
	b	.L70
.L69:
	mov	r3, #0
.L70:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L65
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L65
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L65:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	ble	.L71
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	ldr	r2, [fp, #4]
	cmp	r2, r3
	bne	.L72
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	beq	.L71
.L72:
	ldr	r3, [fp, #4]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bgt	.L73
	ldr	r3, [fp, #4]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L71
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L71
.L73:
	ldr	r3, [fp, #-40]
	sub	r1, r3, #1
	ldr	r3, [fp, #12]
	add	r3, r3, #1
	ldr	r2, [fp, #20]
	str	r2, [sp, #16]
	ldr	r2, [fp, #16]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	mov	r2, r1
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	countMoves
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L74
	mov	r3, #1
	b	.L75
.L74:
	mov	r3, #0
.L75:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L71
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L71
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L71:
	ldr	r3, [fp, #-36]
	cmp	r3, #35
	bgt	.L76
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L76
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bge	.L76
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bne	.L76
	ldr	r3, [fp, #-36]
	add	r0, r3, #1
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L77
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bne	.L77
	ldr	r3, [fp, #-36]
	b	.L78
.L77:
	ldr	r3, [fp, #-44]
.L78:
	ldr	r2, [fp, #12]
	add	r2, r2, #1
	ldr	r1, [fp, #20]
	str	r1, [sp, #16]
	ldr	r1, [fp, #16]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	ldr	r2, [fp, #8]
	str	r2, [sp, #4]
	ldr	r2, [fp, #4]
	str	r2, [sp]
	ldr	r2, [fp, #-40]
	mov	r1, r0
	ldr	r0, [fp, #-32]
	bl	countMoves
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L79
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L79
	mov	r3, #1
	b	.L80
.L79:
	mov	r3, #0
.L80:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L76
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L76
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L76:
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L81
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldr	r2, [fp, #4]
	cmp	r2, r3
	bne	.L82
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	beq	.L81
.L82:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L81
	ldr	r3, [fp, #-40]
	add	r1, r3, #1
	ldr	r3, [fp, #12]
	add	r3, r3, #1
	ldr	r2, [fp, #20]
	str	r2, [sp, #16]
	ldr	r2, [fp, #16]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-44]
	mov	r2, r1
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	countMoves
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L83
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L83
	mov	r3, #1
	b	.L84
.L83:
	mov	r3, #0
.L84:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L81
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L81
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L81:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L85
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r1, r2, r3
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r0, r3, #5
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r0, r1, r3
	ldr	r1, [fp, #4]
	mov	r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r2, r3, #5
	sub	r2, r2, r3
	lsl	r2, r2, #4
	add	r3, r2, r1
	add	r3, r0, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	b	.L86
.L85:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r1, r2, r3
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r0, r3, #5
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r0, r1, r3
	ldr	r1, [fp, #4]
	mov	r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r2, r3, #5
	sub	r2, r2, r3
	lsl	r2, r2, #4
	add	r3, r2, r1
	add	r3, r0, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L86:
	ldr	r3, [fp, #-28]
.L59:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	9999
	.word	.LC11
	.size	countMoves, .-countMoves
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L90
.L101:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L91
.L100:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L92
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L93
.L92:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L94
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	beq	.L95
.L94:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #100
	ble	.L96
	mov	r3, #35
	b	.L98
.L96:
	mov	r3, #46
	b	.L98
.L95:
	mov	r3, #33
	b	.L99
.L98:
	b	.L99
.L93:
	mov	r3, #95
.L99:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L91:
	ldr	r3, [fp, #-8]
	cmp	r3, #36
	ble	.L100
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L90:
	ldr	r3, [fp, #-12]
	cmp	r3, #24
	ble	.L101
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	print, .-print
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
