	.file	"323887.c"
	.intel_syntax noprefix
	.text
	.globl	primes
	.data
	.align 32
	.type	primes, @object
	.size	primes, 56
primes:
	.long	3
	.long	5
	.long	7
	.long	11
	.long	13
	.long	17
	.long	19
	.long	23
	.long	29
	.long	31
	.long	37
	.long	41
	.long	43
	.long	47
	.globl	is_first_even
	.bss
	.type	is_first_even, @object
	.size	is_first_even, 1
is_first_even:
	.zero	1
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	evens
	.align 32
	.type	evens, @object
	.size	evens, 120
evens:
	.zero	120
	.globl	odds
	.align 32
	.type	odds, @object
	.size	odds, 120
odds:
	.zero	120
	.globl	answer
	.align 32
	.type	answer, @object
	.size	answer, 120
answer:
	.zero	120
	.globl	route
	.align 32
	.type	route, @object
	.size	route, 3600
route:
	.zero	3600
	.globl	match
	.align 32
	.type	match, @object
	.size	match, 120
match:
	.zero	120
	.globl	is_matched
	.align 16
	.type	is_matched, @object
	.size	is_matched, 30
is_matched:
	.zero	30
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], -1
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, route[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, is_matched[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L9
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, is_matched[rip]
	mov	BYTE PTR [rax+rdx], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, match[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L7
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, match[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	dfs
	test	al, al
	je	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, match[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, 1
	jmp	.L3
.L9:
	nop
.L6:
	add	DWORD PTR -8[rbp], 1
.L4:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, route[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L8
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.globl	try_forced_match
	.type	try_forced_match, @function
try_forced_match:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -8[rbp], 1
	jmp	.L11
.L16:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, is_matched[rip]
	mov	BYTE PTR [rax+rdx], 0
	add	DWORD PTR -4[rbp], 1
.L12:
	cmp	DWORD PTR -4[rbp], 29
	jle	.L13
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, match[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, is_matched[rip]
	mov	BYTE PTR [rax+rdx], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	dfs
	xor	eax, 1
	test	al, al
	je	.L14
	mov	eax, 0
	jmp	.L15
.L14:
	add	DWORD PTR -8[rbp], 1
.L11:
	mov	eax, DWORD PTR N[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -8[rbp], eax
	jl	.L16
	mov	eax, 1
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	try_forced_match, .-try_forced_match
	.globl	add_answer
	.type	add_answer, @function
add_answer:
.LFB2:
	.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 -8[rbp], 0
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, answer[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L19
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, answer[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, answer[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
.L19:
	add	DWORD PTR -8[rbp], 1
.L18:
	mov	eax, DWORD PTR answer_count.0[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L20
	mov	eax, DWORD PTR answer_count.0[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, answer[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR answer_count.0[rip]
	add	eax, 1
	mov	DWORD PTR answer_count.0[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	add_answer, .-add_answer
	.section	.rodata
.LC0:
	.string	"-1"
.LC1:
	.string	"%d\n"
	.text
	.globl	print_answer
	.type	print_answer, @function
print_answer:
.LFB3:
	.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	eax, DWORD PTR answer[rip]
	test	eax, eax
	jne	.L22
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L21
.L22:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, answer[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, answer[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L25
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	print_answer, .-print_answer
	.globl	extract_answer
	.type	extract_answer, @function
extract_answer:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 0
	jmp	.L27
.L30:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, route[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L28
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L29
.L28:
	add	DWORD PTR -12[rbp], 1
.L27:
	mov	eax, DWORD PTR N[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -12[rbp], eax
	jl	.L30
	mov	DWORD PTR -8[rbp], 0
	jmp	.L31
.L37:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, match[rip]
	mov	DWORD PTR [rdx+rax], -1
	add	DWORD PTR -4[rbp], 1
.L32:
	cmp	DWORD PTR -4[rbp], 29
	jle	.L33
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, route[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	try_forced_match
	test	al, al
	je	.L34
	movzx	eax, BYTE PTR is_first_even[rip]
	test	al, al
	je	.L35
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, route[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, odds[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L36
.L35:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, route[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, evens[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L36:
	mov	edi, eax
	call	add_answer
.L34:
	add	DWORD PTR -8[rbp], 1
.L31:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, route[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L37
	mov	eax, 1
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	extract_answer, .-extract_answer
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.LFB5:
	.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 -4[rbp], 0
	jmp	.L39
.L44:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, primes[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	test	eax, eax
	jne	.L40
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, primes[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	je	.L41
	mov	eax, 0
	jmp	.L42
.L41:
	mov	eax, 1
	jmp	.L42
.L40:
	add	DWORD PTR -4[rbp], 1
.L39:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, primes[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L43
	cmp	DWORD PTR -4[rbp], 13
	jle	.L44
.L43:
	mov	eax, 1
.L42:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	is_prime, .-is_prime
	.globl	find_route
	.type	find_route, @function
find_route:
.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	.L46
.L51:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L47
.L50:
	movzx	eax, BYTE PTR is_first_even[rip]
	test	al, al
	je	.L48
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, evens[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, odds[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, ecx
	mov	edi, eax
	call	is_prime
	test	al, al
	je	.L49
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rdx, route[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -8[rbp], 1
	jmp	.L49
.L48:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, odds[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, evens[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, ecx
	mov	edi, eax
	call	is_prime
	test	al, al
	je	.L49
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rdx, route[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -8[rbp], 1
.L49:
	add	DWORD PTR -4[rbp], 1
.L47:
	mov	eax, DWORD PTR N[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -4[rbp], eax
	jl	.L50
	add	DWORD PTR -12[rbp], 1
.L46:
	mov	eax, DWORD PTR N[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -12[rbp], eax
	jl	.L51
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find_route, .-find_route
	.section	.rodata
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	lea	rsi, N[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L53
.L56:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, route[rip]
	mov	DWORD PTR [rdx+rax], -1
	add	DWORD PTR -16[rbp], 1
.L54:
	cmp	DWORD PTR -16[rbp], 29
	jle	.L55
	add	DWORD PTR -20[rbp], 1
.L53:
	cmp	DWORD PTR -20[rbp], 29
	jle	.L56
	mov	edx, 120
	mov	esi, 0
	lea	rdi, evens[rip]
	call	memset@PLT
	mov	edx, 120
	mov	esi, 0
	lea	rdi, odds[rip]
	call	memset@PLT
	mov	edx, 120
	mov	esi, 0
	lea	rdi, answer[rip]
	call	memset@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L57
.L62:
	mov	DWORD PTR -32[rbp], 0
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	DWORD PTR -28[rbp], 0
	jne	.L58
	cmp	DWORD PTR -24[rbp], 0
	jne	.L58
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L59
	mov	BYTE PTR is_first_even[rip], 1
	jmp	.L58
.L59:
	mov	BYTE PTR is_first_even[rip], 0
.L58:
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L60
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, evens[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -24[rbp], 1
	jmp	.L61
.L60:
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, odds[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -28[rbp], 1
.L61:
	add	DWORD PTR -12[rbp], 1
.L57:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L62
	mov	eax, DWORD PTR N[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -28[rbp], eax
	jne	.L63
	mov	eax, DWORD PTR N[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -24[rbp], eax
	jne	.L63
	mov	eax, 0
	call	find_route
	mov	eax, 0
	call	extract_answer
	test	al, al
	je	.L65
	mov	eax, 0
	call	print_answer
	jmp	.L65
.L63:
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L65:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.local	answer_count.0
	.comm	answer_count.0,4,4
	.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	"323887.c"
	.text
	.global	primes
	.data
	.align	2
	.type	primes, %object
	.size	primes, 56
primes:
	.word	3
	.word	5
	.word	7
	.word	11
	.word	13
	.word	17
	.word	19
	.word	23
	.word	29
	.word	31
	.word	37
	.word	41
	.word	43
	.word	47
	.global	is_first_even
	.bss
	.type	is_first_even, %object
	.size	is_first_even, 1
is_first_even:
	.space	1
	.global	N
	.align	2
	.type	N, %object
	.size	N, 4
N:
	.space	4
	.comm	evens,120,4
	.comm	odds,120,4
	.comm	answer,120,4
	.comm	route,3600,4
	.comm	match,120,4
	.comm	is_matched,30,4
	.text
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ 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, [fp, #-16]
	cmn	r3, #1
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L8:
	ldr	r1, .L10
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r2, .L10+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	ldr	r2, .L10+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r2, .L10+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L7
	ldr	r2, .L10+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	dfs
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
.L7:
	ldr	r1, .L10+8
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	mov	r3, #1
	b	.L3
.L9:
	nop
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r1, .L10
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmn	r3, #1
	bne	.L8
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	route
	.word	is_matched
	.word	match
	.size	dfs, .-dfs
	.align	2
	.global	try_forced_match
	.syntax unified
	.arm
	.fpu softvfp
	.type	try_forced_match, %function
try_forced_match:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L13
.L18:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L15:
	ldr	r2, .L19
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	ble	.L15
	ldr	r2, .L19+4
	ldr	r3, [fp, #-16]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L19
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	dfs
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L16
	mov	r3, #0
	b	.L17
.L16:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	blt	.L18
	mov	r3, #1
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	is_matched
	.word	match
	.word	N
	.size	try_forced_match, .-try_forced_match
	.align	2
	.global	add_answer
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_answer, %function
add_answer:
	@ 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]
	b	.L22
.L24:
	ldr	r2, .L25
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L23
	ldr	r2, .L25
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r1, .L25
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L23:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L24
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r1, .L25
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+4
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L26:
	.align	2
.L25:
	.word	answer
	.word	answer_count.4810
	.size	add_answer, .-add_answer
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-1\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	print_answer
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_answer, %function
print_answer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L32+4
	bl	puts
	b	.L27
.L28:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L31:
	ldr	r2, .L32
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L32+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r2, .L32
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L31
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	answer
	.word	.LC0
	.word	.LC1
	.size	print_answer, .-print_answer
	.align	2
	.global	extract_answer
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_answer, %function
extract_answer:
	@ 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	.L35
.L38:
	ldr	r1, .L46
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L46+4
	bl	puts
	mov	r3, #0
	b	.L37
.L36:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L35:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L38
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L39
.L45:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L40
.L41:
	ldr	r2, .L46+12
	ldr	r3, [fp, #-8]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L40:
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	ble	.L41
	ldr	r2, .L46
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	try_forced_match
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L46+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L43
	ldr	r2, .L46
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L46+20
	ldr	r3, [r2, r3, lsl #2]
	b	.L44
.L43:
	ldr	r2, .L46
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L46+24
	ldr	r3, [r2, r3, lsl #2]
.L44:
	mov	r0, r3
	bl	add_answer
.L42:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L39:
	ldr	r2, .L46
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L45
	mov	r3, #1
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	route
	.word	.LC0
	.word	N
	.word	match
	.word	is_first_even
	.word	odds
	.word	evens
	.size	extract_answer, .-extract_answer
	.global	__aeabi_idivmod
	.align	2
	.global	is_prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_prime, %function
is_prime:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L49
.L54:
	ldr	r2, .L55
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L50
	ldr	r2, .L55
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L51
	mov	r3, #0
	b	.L52
.L51:
	mov	r3, #1
	b	.L52
.L50:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r2, .L55
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L53
	ldr	r3, [fp, #-8]
	cmp	r3, #13
	ble	.L54
.L53:
	mov	r3, #1
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	primes
	.size	is_prime, .-is_prime
	.align	2
	.global	find_route
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_route, %function
find_route:
	@ 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	.L58
.L63:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L59
.L62:
	ldr	r3, .L64
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L60
	ldr	r2, .L64+4
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L64+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r2, r3
	mov	r0, r3
	bl	is_prime
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	ldr	r1, .L64+12
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L61
.L60:
	ldr	r2, .L64+8
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L64+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r2, r3
	mov	r0, r3
	bl	is_prime
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	ldr	r1, .L64+12
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L61:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L59:
	ldr	r3, .L64+16
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L62
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L58:
	ldr	r3, .L64+16
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L63
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	is_first_even
	.word	evens
	.word	odds
	.word	route
	.word	N
	.size	find_route, .-find_route
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r1, .L82+4
	ldr	r0, .L82+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L67
.L70:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L68
.L69:
	ldr	r1, .L82+12
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	mvn	r2, #0
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L68:
	ldr	r3, [fp, #-16]
	cmp	r3, #29
	ble	.L69
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L67:
	ldr	r3, [fp, #-20]
	cmp	r3, #29
	ble	.L70
	mov	r2, #120
	mov	r1, #0
	ldr	r0, .L82+16
	bl	memset
	mov	r2, #120
	mov	r1, #0
	ldr	r0, .L82+20
	bl	memset
	mov	r2, #120
	mov	r1, #0
	ldr	r0, .L82+24
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L71
.L76:
	mov	r3, #0
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L82+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L72
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L72
	ldr	r3, [fp, #-32]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L73
	ldr	r3, .L82+28
	mov	r2, #1
	strb	r2, [r3]
	b	.L72
.L73:
	ldr	r3, .L82+28
	mov	r2, #0
	strb	r2, [r3]
.L72:
	ldr	r3, [fp, #-32]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L74
	ldr	r2, [fp, #-32]
	ldr	r1, .L82+16
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L75
.L74:
	ldr	r2, [fp, #-32]
	ldr	r1, .L82+20
	ldr	r3, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L75:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L71:
	ldr	r3, .L82+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L76
	ldr	r3, .L82+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	bne	.L77
	ldr	r3, .L82+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bne	.L77
	bl	find_route
	bl	extract_answer
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	bl	print_answer
	b	.L79
.L77:
	ldr	r0, .L82+32
	bl	puts
.L79:
	mov	r3, #0
	ldr	r2, .L82
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC3
	.word	N
	.word	.LC2
	.word	route
	.word	evens
	.word	odds
	.word	answer
	.word	is_first_even
	.word	.LC0
	.size	main, .-main
	.local	answer_count.4810
	.comm	answer_count.4810,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
