Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// AOJ GRL_3_C Connected Components - Strongly Connected Components
// 2018.4.26 bal4u

#include <stdio.h>
#include <malloc.h>
#include <string.h>

#define MAX_V 10002
int  V;    // 頂点数
int  *to[MAX_V], hi[MAX_V];
int  *r_to[MAX_V], r_hi[MAX_V];
int  vs[MAX_V], vsz;
char used[MAX_V];
int  cmp[MAX_V];    // 属する強連結成分のトポロジカル順序

void add_edge(int _from, int _to)
{
	to[_from][hi[_from]++] = _to;
	r_to[_to][r_hi[_to]++] = _from;
}

void dfs(int v)
{
	int i;
	used[v] = 1;
	for (i = 0; i < hi[v]; i++) {
		if (!used[to[v][i]]) dfs(to[v][i]);
	}
	vs[vsz++] = v;
}

void rdfs(int v, int k)
{
	int i;
	used[v] = 1;
	cmp[v] = k;
	for (i = 0; i < r_hi[v]; i++) {
		if (!used[r_to[v][i]]) rdfs(r_to[v][i], k);
	}
}

#if 0
void init(int n)
{
	V = n;
	memset(  lim, 0, V<<2), memset(  hi, 0, V<<2);
	memset(r_lim, 0, V<<2), memset(r_hi, 0, V<<2);
}
#endif

// 強連結成分への分解
int scc()
{
	int v, i, k;
	memset(used, 0, V);
	vsz = 0;
	for (v = 0; v < V; v++) if (!used[v]) dfs(v);
	memset(used, 0, V);
	k = 0;
	for (i = vsz-1; i >= 0; i--) {
		if (!used[vs[i]]) rdfs(vs[i], k++);
	}
	return k;		// 得られた強連結成分の数
}

// バッファを経ずstdinから数値を得る
//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

int main()
{
	int E, Q, s, t, i, j;
	int *memo;

	V = in(), E = in();
	memo = malloc(E<<3);
	j = 0; for (i = 0; i < E; i++) {
		memo[j++] = s = in(), memo[j++] = t = in();
		hi[s]++, r_hi[t]++;

	}
	for (i = 0; i < V; i++) {
		if (  hi[i])   to[i] = malloc(  hi[i]<<2);
		if (r_hi[i]) r_to[i] = malloc(r_hi[i]<<2);
	}
	memset(hi, 0, V<<2), memset(r_hi, 0, V<<2);

	j = 0; while (E--) {
		s = memo[j++], t = memo[j++];
		add_edge(s, t);
	}

	scc();

	Q = in();
	while (Q--) {
		s = in(), t = in();
		putchar('0'+ (cmp[s] == cmp[t]));
		putchar('\n');
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	V
	.bss
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 80016
to:
	.zero	80016
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 40008
hi:
	.zero	40008
	.globl	r_to
	.align 32
	.type	r_to, @object
	.size	r_to, 80016
r_to:
	.zero	80016
	.globl	r_hi
	.align 32
	.type	r_hi, @object
	.size	r_hi, 40008
r_hi:
	.zero	40008
	.globl	vs
	.align 32
	.type	vs, @object
	.size	vs, 40008
vs:
	.zero	40008
	.globl	vsz
	.align 4
	.type	vsz, @object
	.size	vsz, 4
vsz:
	.zero	4
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 10002
used:
	.zero	10002
	.globl	cmp
	.align 32
	.type	cmp, @object
	.size	cmp, 40008
cmp:
	.zero	40008
	.text
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	r_hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	add_edge, .-add_edge
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	$0, -4(%rbp)
	jmp	.L3
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	call	dfs
.L4:
	addl	$1, -4(%rbp)
.L3:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	movl	vsz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, vsz(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	vs(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.globl	rdfs
	.type	rdfs, @function
rdfs:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cmp(%rip), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -4(%rbp)
	jmp	.L7
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L8
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-24(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	rdfs
.L8:
	addl	$1, -4(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	rdfs, .-rdfs
	.globl	scc
	.type	scc, @function
scc:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	V(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, vsz(%rip)
	movl	$0, -12(%rbp)
	jmp	.L11
.L13:
	movl	-12(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L12
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	dfs
.L12:
	addl	$1, -12(%rbp)
.L11:
	movl	V(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L13
	movl	V(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	vsz(%rip), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L14
.L16:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	vs(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L15
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -4(%rbp)
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	vs(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	rdfs
.L15:
	subl	$1, -8(%rbp)
.L14:
	cmpl	$0, -8(%rbp)
	jns	.L16
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	scc, .-scc
	.globl	in
	.type	in, @function
in:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L19:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L19
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	in, .-in
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, V(%rip)
	movl	$0, %eax
	call	in
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	sall	$3, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L22
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -24(%rbp)
.L22:
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jl	.L23
	movl	$0, -24(%rbp)
	jmp	.L24
.L27:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L25
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L25:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L26
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L26:
	addl	$1, -24(%rbp)
.L24:
	movl	V(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L27
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	hi(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	r_hi(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -20(%rbp)
	jmp	.L28
.L29:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
.L28:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L29
	movl	$0, %eax
	call	scc
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	jmp	.L30
.L33:
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cmp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cmp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L31
	movl	$49, %eax
	jmp	.L32
.L31:
	movl	$48, %eax
.L32:
	movl	%eax, %edi
	call	putchar@PLT
	movl	$10, %edi
	call	putchar@PLT
.L30:
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -28(%rbp)
	testl	%eax, %eax
	jne	.L33
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	%edi, %rcx
	leaq	to(%rip), %rax
	leaq	hi(%rip), %rdi
	movq	(%rax,%rcx,8), %r8
	movslq	(%rdi,%rcx,4), %rax
	movq	%rcx, %rdx
	leal	1(%rax), %r9d
	movl	%r9d, (%rdi,%rcx,4)
	leaq	r_hi(%rip), %rcx
	movl	%esi, (%r8,%rax,4)
	movslq	%esi, %rsi
	leaq	r_to(%rip), %rax
	movq	(%rax,%rsi,8), %rdi
	movslq	(%rcx,%rsi,4), %rax
	leal	1(%rax), %r8d
	movl	%r8d, (%rcx,%rsi,4)
	movl	%edx, (%rdi,%rax,4)
	ret
	.cfi_endproc
.LFE35:
	.size	add_edge, .-add_edge
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	hi(%rip), %r9
	leaq	used(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	to(%rip), %r10
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movl	(%r9,%rax,4), %edx
	movb	$1, (%r15,%rax)
	movl	%eax, 112(%rsp)
	movq	%rax, 80(%rsp)
	movq	$0, 24(%rsp)
	testl	%edx, %edx
	jle	.L31
.L4:
	movq	80(%rsp), %rax
	movq	24(%rsp), %rdi
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%rdi,4), %rax
	cmpb	$0, (%r15,%rax)
	movl	%eax, 92(%rsp)
	movq	%rax, 48(%rsp)
	je	.L70
.L5:
	addq	$1, 24(%rsp)
	movq	24(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L4
.L31:
	movslq	vsz(%rip), %rax
	movl	112(%rsp), %ecx
	leaq	vs(%rip), %rsi
	leal	1(%rax), %edx
	movl	%ecx, (%rsi,%rax,4)
	movl	%edx, vsz(%rip)
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L70:
	.cfi_restore_state
	movl	(%r9,%rax,4), %edx
	movb	$1, (%r15,%rax)
	movq	$0, 16(%rsp)
	testl	%edx, %edx
	jle	.L30
.L6:
	movq	48(%rsp), %rax
	movq	16(%rsp), %rcx
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%rcx,4), %rax
	cmpb	$0, (%r15,%rax)
	movl	%eax, 88(%rsp)
	movq	%rax, 32(%rsp)
	je	.L71
.L7:
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L6
.L30:
	movslq	vsz(%rip), %rax
	movl	92(%rsp), %ebx
	leaq	vs(%rip), %rdi
	leal	1(%rax), %edx
	movl	%ebx, (%rdi,%rax,4)
	movq	80(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L71:
	movl	(%r9,%rax,4), %edx
	movb	$1, (%r15,%rax)
	movq	$0, 8(%rsp)
	testl	%edx, %edx
	jle	.L29
.L8:
	movq	32(%rsp), %rax
	movq	8(%rsp), %rbx
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%rbx,4), %rcx
	cmpb	$0, (%r15,%rcx)
	movl	%ecx, 76(%rsp)
	je	.L72
.L9:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L8
.L29:
	movslq	vsz(%rip), %rax
	movl	88(%rsp), %ecx
	leaq	vs(%rip), %rsi
	leal	1(%rax), %edx
	movl	%ecx, (%rsi,%rax,4)
	movq	48(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L72:
	movl	(%r9,%rcx,4), %edx
	movb	$1, (%r15,%rcx)
	movq	$0, (%rsp)
	testl	%edx, %edx
	jle	.L28
	movq	%rcx, 64(%rsp)
.L10:
	movq	64(%rsp), %rax
	movq	(%rsp), %rbx
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%rbx,4), %r8
	cmpb	$0, (%r15,%r8)
	movl	%r8d, 72(%rsp)
	je	.L73
.L11:
	addq	$1, (%rsp)
	movq	(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L10
.L28:
	movslq	vsz(%rip), %rax
	movl	76(%rsp), %ebx
	leaq	vs(%rip), %rcx
	leal	1(%rax), %edx
	movl	%ebx, (%rcx,%rax,4)
	movq	32(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L73:
	movl	(%r9,%r8,4), %edx
	movb	$1, (%r15,%r8)
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	.L27
	movq	%r8, 40(%rsp)
	movq	%rax, %r8
.L12:
	movq	40(%rsp), %rax
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%r8,4), %r11
	cmpb	$0, (%r15,%r11)
	movl	%r11d, 60(%rsp)
	je	.L74
.L13:
	addq	$1, %r8
	cmpl	%r8d, %edx
	jg	.L12
.L27:
	movslq	vsz(%rip), %rax
	movl	72(%rsp), %edi
	leaq	vs(%rip), %rsi
	leal	1(%rax), %edx
	movl	%edi, (%rsi,%rax,4)
	movq	64(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L74:
	movl	(%r9,%r11,4), %edx
	movb	$1, (%r15,%r11)
	xorl	%esi, %esi
	testl	%edx, %edx
	jle	.L26
	movq	%r8, 104(%rsp)
	movq	%r11, %r8
.L14:
	movq	(%r10,%r8,8), %rax
	movslq	(%rax,%rsi,4), %rax
	cmpb	$0, (%r15,%rax)
	movl	%eax, 56(%rsp)
	je	.L75
.L15:
	addq	$1, %rsi
	cmpl	%esi, %edx
	jg	.L14
	movq	104(%rsp), %r8
.L26:
	movslq	vsz(%rip), %rax
	movl	60(%rsp), %ebx
	leaq	vs(%rip), %rdi
	leal	1(%rax), %edx
	movl	%ebx, (%rdi,%rax,4)
	movq	40(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L75:
	movl	(%r9,%rax,4), %ecx
	movb	$1, (%r15,%rax)
	xorl	%r13d, %r13d
	testl	%ecx, %ecx
	jle	.L25
	movq	%rsi, 96(%rsp)
.L16:
	movq	(%r10,%rax,8), %rdx
	movslq	(%rdx,%r13,4), %r14
	cmpb	$0, (%r15,%r14)
	movq	%r14, %rsi
	je	.L76
.L17:
	addq	$1, %r13
	cmpl	%r13d, %ecx
	jg	.L16
	movq	96(%rsp), %rsi
.L25:
	movslq	vsz(%rip), %rax
	movl	56(%rsp), %ecx
	leaq	vs(%rip), %rdi
	leal	1(%rax), %edx
	movl	%ecx, (%rdi,%rax,4)
	movl	%edx, vsz(%rip)
	movl	(%r9,%r8,4), %edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L76:
	movl	(%r9,%r14,4), %edi
	movb	$1, (%r15,%r14)
	xorl	%ebp, %ebp
	testl	%edi, %edi
	jle	.L24
	movq	%r13, %rcx
	movq	%r14, %r13
.L18:
	movq	(%r10,%r13,8), %rdx
	movslq	(%rdx,%rbp,4), %r12
	cmpb	$0, (%r15,%r12)
	movq	%r12, %r14
	je	.L77
.L19:
	addq	$1, %rbp
	cmpl	%ebp, %edi
	jg	.L18
	movq	%rcx, %r13
.L24:
	movslq	vsz(%rip), %rdx
	leal	1(%rdx), %ecx
	movl	%ecx, vsz(%rip)
	leaq	vs(%rip), %rcx
	movl	%esi, (%rcx,%rdx,4)
	movl	(%r9,%rax,4), %ecx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L77:
	movl	(%r9,%r12,4), %r11d
	movb	$1, (%r15,%r12)
	xorl	%ebx, %ebx
	testl	%r11d, %r11d
	jle	.L23
.L20:
	movq	(%r10,%r12,8), %rdx
	movslq	(%rdx,%rbx,4), %rdx
	cmpb	$0, (%r15,%rdx)
	movq	%rdx, %rdi
	je	.L78
	addq	$1, %rbx
	cmpl	%ebx, %r11d
	jg	.L20
.L23:
	movslq	vsz(%rip), %rdx
	leaq	vs(%rip), %rbx
	leal	1(%rdx), %edi
	movl	%r14d, (%rbx,%rdx,4)
	movl	%edi, vsz(%rip)
	movl	(%r9,%r13,4), %edi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L78:
	movq	%rax, 136(%rsp)
	addq	$1, %rbx
	movq	%r8, 128(%rsp)
	movq	%rcx, 120(%rsp)
	movl	%esi, 116(%rsp)
	call	dfs
	leaq	hi(%rip), %r9
	movl	116(%rsp), %esi
	movq	120(%rsp), %rcx
	movl	(%r9,%r12,4), %r11d
	movq	128(%rsp), %r8
	leaq	to(%rip), %r10
	movq	136(%rsp), %rax
	cmpl	%ebx, %r11d
	jg	.L20
	jmp	.L23
	.cfi_endproc
.LFE36:
	.size	dfs, .-dfs
	.p2align 4
	.globl	rdfs
	.type	rdfs, @function
rdfs:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	r_hi(%rip), %r11
	leaq	used(%rip), %rcx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	cmp(%rip), %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movl	(%r11,%rax,4), %edx
	movb	$1, (%rcx,%rax)
	movl	%esi, 88(%rsp)
	movq	%rax, 72(%rsp)
	movl	%esi, (%rbx,%rax,4)
	movq	$0, 32(%rsp)
	testl	%edx, %edx
	jle	.L79
	leaq	r_to(%rip), %r9
.L80:
	movq	72(%rsp), %rax
	movq	32(%rsp), %rbx
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%rbx,4), %rax
	cmpb	$0, (%rcx,%rax)
	movq	%rax, 56(%rsp)
	je	.L143
.L81:
	addq	$1, 32(%rsp)
	movq	32(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L80
.L79:
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L143:
	.cfi_restore_state
	movl	88(%rsp), %edx
	leaq	cmp(%rip), %rdi
	movb	$1, (%rcx,%rax)
	movq	$0, 24(%rsp)
	movl	%edx, (%rdi,%rax,4)
	movl	(%r11,%rax,4), %edx
	testl	%edx, %edx
	jle	.L142
.L82:
	movq	56(%rsp), %rax
	movq	24(%rsp), %rbx
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%rbx,4), %rax
	cmpb	$0, (%rcx,%rax)
	movq	%rax, 40(%rsp)
	je	.L144
.L83:
	addq	$1, 24(%rsp)
	movq	24(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L82
.L142:
	movq	72(%rsp), %rax
	movl	(%r11,%rax,4), %edx
	jmp	.L81
	.p2align 4,,10
	.p2align 3
.L144:
	movl	88(%rsp), %ebx
	movl	(%r11,%rax,4), %edx
	leaq	cmp(%rip), %rdi
	movb	$1, (%rcx,%rax)
	movq	$0, 16(%rsp)
	movl	%ebx, (%rdi,%rax,4)
	testl	%edx, %edx
	jle	.L141
.L84:
	movq	40(%rsp), %rax
	movq	16(%rsp), %rbx
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%rbx,4), %r8
	cmpb	$0, (%rcx,%r8)
	je	.L145
.L85:
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L84
.L141:
	movq	56(%rsp), %rax
	movl	(%r11,%rax,4), %edx
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L145:
	movl	88(%rsp), %ebx
	movl	(%r11,%r8,4), %edx
	movb	$1, (%rcx,%r8)
	leaq	cmp(%rip), %rax
	movq	$0, 8(%rsp)
	movl	%ebx, (%rax,%r8,4)
	testl	%edx, %edx
	jle	.L140
	movq	%r8, 64(%rsp)
.L86:
	movq	64(%rsp), %rax
	movq	8(%rsp), %rbx
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%rbx,4), %r8
	cmpb	$0, (%rcx,%r8)
	je	.L146
.L87:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L86
.L140:
	movq	40(%rsp), %rax
	movl	(%r11,%rax,4), %edx
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L146:
	movl	88(%rsp), %edi
	movl	(%r11,%r8,4), %esi
	movb	$1, (%rcx,%r8)
	xorl	%r10d, %r10d
	leaq	cmp(%rip), %rax
	movl	%edi, (%rax,%r8,4)
	testl	%esi, %esi
	jle	.L139
	movq	%r8, 48(%rsp)
.L88:
	movq	48(%rsp), %rax
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%r10,4), %rdx
	cmpb	$0, (%rcx,%rdx)
	je	.L147
.L89:
	addq	$1, %r10
	cmpl	%r10d, %esi
	jg	.L88
.L139:
	movq	64(%rsp), %rax
	movl	(%r11,%rax,4), %edx
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L147:
	movl	88(%rsp), %ebx
	movl	(%r11,%rdx,4), %edi
	leaq	cmp(%rip), %rax
	movb	$1, (%rcx,%rdx)
	movl	%ebx, (%rax,%rdx,4)
	xorl	%eax, %eax
	testl	%edi, %edi
	jle	.L138
	movq	%r10, 80(%rsp)
	movl	88(%rsp), %r10d
.L90:
	movq	(%r9,%rdx,8), %rsi
	movslq	(%rsi,%rax,4), %r15
	cmpb	$0, (%rcx,%r15)
	je	.L148
.L91:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L90
	movq	80(%rsp), %r10
.L138:
	movq	48(%rsp), %rax
	movl	(%r11,%rax,4), %esi
	jmp	.L89
	.p2align 4,,10
	.p2align 3
.L148:
	leaq	cmp(%rip), %rdi
	movb	$1, (%rcx,%r15)
	xorl	%r14d, %r14d
	movl	%r10d, (%rdi,%r15,4)
	movl	(%r11,%r15,4), %edi
	testl	%edi, %edi
	jle	.L137
.L92:
	movq	(%r9,%r15,8), %rsi
	movslq	(%rsi,%r14,4), %r13
	cmpb	$0, (%rcx,%r13)
	je	.L149
.L93:
	addq	$1, %r14
	cmpl	%r14d, %edi
	jg	.L92
.L137:
	movl	(%r11,%rdx,4), %edi
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L149:
	movl	(%r11,%r13,4), %edi
	leaq	cmp(%rip), %rbx
	movb	$1, (%rcx,%r13)
	xorl	%ebp, %ebp
	movl	%r10d, (%rbx,%r13,4)
	testl	%edi, %edi
	jle	.L136
.L94:
	movq	(%r9,%r13,8), %rsi
	movslq	(%rsi,%rbp,4), %r12
	cmpb	$0, (%rcx,%r12)
	je	.L150
.L95:
	addq	$1, %rbp
	cmpl	%ebp, %edi
	jg	.L94
.L136:
	movl	(%r11,%r15,4), %edi
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L150:
	movl	(%r11,%r12,4), %r8d
	leaq	cmp(%rip), %rbx
	movb	$1, (%rcx,%r12)
	movl	%r10d, (%rbx,%r12,4)
	xorl	%ebx, %ebx
	testl	%r8d, %r8d
	jle	.L99
.L96:
	movq	(%r9,%r12,8), %rsi
	movslq	(%rsi,%rbx,4), %rsi
	cmpb	$0, (%rcx,%rsi)
	movq	%rsi, %rdi
	je	.L151
	addq	$1, %rbx
	cmpl	%ebx, %r8d
	jg	.L96
.L99:
	movl	(%r11,%r13,4), %edi
	jmp	.L95
	.p2align 4,,10
	.p2align 3
.L151:
	movl	%r10d, %esi
	movq	%rdx, 104(%rsp)
	addq	$1, %rbx
	movq	%rax, 96(%rsp)
	movl	%r10d, 92(%rsp)
	call	rdfs
	movl	92(%rsp), %r10d
	movq	96(%rsp), %rax
	leaq	r_hi(%rip), %r11
	movl	(%r11,%r12,4), %r8d
	movq	104(%rsp), %rdx
	leaq	r_to(%rip), %r9
	leaq	used(%rip), %rcx
	cmpl	%ebx, %r8d
	jg	.L96
	movl	(%r11,%r13,4), %edi
	jmp	.L95
	.cfi_endproc
.LFE37:
	.size	rdfs, .-rdfs
	.p2align 4
	.globl	scc
	.type	scc, @function
scc:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$10002, %ecx
	xorl	%esi, %esi
	leaq	to(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	hi(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	used(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movslq	V(%rip), %r14
	movq	%r14, %rdx
	movq	%r14, %r12
	call	__memset_chk@PLT
	movl	$0, vsz(%rip)
	testl	%r14d, %r14d
	jg	.L153
	jmp	.L176
	.p2align 4,,10
	.p2align 3
.L155:
	addq	$1, %rbx
	cmpl	%ebx, %r12d
	jle	.L177
.L153:
	cmpb	$0, 0(%rbp,%rbx)
	movl	%ebx, %r14d
	jne	.L155
	movl	0(%r13,%rbx,4), %edx
	movb	$1, 0(%rbp,%rbx)
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L159
.L156:
	movq	(%r15,%rbx,8), %rax
	movslq	(%rax,%r12,4), %rax
	cmpb	$0, 0(%rbp,%rax)
	movq	%rax, %rdi
	je	.L178
	addq	$1, %r12
	cmpl	%r12d, %edx
	jg	.L156
.L159:
	movslq	vsz(%rip), %rax
	movl	V(%rip), %r12d
	leaq	vs(%rip), %rcx
	addq	$1, %rbx
	leal	1(%rax), %edx
	movl	%r14d, (%rcx,%rax,4)
	movl	%edx, vsz(%rip)
	cmpl	%ebx, %r12d
	jg	.L153
.L177:
	movl	vsz(%rip), %eax
	xorl	%esi, %esi
	movslq	%r12d, %rdx
	movl	$10002, %ecx
	movq	%rbp, %rdi
	leal	-1(%rax), %ebx
	call	__memset_chk@PLT
	testl	%ebx, %ebx
	js	.L167
	movslq	%ebx, %rbx
	leaq	vs(%rip), %r8
	xorl	%r15d, %r15d
	leaq	(%r8,%rbx,4), %r13
	leaq	r_hi(%rip), %r9
	leaq	r_to(%rip), %r14
	jmp	.L164
	.p2align 4,,10
	.p2align 3
.L160:
	leaq	-4(%r13), %rax
	cmpq	%r13, %r8
	je	.L152
.L170:
	movq	%rax, %r13
.L164:
	movslq	0(%r13), %r12
	cmpb	$0, 0(%rbp,%r12)
	jne	.L160
	leal	1(%r15), %eax
	movl	(%r9,%r12,4), %edx
	movb	$1, 0(%rbp,%r12)
	movl	%eax, 12(%rsp)
	leaq	cmp(%rip), %rax
	movl	%r15d, (%rax,%r12,4)
	testl	%edx, %edx
	jle	.L169
	xorl	%ebx, %ebx
.L163:
	movq	(%r14,%r12,8), %rax
	movslq	(%rax,%rbx,4), %rax
	cmpb	$0, 0(%rbp,%rax)
	movq	%rax, %rdi
	je	.L179
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jg	.L163
.L169:
	movl	12(%rsp), %r15d
.L180:
	leaq	-4(%r13), %rax
	cmpq	%r13, %r8
	jne	.L170
.L152:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r15d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L178:
	.cfi_restore_state
	call	dfs
	movl	0(%r13,%rbx,4), %edx
	addq	$1, %r12
	cmpl	%r12d, %edx
	jg	.L156
	jmp	.L159
	.p2align 4,,10
	.p2align 3
.L179:
	movl	%r15d, %esi
	addq	$1, %rbx
	call	rdfs
	leaq	r_hi(%rip), %r9
	leaq	vs(%rip), %r8
	movl	(%r9,%r12,4), %edx
	cmpl	%ebx, %edx
	jg	.L163
	movl	12(%rsp), %r15d
	jmp	.L180
.L176:
	movl	$10002, %ecx
	movq	%r14, %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	__memset_chk@PLT
	xorl	%r15d, %r15d
	jmp	.L152
.L167:
	xorl	%r15d, %r15d
	jmp	.L152
	.cfi_endproc
.LFE38:
	.size	scc, .-scc
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB39:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L190
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L183:
	xorl	%r12d, %r12d
	jmp	.L187
	.p2align 4,,10
	.p2align 3
.L184:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L181
.L185:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L187:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L184
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L181
	movq	stdin(%rip), %rdi
	jmp	.L185
	.p2align 4,,10
	.p2align 3
.L181:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L190:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L183
	.cfi_endproc
.LFE39:
	.size	in, .-in
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	in
	movl	%eax, V(%rip)
	xorl	%eax, %eax
	call	in
	leal	0(,%rax,8), %edi
	movl	%eax, 24(%rsp)
	movl	%eax, %ebx
	movslq	%edi, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rsp)
	testl	%ebx, %ebx
	jle	.L192
	movq	%rax, %rcx
	movq	%rax, %r15
	leal	-1(%rbx), %eax
	leaq	8(%rcx), %rbx
	movl	%eax, 28(%rsp)
	leaq	hi(%rip), %rbp
	movq	%rbx, 16(%rsp)
	leaq	(%rbx,%rax,8), %r13
	leaq	r_hi(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L205:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %r8
	cmpq	%r8, %rax
	jnb	.L256
	leaq	1(%rax), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rax), %eax
.L194:
	xorl	%r14d, %r14d
	jmp	.L198
	.p2align 4,,10
	.p2align 3
.L195:
	leaq	1(%rsi), %r10
	movq	%r10, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L197
.L196:
	movq	%r10, %rsi
.L198:
	leal	(%r14,%r14,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r14d
	cmpq	%r8, %rsi
	jb	.L195
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r10
	movq	16(%rdi), %r8
	cmpl	$47, %eax
	jg	.L196
	.p2align 4,,10
	.p2align 3
.L197:
	movl	%r14d, (%r15)
	cmpq	%r10, %r8
	jbe	.L257
	leaq	1(%r10), %r9
	movq	%r9, 8(%rdi)
	movzbl	(%r10), %eax
.L200:
	xorl	%ebx, %ebx
	jmp	.L204
	.p2align 4,,10
	.p2align 3
.L201:
	leaq	1(%r9), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%r9), %eax
	cmpl	$47, %eax
	jle	.L203
.L202:
	movq	8(%rdi), %r9
	movq	16(%rdi), %r8
.L204:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%r8, %r9
	jb	.L201
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L203
	movq	stdin(%rip), %rdi
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L203:
	movl	%ebx, 4(%r15)
	movslq	%r14d, %rdx
	movslq	%ebx, %rsi
	addq	$8, %r15
	addl	$1, 0(%rbp,%rdx,4)
	addl	$1, (%r12,%rsi,4)
	cmpq	%r15, %r13
	jne	.L205
	movl	V(%rip), %r13d
	testl	%r13d, %r13d
	jle	.L258
.L231:
	xorl	%r15d, %r15d
	leaq	to(%rip), %rbx
	jmp	.L210
	.p2align 4,,10
	.p2align 3
.L208:
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	jne	.L259
.L209:
	addq	$1, %r15
	cmpl	%r15d, %r13d
	jle	.L207
.L210:
	movl	0(%rbp,%r15,4), %eax
	testl	%eax, %eax
	je	.L208
	sall	$2, %eax
	movslq	%eax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx,%r15,8)
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	je	.L209
.L259:
	sall	$2, %eax
	movslq	%eax, %rdi
	call	malloc@PLT
	leaq	r_to(%rip), %rcx
	movq	%rax, (%rcx,%r15,8)
	addq	$1, %r15
	cmpl	%r15d, %r13d
	jg	.L210
.L207:
	sall	$2, %r13d
	movl	$40008, %ecx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	movslq	%r13d, %r13
	movq	%r13, %rdx
	call	__memset_chk@PLT
	movl	$40008, %ecx
	movq	%r13, %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	__memset_chk@PLT
	movq	8(%rsp), %rax
	addq	$8, %rax
	movq	%rax, 16(%rsp)
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L215
.L211:
	movl	28(%rsp), %eax
	movq	16(%rsp), %rcx
	leaq	to(%rip), %r8
	leaq	r_to(%rip), %rdi
	movq	8(%rsp), %rbx
	leaq	(%rcx,%rax,8), %r9
	.p2align 4,,10
	.p2align 3
.L214:
	movslq	(%rbx), %rcx
	movslq	4(%rbx), %rax
	addq	$8, %rbx
	movslq	0(%rbp,%rcx,4), %rdx
	movq	(%r8,%rcx,8), %r10
	movq	%rcx, %rsi
	leal	1(%rdx), %r11d
	movl	%r11d, 0(%rbp,%rcx,4)
	movq	(%rdi,%rax,8), %rcx
	movl	%eax, (%r10,%rdx,4)
	movslq	(%r12,%rax,4), %rdx
	leal	1(%rdx), %r10d
	movl	%r10d, (%r12,%rax,4)
	movl	%esi, (%rcx,%rdx,4)
	cmpq	%rbx, %r9
	jne	.L214
.L215:
	xorl	%eax, %eax
	leaq	cmp(%rip), %rbp
	call	scc
	xorl	%eax, %eax
	call	in
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L236
	.p2align 4,,10
	.p2align 3
.L230:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L260
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L217:
	xorl	%r13d, %r13d
	jmp	.L221
	.p2align 4,,10
	.p2align 3
.L218:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L220
.L219:
	movq	%rsi, %rdx
.L221:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L218
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L219
	.p2align 4,,10
	.p2align 3
.L220:
	cmpq	%rsi, %rcx
	jbe	.L261
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L223:
	xorl	%r12d, %r12d
	jmp	.L227
	.p2align 4,,10
	.p2align 3
.L224:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L226
.L225:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L227:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L224
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L226
	movq	stdin(%rip), %rdi
	jmp	.L225
	.p2align 4,,10
	.p2align 3
.L226:
	movslq	%r12d, %r12
	movslq	%r13d, %r13
	movl	$49, %edi
	movq	stdout(%rip), %rsi
	movl	0(%rbp,%r12,4), %eax
	cmpl	%eax, 0(%rbp,%r13,4)
	je	.L255
	movl	$48, %edi
.L255:
	call	putc@PLT
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	subl	$1, %ebx
	jne	.L230
.L236:
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L261:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L223
	.p2align 4,,10
	.p2align 3
.L260:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L217
	.p2align 4,,10
	.p2align 3
.L257:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r9
	movq	16(%rdi), %r8
	jmp	.L200
	.p2align 4,,10
	.p2align 3
.L256:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %r8
	jmp	.L194
.L192:
	movl	24(%rsp), %eax
	movl	V(%rip), %r13d
	leaq	hi(%rip), %rbp
	leaq	r_hi(%rip), %r12
	subl	$1, %eax
	movl	%eax, 28(%rsp)
	testl	%r13d, %r13d
	jg	.L231
	jmp	.L207
.L258:
	sall	$2, %r13d
	xorl	%esi, %esi
	movq	%rbp, %rdi
	movl	$40008, %ecx
	movslq	%r13d, %r13
	movq	%r13, %rdx
	call	__memset_chk@PLT
	movl	$40008, %ecx
	movq	%r13, %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	__memset_chk@PLT
	jmp	.L211
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	cmp
	.bss
	.align 32
	.type	cmp, @object
	.size	cmp, 40008
cmp:
	.zero	40008
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 10002
used:
	.zero	10002
	.globl	vsz
	.align 4
	.type	vsz, @object
	.size	vsz, 4
vsz:
	.zero	4
	.globl	vs
	.align 32
	.type	vs, @object
	.size	vs, 40008
vs:
	.zero	40008
	.globl	r_hi
	.align 32
	.type	r_hi, @object
	.size	r_hi, 40008
r_hi:
	.zero	40008
	.globl	r_to
	.align 32
	.type	r_to, @object
	.size	r_to, 80016
r_to:
	.zero	80016
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 40008
hi:
	.zero	40008
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 80016
to:
	.zero	80016
	.globl	V
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	%edi, %rcx
	leaq	to(%rip), %rax
	leaq	hi(%rip), %rdi
	movq	(%rax,%rcx,8), %r8
	movslq	(%rdi,%rcx,4), %rax
	movq	%rcx, %rdx
	leal	1(%rax), %r9d
	movl	%r9d, (%rdi,%rcx,4)
	leaq	r_hi(%rip), %rcx
	movl	%esi, (%r8,%rax,4)
	movslq	%esi, %rsi
	leaq	r_to(%rip), %rax
	movq	(%rax,%rsi,8), %rdi
	movslq	(%rcx,%rsi,4), %rax
	leal	1(%rax), %r8d
	movl	%r8d, (%rcx,%rsi,4)
	movl	%edx, (%rdi,%rax,4)
	ret
	.cfi_endproc
.LFE35:
	.size	add_edge, .-add_edge
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	hi(%rip), %r9
	leaq	used(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	to(%rip), %r10
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movl	(%r9,%rax,4), %edx
	movb	$1, (%r15,%rax)
	movl	%eax, 112(%rsp)
	movq	%rax, 80(%rsp)
	movq	$0, 24(%rsp)
	testl	%edx, %edx
	jle	.L31
.L4:
	movq	80(%rsp), %rax
	movq	24(%rsp), %rdi
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%rdi,4), %rax
	cmpb	$0, (%r15,%rax)
	movl	%eax, 92(%rsp)
	movq	%rax, 48(%rsp)
	je	.L70
.L5:
	addq	$1, 24(%rsp)
	movq	24(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L4
.L31:
	movslq	vsz(%rip), %rax
	movl	112(%rsp), %ecx
	leaq	vs(%rip), %rsi
	leal	1(%rax), %edx
	movl	%ecx, (%rsi,%rax,4)
	movl	%edx, vsz(%rip)
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L70:
	.cfi_restore_state
	movl	(%r9,%rax,4), %edx
	movb	$1, (%r15,%rax)
	movq	$0, 16(%rsp)
	testl	%edx, %edx
	jle	.L30
.L6:
	movq	48(%rsp), %rax
	movq	16(%rsp), %rcx
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%rcx,4), %rax
	cmpb	$0, (%r15,%rax)
	movl	%eax, 88(%rsp)
	movq	%rax, 32(%rsp)
	je	.L71
.L7:
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L6
.L30:
	movslq	vsz(%rip), %rax
	movl	92(%rsp), %ebx
	leaq	vs(%rip), %rdi
	leal	1(%rax), %edx
	movl	%ebx, (%rdi,%rax,4)
	movq	80(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L71:
	movl	(%r9,%rax,4), %edx
	movb	$1, (%r15,%rax)
	movq	$0, 8(%rsp)
	testl	%edx, %edx
	jle	.L29
.L8:
	movq	32(%rsp), %rax
	movq	8(%rsp), %rbx
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%rbx,4), %rcx
	cmpb	$0, (%r15,%rcx)
	movl	%ecx, 76(%rsp)
	je	.L72
.L9:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L8
.L29:
	movslq	vsz(%rip), %rax
	movl	88(%rsp), %ecx
	leaq	vs(%rip), %rsi
	leal	1(%rax), %edx
	movl	%ecx, (%rsi,%rax,4)
	movq	48(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L72:
	movl	(%r9,%rcx,4), %edx
	movb	$1, (%r15,%rcx)
	movq	$0, (%rsp)
	testl	%edx, %edx
	jle	.L28
	movq	%rcx, 64(%rsp)
.L10:
	movq	64(%rsp), %rax
	movq	(%rsp), %rbx
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%rbx,4), %r8
	cmpb	$0, (%r15,%r8)
	movl	%r8d, 72(%rsp)
	je	.L73
.L11:
	addq	$1, (%rsp)
	movq	(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L10
.L28:
	movslq	vsz(%rip), %rax
	movl	76(%rsp), %ebx
	leaq	vs(%rip), %rcx
	leal	1(%rax), %edx
	movl	%ebx, (%rcx,%rax,4)
	movq	32(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L73:
	movl	(%r9,%r8,4), %edx
	movb	$1, (%r15,%r8)
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	.L27
	movq	%r8, 40(%rsp)
	movq	%rax, %r8
.L12:
	movq	40(%rsp), %rax
	movq	(%r10,%rax,8), %rax
	movslq	(%rax,%r8,4), %r11
	cmpb	$0, (%r15,%r11)
	movl	%r11d, 60(%rsp)
	je	.L74
.L13:
	addq	$1, %r8
	cmpl	%r8d, %edx
	jg	.L12
.L27:
	movslq	vsz(%rip), %rax
	movl	72(%rsp), %edi
	leaq	vs(%rip), %rsi
	leal	1(%rax), %edx
	movl	%edi, (%rsi,%rax,4)
	movq	64(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L74:
	movl	(%r9,%r11,4), %edx
	movb	$1, (%r15,%r11)
	xorl	%esi, %esi
	testl	%edx, %edx
	jle	.L26
	movq	%r8, 104(%rsp)
	movq	%r11, %r8
.L14:
	movq	(%r10,%r8,8), %rax
	movslq	(%rax,%rsi,4), %rax
	cmpb	$0, (%r15,%rax)
	movl	%eax, 56(%rsp)
	je	.L75
.L15:
	addq	$1, %rsi
	cmpl	%esi, %edx
	jg	.L14
	movq	104(%rsp), %r8
.L26:
	movslq	vsz(%rip), %rax
	movl	60(%rsp), %ebx
	leaq	vs(%rip), %rdi
	leal	1(%rax), %edx
	movl	%ebx, (%rdi,%rax,4)
	movq	40(%rsp), %rax
	movl	%edx, vsz(%rip)
	movl	(%r9,%rax,4), %edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L75:
	movl	(%r9,%rax,4), %ecx
	movb	$1, (%r15,%rax)
	xorl	%r13d, %r13d
	testl	%ecx, %ecx
	jle	.L25
	movq	%rsi, 96(%rsp)
.L16:
	movq	(%r10,%rax,8), %rdx
	movslq	(%rdx,%r13,4), %r14
	cmpb	$0, (%r15,%r14)
	movq	%r14, %rsi
	je	.L76
.L17:
	addq	$1, %r13
	cmpl	%r13d, %ecx
	jg	.L16
	movq	96(%rsp), %rsi
.L25:
	movslq	vsz(%rip), %rax
	movl	56(%rsp), %ecx
	leaq	vs(%rip), %rdi
	leal	1(%rax), %edx
	movl	%ecx, (%rdi,%rax,4)
	movl	%edx, vsz(%rip)
	movl	(%r9,%r8,4), %edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L76:
	movl	(%r9,%r14,4), %edi
	movb	$1, (%r15,%r14)
	xorl	%ebp, %ebp
	testl	%edi, %edi
	jle	.L24
	movq	%r13, %rcx
	movq	%r14, %r13
.L18:
	movq	(%r10,%r13,8), %rdx
	movslq	(%rdx,%rbp,4), %r12
	cmpb	$0, (%r15,%r12)
	movq	%r12, %r14
	je	.L77
.L19:
	addq	$1, %rbp
	cmpl	%ebp, %edi
	jg	.L18
	movq	%rcx, %r13
.L24:
	movslq	vsz(%rip), %rdx
	leal	1(%rdx), %ecx
	movl	%ecx, vsz(%rip)
	leaq	vs(%rip), %rcx
	movl	%esi, (%rcx,%rdx,4)
	movl	(%r9,%rax,4), %ecx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L77:
	movl	(%r9,%r12,4), %r11d
	movb	$1, (%r15,%r12)
	xorl	%ebx, %ebx
	testl	%r11d, %r11d
	jle	.L23
.L20:
	movq	(%r10,%r12,8), %rdx
	movslq	(%rdx,%rbx,4), %rdx
	cmpb	$0, (%r15,%rdx)
	movq	%rdx, %rdi
	je	.L78
	addq	$1, %rbx
	cmpl	%ebx, %r11d
	jg	.L20
.L23:
	movslq	vsz(%rip), %rdx
	leaq	vs(%rip), %rbx
	leal	1(%rdx), %edi
	movl	%r14d, (%rbx,%rdx,4)
	movl	%edi, vsz(%rip)
	movl	(%r9,%r13,4), %edi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L78:
	movq	%rax, 136(%rsp)
	addq	$1, %rbx
	movq	%r8, 128(%rsp)
	movq	%rcx, 120(%rsp)
	movl	%esi, 116(%rsp)
	call	dfs
	leaq	hi(%rip), %r9
	movl	116(%rsp), %esi
	movq	120(%rsp), %rcx
	movl	(%r9,%r12,4), %r11d
	movq	128(%rsp), %r8
	leaq	to(%rip), %r10
	movq	136(%rsp), %rax
	cmpl	%ebx, %r11d
	jg	.L20
	jmp	.L23
	.cfi_endproc
.LFE36:
	.size	dfs, .-dfs
	.p2align 4
	.globl	rdfs
	.type	rdfs, @function
rdfs:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	r_hi(%rip), %r11
	leaq	used(%rip), %rcx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	cmp(%rip), %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movl	(%r11,%rax,4), %edx
	movb	$1, (%rcx,%rax)
	movl	%esi, 88(%rsp)
	movq	%rax, 72(%rsp)
	movl	%esi, (%rbx,%rax,4)
	movq	$0, 32(%rsp)
	testl	%edx, %edx
	jle	.L79
	leaq	r_to(%rip), %r9
.L80:
	movq	72(%rsp), %rax
	movq	32(%rsp), %rbx
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%rbx,4), %rax
	cmpb	$0, (%rcx,%rax)
	movq	%rax, 56(%rsp)
	je	.L143
.L81:
	addq	$1, 32(%rsp)
	movq	32(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L80
.L79:
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L143:
	.cfi_restore_state
	movl	88(%rsp), %edx
	leaq	cmp(%rip), %rdi
	movb	$1, (%rcx,%rax)
	movq	$0, 24(%rsp)
	movl	%edx, (%rdi,%rax,4)
	movl	(%r11,%rax,4), %edx
	testl	%edx, %edx
	jle	.L142
.L82:
	movq	56(%rsp), %rax
	movq	24(%rsp), %rbx
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%rbx,4), %rax
	cmpb	$0, (%rcx,%rax)
	movq	%rax, 40(%rsp)
	je	.L144
.L83:
	addq	$1, 24(%rsp)
	movq	24(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L82
.L142:
	movq	72(%rsp), %rax
	movl	(%r11,%rax,4), %edx
	jmp	.L81
	.p2align 4,,10
	.p2align 3
.L144:
	movl	88(%rsp), %ebx
	movl	(%r11,%rax,4), %edx
	leaq	cmp(%rip), %rdi
	movb	$1, (%rcx,%rax)
	movq	$0, 16(%rsp)
	movl	%ebx, (%rdi,%rax,4)
	testl	%edx, %edx
	jle	.L141
.L84:
	movq	40(%rsp), %rax
	movq	16(%rsp), %rbx
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%rbx,4), %r8
	cmpb	$0, (%rcx,%r8)
	je	.L145
.L85:
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L84
.L141:
	movq	56(%rsp), %rax
	movl	(%r11,%rax,4), %edx
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L145:
	movl	88(%rsp), %ebx
	movl	(%r11,%r8,4), %edx
	movb	$1, (%rcx,%r8)
	leaq	cmp(%rip), %rax
	movq	$0, 8(%rsp)
	movl	%ebx, (%rax,%r8,4)
	testl	%edx, %edx
	jle	.L140
	movq	%r8, 64(%rsp)
.L86:
	movq	64(%rsp), %rax
	movq	8(%rsp), %rbx
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%rbx,4), %r8
	cmpb	$0, (%rcx,%r8)
	je	.L146
.L87:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rax
	cmpl	%eax, %edx
	jg	.L86
.L140:
	movq	40(%rsp), %rax
	movl	(%r11,%rax,4), %edx
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L146:
	movl	88(%rsp), %edi
	movl	(%r11,%r8,4), %esi
	movb	$1, (%rcx,%r8)
	xorl	%r10d, %r10d
	leaq	cmp(%rip), %rax
	movl	%edi, (%rax,%r8,4)
	testl	%esi, %esi
	jle	.L139
	movq	%r8, 48(%rsp)
.L88:
	movq	48(%rsp), %rax
	movq	(%r9,%rax,8), %rax
	movslq	(%rax,%r10,4), %rdx
	cmpb	$0, (%rcx,%rdx)
	je	.L147
.L89:
	addq	$1, %r10
	cmpl	%r10d, %esi
	jg	.L88
.L139:
	movq	64(%rsp), %rax
	movl	(%r11,%rax,4), %edx
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L147:
	movl	88(%rsp), %ebx
	movl	(%r11,%rdx,4), %edi
	leaq	cmp(%rip), %rax
	movb	$1, (%rcx,%rdx)
	movl	%ebx, (%rax,%rdx,4)
	xorl	%eax, %eax
	testl	%edi, %edi
	jle	.L138
	movq	%r10, 80(%rsp)
	movl	88(%rsp), %r10d
.L90:
	movq	(%r9,%rdx,8), %rsi
	movslq	(%rsi,%rax,4), %r15
	cmpb	$0, (%rcx,%r15)
	je	.L148
.L91:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L90
	movq	80(%rsp), %r10
.L138:
	movq	48(%rsp), %rax
	movl	(%r11,%rax,4), %esi
	jmp	.L89
	.p2align 4,,10
	.p2align 3
.L148:
	leaq	cmp(%rip), %rdi
	movb	$1, (%rcx,%r15)
	xorl	%r14d, %r14d
	movl	%r10d, (%rdi,%r15,4)
	movl	(%r11,%r15,4), %edi
	testl	%edi, %edi
	jle	.L137
.L92:
	movq	(%r9,%r15,8), %rsi
	movslq	(%rsi,%r14,4), %r13
	cmpb	$0, (%rcx,%r13)
	je	.L149
.L93:
	addq	$1, %r14
	cmpl	%r14d, %edi
	jg	.L92
.L137:
	movl	(%r11,%rdx,4), %edi
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L149:
	movl	(%r11,%r13,4), %edi
	leaq	cmp(%rip), %rbx
	movb	$1, (%rcx,%r13)
	xorl	%ebp, %ebp
	movl	%r10d, (%rbx,%r13,4)
	testl	%edi, %edi
	jle	.L136
.L94:
	movq	(%r9,%r13,8), %rsi
	movslq	(%rsi,%rbp,4), %r12
	cmpb	$0, (%rcx,%r12)
	je	.L150
.L95:
	addq	$1, %rbp
	cmpl	%ebp, %edi
	jg	.L94
.L136:
	movl	(%r11,%r15,4), %edi
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L150:
	movl	(%r11,%r12,4), %r8d
	leaq	cmp(%rip), %rbx
	movb	$1, (%rcx,%r12)
	movl	%r10d, (%rbx,%r12,4)
	xorl	%ebx, %ebx
	testl	%r8d, %r8d
	jle	.L99
.L96:
	movq	(%r9,%r12,8), %rsi
	movslq	(%rsi,%rbx,4), %rsi
	cmpb	$0, (%rcx,%rsi)
	movq	%rsi, %rdi
	je	.L151
	addq	$1, %rbx
	cmpl	%ebx, %r8d
	jg	.L96
.L99:
	movl	(%r11,%r13,4), %edi
	jmp	.L95
	.p2align 4,,10
	.p2align 3
.L151:
	movl	%r10d, %esi
	movq	%rdx, 104(%rsp)
	addq	$1, %rbx
	movq	%rax, 96(%rsp)
	movl	%r10d, 92(%rsp)
	call	rdfs
	movl	92(%rsp), %r10d
	movq	96(%rsp), %rax
	leaq	r_hi(%rip), %r11
	movl	(%r11,%r12,4), %r8d
	movq	104(%rsp), %rdx
	leaq	r_to(%rip), %r9
	leaq	used(%rip), %rcx
	cmpl	%ebx, %r8d
	jg	.L96
	movl	(%r11,%r13,4), %edi
	jmp	.L95
	.cfi_endproc
.LFE37:
	.size	rdfs, .-rdfs
	.p2align 4
	.globl	scc
	.type	scc, @function
scc:
.LFB38:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$10002, %ecx
	xorl	%esi, %esi
	leaq	to(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	hi(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	used(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movslq	V(%rip), %r14
	movq	%r14, %rdx
	movq	%r14, %r12
	call	__memset_chk@PLT
	movl	$0, vsz(%rip)
	testl	%r14d, %r14d
	jg	.L153
	jmp	.L176
	.p2align 4,,10
	.p2align 3
.L155:
	addq	$1, %rbx
	cmpl	%ebx, %r12d
	jle	.L177
.L153:
	cmpb	$0, 0(%rbp,%rbx)
	movl	%ebx, %r14d
	jne	.L155
	movl	0(%r13,%rbx,4), %edx
	movb	$1, 0(%rbp,%rbx)
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L159
.L156:
	movq	(%r15,%rbx,8), %rax
	movslq	(%rax,%r12,4), %rax
	cmpb	$0, 0(%rbp,%rax)
	movq	%rax, %rdi
	je	.L178
	addq	$1, %r12
	cmpl	%r12d, %edx
	jg	.L156
.L159:
	movslq	vsz(%rip), %rax
	movl	V(%rip), %r12d
	leaq	vs(%rip), %rcx
	addq	$1, %rbx
	leal	1(%rax), %edx
	movl	%r14d, (%rcx,%rax,4)
	movl	%edx, vsz(%rip)
	cmpl	%ebx, %r12d
	jg	.L153
.L177:
	movl	vsz(%rip), %eax
	xorl	%esi, %esi
	movslq	%r12d, %rdx
	movl	$10002, %ecx
	movq	%rbp, %rdi
	leal	-1(%rax), %ebx
	call	__memset_chk@PLT
	testl	%ebx, %ebx
	js	.L167
	movslq	%ebx, %rbx
	leaq	vs(%rip), %r8
	xorl	%r15d, %r15d
	leaq	(%r8,%rbx,4), %r13
	leaq	r_hi(%rip), %r9
	leaq	r_to(%rip), %r14
	jmp	.L164
	.p2align 4,,10
	.p2align 3
.L160:
	leaq	-4(%r13), %rax
	cmpq	%r13, %r8
	je	.L152
.L170:
	movq	%rax, %r13
.L164:
	movslq	0(%r13), %r12
	cmpb	$0, 0(%rbp,%r12)
	jne	.L160
	leal	1(%r15), %eax
	movl	(%r9,%r12,4), %edx
	movb	$1, 0(%rbp,%r12)
	movl	%eax, 12(%rsp)
	leaq	cmp(%rip), %rax
	movl	%r15d, (%rax,%r12,4)
	testl	%edx, %edx
	jle	.L169
	xorl	%ebx, %ebx
.L163:
	movq	(%r14,%r12,8), %rax
	movslq	(%rax,%rbx,4), %rax
	cmpb	$0, 0(%rbp,%rax)
	movq	%rax, %rdi
	je	.L179
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jg	.L163
.L169:
	movl	12(%rsp), %r15d
.L180:
	leaq	-4(%r13), %rax
	cmpq	%r13, %r8
	jne	.L170
.L152:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r15d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L178:
	.cfi_restore_state
	call	dfs
	movl	0(%r13,%rbx,4), %edx
	addq	$1, %r12
	cmpl	%r12d, %edx
	jg	.L156
	jmp	.L159
	.p2align 4,,10
	.p2align 3
.L179:
	movl	%r15d, %esi
	addq	$1, %rbx
	call	rdfs
	leaq	r_hi(%rip), %r9
	leaq	vs(%rip), %r8
	movl	(%r9,%r12,4), %edx
	cmpl	%ebx, %edx
	jg	.L163
	movl	12(%rsp), %r15d
	jmp	.L180
.L176:
	movl	$10002, %ecx
	movq	%r14, %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	__memset_chk@PLT
	xorl	%r15d, %r15d
	jmp	.L152
.L167:
	xorl	%r15d, %r15d
	jmp	.L152
	.cfi_endproc
.LFE38:
	.size	scc, .-scc
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB39:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L190
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L183:
	xorl	%r12d, %r12d
	jmp	.L187
	.p2align 4,,10
	.p2align 3
.L184:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L181
.L185:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L187:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L184
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L181
	movq	stdin(%rip), %rdi
	jmp	.L185
	.p2align 4,,10
	.p2align 3
.L181:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L190:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L183
	.cfi_endproc
.LFE39:
	.size	in, .-in
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	in
	movl	%eax, V(%rip)
	xorl	%eax, %eax
	call	in
	leal	0(,%rax,8), %edi
	movl	%eax, 24(%rsp)
	movl	%eax, %ebx
	movslq	%edi, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rsp)
	testl	%ebx, %ebx
	jle	.L192
	movq	%rax, %rcx
	movq	%rax, %r15
	leal	-1(%rbx), %eax
	leaq	8(%rcx), %rbx
	movl	%eax, 28(%rsp)
	leaq	hi(%rip), %rbp
	movq	%rbx, 16(%rsp)
	leaq	(%rbx,%rax,8), %r13
	leaq	r_hi(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L205:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %r8
	cmpq	%r8, %rax
	jnb	.L256
	leaq	1(%rax), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rax), %eax
.L194:
	xorl	%r14d, %r14d
	jmp	.L198
	.p2align 4,,10
	.p2align 3
.L195:
	leaq	1(%rsi), %r10
	movq	%r10, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L197
.L196:
	movq	%r10, %rsi
.L198:
	leal	(%r14,%r14,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r14d
	cmpq	%r8, %rsi
	jb	.L195
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r10
	movq	16(%rdi), %r8
	cmpl	$47, %eax
	jg	.L196
	.p2align 4,,10
	.p2align 3
.L197:
	movl	%r14d, (%r15)
	cmpq	%r10, %r8
	jbe	.L257
	leaq	1(%r10), %r9
	movq	%r9, 8(%rdi)
	movzbl	(%r10), %eax
.L200:
	xorl	%ebx, %ebx
	jmp	.L204
	.p2align 4,,10
	.p2align 3
.L201:
	leaq	1(%r9), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%r9), %eax
	cmpl	$47, %eax
	jle	.L203
.L202:
	movq	8(%rdi), %r9
	movq	16(%rdi), %r8
.L204:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%r8, %r9
	jb	.L201
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L203
	movq	stdin(%rip), %rdi
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L203:
	movl	%ebx, 4(%r15)
	movslq	%r14d, %rdx
	movslq	%ebx, %rsi
	addq	$8, %r15
	addl	$1, 0(%rbp,%rdx,4)
	addl	$1, (%r12,%rsi,4)
	cmpq	%r15, %r13
	jne	.L205
	movl	V(%rip), %r13d
	testl	%r13d, %r13d
	jle	.L258
.L231:
	xorl	%r15d, %r15d
	leaq	to(%rip), %rbx
	jmp	.L210
	.p2align 4,,10
	.p2align 3
.L208:
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	jne	.L259
.L209:
	addq	$1, %r15
	cmpl	%r15d, %r13d
	jle	.L207
.L210:
	movl	0(%rbp,%r15,4), %eax
	testl	%eax, %eax
	je	.L208
	sall	$2, %eax
	movslq	%eax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx,%r15,8)
	movl	(%r12,%r15,4), %eax
	testl	%eax, %eax
	je	.L209
.L259:
	sall	$2, %eax
	movslq	%eax, %rdi
	call	malloc@PLT
	leaq	r_to(%rip), %rcx
	movq	%rax, (%rcx,%r15,8)
	addq	$1, %r15
	cmpl	%r15d, %r13d
	jg	.L210
.L207:
	sall	$2, %r13d
	movl	$40008, %ecx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	movslq	%r13d, %r13
	movq	%r13, %rdx
	call	__memset_chk@PLT
	movl	$40008, %ecx
	movq	%r13, %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	__memset_chk@PLT
	movq	8(%rsp), %rax
	addq	$8, %rax
	movq	%rax, 16(%rsp)
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L215
.L211:
	movl	28(%rsp), %eax
	movq	16(%rsp), %rcx
	leaq	to(%rip), %r8
	leaq	r_to(%rip), %rdi
	movq	8(%rsp), %rbx
	leaq	(%rcx,%rax,8), %r9
	.p2align 4,,10
	.p2align 3
.L214:
	movslq	(%rbx), %rcx
	movslq	4(%rbx), %rax
	addq	$8, %rbx
	movslq	0(%rbp,%rcx,4), %rdx
	movq	(%r8,%rcx,8), %r10
	movq	%rcx, %rsi
	leal	1(%rdx), %r11d
	movl	%r11d, 0(%rbp,%rcx,4)
	movq	(%rdi,%rax,8), %rcx
	movl	%eax, (%r10,%rdx,4)
	movslq	(%r12,%rax,4), %rdx
	leal	1(%rdx), %r10d
	movl	%r10d, (%r12,%rax,4)
	movl	%esi, (%rcx,%rdx,4)
	cmpq	%rbx, %r9
	jne	.L214
.L215:
	xorl	%eax, %eax
	leaq	cmp(%rip), %rbp
	call	scc
	xorl	%eax, %eax
	call	in
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L236
	.p2align 4,,10
	.p2align 3
.L230:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L260
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L217:
	xorl	%r13d, %r13d
	jmp	.L221
	.p2align 4,,10
	.p2align 3
.L218:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L220
.L219:
	movq	%rsi, %rdx
.L221:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L218
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L219
	.p2align 4,,10
	.p2align 3
.L220:
	cmpq	%rsi, %rcx
	jbe	.L261
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L223:
	xorl	%r12d, %r12d
	jmp	.L227
	.p2align 4,,10
	.p2align 3
.L224:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L226
.L225:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L227:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L224
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L226
	movq	stdin(%rip), %rdi
	jmp	.L225
	.p2align 4,,10
	.p2align 3
.L226:
	movslq	%r12d, %r12
	movslq	%r13d, %r13
	movl	$49, %edi
	movq	stdout(%rip), %rsi
	movl	0(%rbp,%r12,4), %eax
	cmpl	%eax, 0(%rbp,%r13,4)
	je	.L255
	movl	$48, %edi
.L255:
	call	putc@PLT
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	subl	$1, %ebx
	jne	.L230
.L236:
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L261:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L223
	.p2align 4,,10
	.p2align 3
.L260:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L217
	.p2align 4,,10
	.p2align 3
.L257:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r9
	movq	16(%rdi), %r8
	jmp	.L200
	.p2align 4,,10
	.p2align 3
.L256:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %r8
	jmp	.L194
.L192:
	movl	24(%rsp), %eax
	movl	V(%rip), %r13d
	leaq	hi(%rip), %rbp
	leaq	r_hi(%rip), %r12
	subl	$1, %eax
	movl	%eax, 28(%rsp)
	testl	%r13d, %r13d
	jg	.L231
	jmp	.L207
.L258:
	sall	$2, %r13d
	xorl	%esi, %esi
	movq	%rbp, %rdi
	movl	$40008, %ecx
	movslq	%r13d, %r13
	movq	%r13, %rdx
	call	__memset_chk@PLT
	movl	$40008, %ecx
	movq	%r13, %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	__memset_chk@PLT
	jmp	.L211
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	cmp
	.bss
	.align 32
	.type	cmp, @object
	.size	cmp, 40008
cmp:
	.zero	40008
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 10002
used:
	.zero	10002
	.globl	vsz
	.align 4
	.type	vsz, @object
	.size	vsz, 4
vsz:
	.zero	4
	.globl	vs
	.align 32
	.type	vs, @object
	.size	vs, 40008
vs:
	.zero	40008
	.globl	r_hi
	.align 32
	.type	r_hi, @object
	.size	r_hi, 40008
r_hi:
	.zero	40008
	.globl	r_to
	.align 32
	.type	r_to, @object
	.size	r_to, 80016
r_to:
	.zero	80016
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 40008
hi:
	.zero	40008
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 80016
to:
	.zero	80016
	.globl	V
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

// AOJ GRL_3_C Connected Components - Strongly Connected Components
// 2018.4.26 bal4u

#include <stdio.h>
#include <malloc.h>
#include <string.h>

#define MAX_V 10002
int  V;    // 頂点数
int  *to[MAX_V], hi[MAX_V];
int  *r_to[MAX_V], r_hi[MAX_V];
int  vs[MAX_V], vsz;
char used[MAX_V];
int  cmp[MAX_V];    // 属する強連結成分のトポロジカル順序

void add_edge(int _from, int _to)
{
	to[_from][hi[_from]++] = _to;
	r_to[_to][r_hi[_to]++] = _from;
}

void dfs(int v)
{
	int i;
	used[v] = 1;
	for (i = 0; i < hi[v]; i++) {
		if (!used[to[v][i]]) dfs(to[v][i]);
	}
	vs[vsz++] = v;
}

void rdfs(int v, int k)
{
	int i;
	used[v] = 1;
	cmp[v] = k;
	for (i = 0; i < r_hi[v]; i++) {
		if (!used[r_to[v][i]]) rdfs(r_to[v][i], k);
	}
}

#if 0
void init(int n)
{
	V = n;
	memset(  lim, 0, V<<2), memset(  hi, 0, V<<2);
	memset(r_lim, 0, V<<2), memset(r_hi, 0, V<<2);
}
#endif

// 強連結成分への分解
int scc()
{
	int v, i, k;
	memset(used, 0, V);
	vsz = 0;
	for (v = 0; v < V; v++) if (!used[v]) dfs(v);
	memset(used, 0, V);
	k = 0;
	for (i = vsz-1; i >= 0; i--) {
		if (!used[vs[i]]) rdfs(vs[i], k++);
	}
	return k;		// 得られた強連結成分の数
}

// バッファを経ずstdinから数値を得る
//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

int main()
{
	int E, Q, s, t, i, j;
	int *memo;

	V = in(), E = in();
	memo = malloc(E<<3);
	j = 0; for (i = 0; i < E; i++) {
		memo[j++] = s = in(), memo[j++] = t = in();
		hi[s]++, r_hi[t]++;

	}
	for (i = 0; i < V; i++) {
		if (  hi[i])   to[i] = malloc(  hi[i]<<2);
		if (r_hi[i]) r_to[i] = malloc(r_hi[i]<<2);
	}
	memset(hi, 0, V<<2), memset(r_hi, 0, V<<2);

	j = 0; while (E--) {
		s = memo[j++], t = memo[j++];
		add_edge(s, t);
	}

	scc();

	Q = in();
	while (Q--) {
		s = in(), t = in();
		putchar('0'+ (cmp[s] == cmp[t]));
		putchar('\n');
	}
	return 0;
}

5 6
0 1
1 0
0 2
2 4
4 3
3 2
4
0 1
0 3
2 3
3 4
 5 6
0 1
1 0
1 2
2 4
4 3
3 2
4
0 1
0 3
2 0
3 4
 5 6
0 1
1 0
1 2
2 4
4 0
3 2
4
0 1
0 3
2 0
3 4
 5 6
0 1
1 0
1 2
2 4
1 1
3 2
4
0 1
0 3
2 0
3 4
 7 6
0 1
1 0
1 2
2 4
4 3
3 2
4
1 2
0 3
2 3
3 4
 5 6
0 0
1 0
1 2
2 4
4 0
3 2
4
0 1
0 3
2 0
3 4
 5 6
0 1
1 0
1 2
2 4
4 1
3 2
4
0 1
0 0
2 0
3 4
 5 6
0 1
1 0
1 2
2 4
1 1
3 2
3
0 1
0 3
2 0
3 4
 5 6
0 0
1 0
1 2
2 4
4 0
0 2
4
0 1
0 3
2 0
3 4
 5 6
0 1
1 0
1 0
2 4
4 1
3 2
4
0 1
0 0
2 0
3 4

1
0
1
1
 1
0
0
1
 1
0
1
0
 1
0
0
0
 0
0
1
1
 0
0
0
0
 1
1
1
0
 1
0
0
 0
0
1
0
 1
1
0
0

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// AOJ GRL_3_C Connected Components - Strongly Connected Components
// 2018.4.26 bal4u

#include <stdio.h>
#include <malloc.h>
#include <string.h>

#define MAX_V 10002
int  V;    // 頂点数
int  *to[MAX_V], hi[MAX_V];
int  *r_to[MAX_V], r_hi[MAX_V];
int  vs[MAX_V], vsz;
char used[MAX_V];
int  cmp[MAX_V];    // 属する強連結成分のトポロジカル順序

void add_edge(int _from, int _to)
{
	to[_from][hi[_from]++] = _to;
	r_to[_to][r_hi[_to]++] = _from;
}

void dfs(int v)
{
	int i;
	used[v] = 1;
	for (i = 0; i < hi[v]; i++) {
		if (!used[to[v][i]]) dfs(to[v][i]);
	}
	vs[vsz++] = v;
}

void rdfs(int v, int k)
{
	int i;
	used[v] = 1;
	cmp[v] = k;
	for (i = 0; i < r_hi[v]; i++) {
		if (!used[r_to[v][i]]) rdfs(r_to[v][i], k);
	}
}

#if 0
void init(int n)
{
	V = n;
	memset(  lim, 0, V<<2), memset(  hi, 0, V<<2);
	memset(r_lim, 0, V<<2), memset(r_hi, 0, V<<2);
}
#endif

// 強連結成分への分解
int scc()
{
	int v, i, k;
	memset(used, 0, V);
	vsz = 0;
	for (v = 0; v < V; v++) if (!used[v]) dfs(v);
	memset(used, 0, V);
	k = 0;
	for (i = vsz-1; i >= 0; i--) {
		if (!used[vs[i]]) rdfs(vs[i], k++);
	}
	return k;		// 得られた強連結成分の数
}

// バッファを経ずstdinから数値を得る
//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

int main()
{
	int E, Q, s, t, i, j;
	int *memo;

	V = in(), E = in();
	memo = malloc(E<<3);
	j = 0; for (i = 0; i < E; i++) {
		memo[j++] = s = in(), memo[j++] = t = in();
		hi[s]++, r_hi[t]++;

	}
	for (i = 0; i < V; i++) {
		if (  hi[i])   to[i] = malloc(  hi[i]<<2);
		if (r_hi[i]) r_to[i] = malloc(r_hi[i]<<2);
	}
	memset(hi, 0, V<<2), memset(r_hi, 0, V<<2);

	j = 0; while (E--) {
		s = memo[j++], t = memo[j++];
		add_edge(s, t);
	}

	scc();

	Q = in();
	while (Q--) {
		s = in(), t = in();
		putchar('0'+ (cmp[s] == cmp[t]));
		putchar('\n');
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	V
	.bss
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 80016
to:
	.zero	80016
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 40008
hi:
	.zero	40008
	.globl	r_to
	.align 32
	.type	r_to, @object
	.size	r_to, 80016
r_to:
	.zero	80016
	.globl	r_hi
	.align 32
	.type	r_hi, @object
	.size	r_hi, 40008
r_hi:
	.zero	40008
	.globl	vs
	.align 32
	.type	vs, @object
	.size	vs, 40008
vs:
	.zero	40008
	.globl	vsz
	.align 4
	.type	vsz, @object
	.size	vsz, 4
vsz:
	.zero	4
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 10002
used:
	.zero	10002
	.globl	cmp
	.align 32
	.type	cmp, @object
	.size	cmp, 40008
cmp:
	.zero	40008
	.text
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	r_hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	add_edge, .-add_edge
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	$0, -4(%rbp)
	jmp	.L3
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	call	dfs
.L4:
	addl	$1, -4(%rbp)
.L3:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	movl	vsz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, vsz(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	vs(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.globl	rdfs
	.type	rdfs, @function
rdfs:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cmp(%rip), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -4(%rbp)
	jmp	.L7
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L8
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-24(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	rdfs
.L8:
	addl	$1, -4(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	rdfs, .-rdfs
	.globl	scc
	.type	scc, @function
scc:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	V(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, vsz(%rip)
	movl	$0, -12(%rbp)
	jmp	.L11
.L13:
	movl	-12(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L12
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	dfs
.L12:
	addl	$1, -12(%rbp)
.L11:
	movl	V(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L13
	movl	V(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	vsz(%rip), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L14
.L16:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	vs(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L15
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -4(%rbp)
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	vs(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	rdfs
.L15:
	subl	$1, -8(%rbp)
.L14:
	cmpl	$0, -8(%rbp)
	jns	.L16
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	scc, .-scc
	.globl	in
	.type	in, @function
in:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L19:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L19
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	in, .-in
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, V(%rip)
	movl	$0, %eax
	call	in
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	sall	$3, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L22
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -24(%rbp)
.L22:
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jl	.L23
	movl	$0, -24(%rbp)
	jmp	.L24
.L27:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L25
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L25:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L26
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L26:
	addl	$1, -24(%rbp)
.L24:
	movl	V(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L27
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	hi(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	r_hi(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -20(%rbp)
	jmp	.L28
.L29:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
.L28:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L29
	movl	$0, %eax
	call	scc
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	jmp	.L30
.L33:
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cmp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cmp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L31
	movl	$49, %eax
	jmp	.L32
.L31:
	movl	$48, %eax
.L32:
	movl	%eax, %edi
	call	putchar@PLT
	movl	$10, %edi
	call	putchar@PLT
.L30:
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -28(%rbp)
	testl	%eax, %eax
	jne	.L33
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	V
	.bss
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 80016
to:
	.zero	80016
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 40008
hi:
	.zero	40008
	.globl	r_to
	.align 32
	.type	r_to, @object
	.size	r_to, 80016
r_to:
	.zero	80016
	.globl	r_hi
	.align 32
	.type	r_hi, @object
	.size	r_hi, 40008
r_hi:
	.zero	40008
	.globl	vs
	.align 32
	.type	vs, @object
	.size	vs, 40008
vs:
	.zero	40008
	.globl	vsz
	.align 4
	.type	vsz, @object
	.size	vsz, 4
vsz:
	.zero	4
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 10002
used:
	.zero	10002
	.globl	cmp
	.align 32
	.type	cmp, @object
	.size	cmp, 40008
cmp:
	.zero	40008
	.text
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdi
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	r_hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	salq	$2, %rax
	leaq	(%rdi,%rax), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	add_edge, .-add_edge
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	$0, -4(%rbp)
	jmp	.L3
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	call	dfs
.L4:
	addl	$1, -4(%rbp)
.L3:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	movl	vsz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, vsz(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	vs(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.globl	rdfs
	.type	rdfs, @function
rdfs:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cmp(%rip), %rdx
	movl	-24(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -4(%rbp)
	jmp	.L7
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L8
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-24(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	rdfs
.L8:
	addl	$1, -4(%rbp)
.L7:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	rdfs, .-rdfs
	.globl	scc
	.type	scc, @function
scc:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	V(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, vsz(%rip)
	movl	$0, -12(%rbp)
	jmp	.L11
.L13:
	movl	-12(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L12
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	dfs
.L12:
	addl	$1, -12(%rbp)
.L11:
	movl	V(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L13
	movl	V(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	vsz(%rip), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L14
.L16:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	vs(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	used(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L15
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -4(%rbp)
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	vs(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	rdfs
.L15:
	subl	$1, -8(%rbp)
.L14:
	cmpl	$0, -8(%rbp)
	jns	.L16
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	scc, .-scc
	.globl	in
	.type	in, @function
in:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L19:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L19
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	in, .-in
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, V(%rip)
	movl	$0, %eax
	call	in
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	sall	$3, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L22
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rdx)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -24(%rbp)
.L22:
	movl	-24(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jl	.L23
	movl	$0, -24(%rbp)
	jmp	.L24
.L27:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L25
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	to(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L25:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L26
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	r_hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	r_to(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L26:
	addl	$1, -24(%rbp)
.L24:
	movl	V(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L27
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	hi(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	r_hi(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -20(%rbp)
	jmp	.L28
.L29:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -20(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	add_edge
.L28:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L29
	movl	$0, %eax
	call	scc
	movl	$0, %eax
	call	in
	movl	%eax, -28(%rbp)
	jmp	.L30
.L33:
	movl	$0, %eax
	call	in
	movl	%eax, -16(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cmp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cmp(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L31
	movl	$49, %eax
	jmp	.L32
.L31:
	movl	$48, %eax
.L32:
	movl	%eax, %edi
	call	putchar@PLT
	movl	$10, %edi
	call	putchar@PLT
.L30:
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -28(%rbp)
	testl	%eax, %eax
	jne	.L33
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
