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

```c
#include <stdio.h>

int count = 0;

void dfs(int ver, int v[][10], int seen[], int n, int m){
	int end = 1;
	for(int i=0; i < n; i++) {
		if(!seen[i] && i != ver)
			end = 0;
	}
	if(end) {
		count++;
		return;
	}

	seen[ver] = 1;
	for(int i=0; v[ver][i]; i++) {
		if(seen[v[ver][i]-1])
			continue;
		dfs(v[ver][i]-1, v, seen, n, m);
	}
	seen[ver] = 0;
}

int main(void){
	int n, m, a, b, idx[8] = {0};
	int v[8][10] = {{0}};
	int seen[8] = {0};

	scanf("%d%d", &n, &m);
	for(int i=0; i < m; i++) {
		scanf("%d%d", &a, &b);
		a--; b--;
		v[a][idx[a]++] = b+1;
		v[b][idx[b]++] = a+1;
	}

	dfs(0, v, seen, n, m);
	printf("%d", count);

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -24(%rbp)
	movl	%r8d, -44(%rbp)
	movl	$1, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L3
	movl	$0, -12(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L4
	cmpl	$0, -12(%rbp)
	je	.L5
	movl	count(%rip), %eax
	addl	$1, %eax
	movl	%eax, count(%rip)
	jmp	.L1
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -4(%rbp)
	jmp	.L7
.L10:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	leal	-1(%rax), %edi
	movl	-44(%rbp), %esi
	movl	-24(%rbp), %ecx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movl	%esi, %r8d
	movq	%rax, %rsi
	call	dfs
	jmp	.L9
.L11:
	nop
.L9:
	addl	$1, -4(%rbp)
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -400(%rbp)
	movq	$0, -392(%rbp)
	movq	$0, -384(%rbp)
	movq	$0, -376(%rbp)
	leaq	-336(%rbp), %rdx
	movl	$0, %eax
	movl	$40, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$0, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	$0, -352(%rbp)
	movq	$0, -344(%rbp)
	leaq	-416(%rbp), %rdx
	leaq	-420(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -404(%rbp)
	jmp	.L13
.L14:
	leaq	-408(%rbp), %rdx
	leaq	-412(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-412(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -412(%rbp)
	movl	-408(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -408(%rbp)
	movl	-408(%rbp), %edi
	movl	-412(%rbp), %esi
	movl	-412(%rbp), %edx
	movslq	%edx, %rax
	movl	-400(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	movl	%ecx, -400(%rbp,%rdx,4)
	leal	1(%rdi), %ecx
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%ecx, -336(%rbp,%rax,4)
	movl	-412(%rbp), %edi
	movl	-408(%rbp), %esi
	movl	-408(%rbp), %edx
	movslq	%edx, %rax
	movl	-400(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	movl	%ecx, -400(%rbp,%rdx,4)
	leal	1(%rdi), %ecx
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%ecx, -336(%rbp,%rax,4)
	addl	$1, -404(%rbp)
.L13:
	movl	-416(%rbp), %eax
	cmpl	%eax, -404(%rbp)
	jl	.L14
	movl	-416(%rbp), %esi
	movl	-420(%rbp), %ecx
	leaq	-368(%rbp), %rdx
	leaq	-336(%rbp), %rax
	movl	%esi, %r8d
	movq	%rax, %rsi
	movl	$0, %edi
	call	dfs
	movl	count(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	dfs
	.type	dfs, @function
dfs:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%ecx, %ecx
	jle	.L44
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leal	-1(%rcx), %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%r8d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%ecx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	cmpl	$2, %eax
	jbe	.L19
	movq	%rdx, %rax
	movl	%ecx, %edx
	movd	%edi, %xmm7
	movdqa	.LC0(%rip), %xmm2
	shrl	$2, %edx
	pshufd	$0, %xmm7, %xmm6
	pxor	%xmm4, %xmm4
	movdqa	.LC1(%rip), %xmm3
	subl	$1, %edx
	movdqa	.LC2(%rip), %xmm5
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm2, %xmm1
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	paddd	%xmm5, %xmm2
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm4, %xmm0
	pcmpeqd	%xmm4, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	cmpq	%rdx, %rax
	jne	.L4
	movdqa	%xmm0, %xmm1
	movl	%ebp, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	testb	$3, %bpl
	je	.L5
.L3:
	movslq	%edx, %rcx
	movl	(%rbx,%rcx,4), %r9d
	leaq	0(,%rcx,4), %rsi
	testl	%r9d, %r9d
	jne	.L22
	cmpl	%edx, %edi
	je	.L22
	addl	$1, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ebp
	jle	.L10
.L18:
	movl	4(%rbx,%rsi), %r8d
	testl	%r8d, %r8d
	jne	.L23
	cmpl	%edx, %edi
	je	.L23
	addl	$1, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ebp
	jle	.L10
.L17:
	movl	8(%rbx,%rsi), %ecx
	testl	%ecx, %ecx
	jne	.L5
	cmpl	%edx, %edi
	je	.L5
.L10:
	movslq	%edi, %rdi
	leaq	0(,%rdi,4), %rax
	leaq	(%rbx,%rax), %r15
	addq	%rdi, %rax
	leaq	0(%r13,%rax,8), %r12
	movl	$1, (%r15)
	movl	(%r12), %edi
	testl	%edi, %edi
	je	.L13
	addq	$4, %r12
.L16:
	movslq	%edi, %rax
	movl	-4(%rbx,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	subl	$1, %edi
	movl	%r14d, %r8d
	movl	%ebp, %ecx
	movq	%rbx, %rdx
	movq	%r13, %rsi
	addq	$4, %r12
	call	dfs
	movl	-4(%r12), %edi
	testl	%edi, %edi
	jne	.L16
.L13:
	movl	$0, (%r15)
	addq	$8, %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
.L14:
	.cfi_restore_state
	movl	(%r12), %edi
	addq	$4, %r12
	testl	%edi, %edi
	jne	.L16
	jmp	.L13
.L22:
	addl	$1, %edx
	cmpl	%ebp, %edx
	jl	.L18
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	je	.L10
	addl	$1, count(%rip)
	addq	$8, %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
.L19:
	.cfi_restore_state
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L3
.L23:
	addl	$1, %edx
	cmpl	%edx, %ebp
	jg	.L17
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	addl	$1, count(%rip)
	ret
	.cfi_endproc
.LFE23:
	.size	dfs, .-dfs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%d"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$40, %ecx
	pxor	%xmm0, %xmm0
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC3(%rip), %rbx
	subq	$416, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 408(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %r13
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	movq	%r13, %rdi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	rep stosq
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L49
	xorl	%r14d, %r14d
	leaq	12(%rsp), %r12
	leaq	8(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L50:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	addl	$1, %r14d
	leal	-1(%rsi), %edx
	leal	-1(%rdi), %eax
	movl	%edx, 8(%rsp)
	movslq	%edx, %rdx
	movslq	16(%rsp,%rdx,4), %rcx
	movl	%eax, 12(%rsp)
	cltq
	leal	1(%rcx), %r8d
	movl	%r8d, 16(%rsp,%rdx,4)
	leaq	(%rdx,%rdx,4), %rdx
	movl	4(%rsp), %r8d
	leaq	(%rcx,%rdx,2), %rdx
	movl	%edi, 80(%rsp,%rdx,4)
	movslq	16(%rsp,%rax,4), %rdx
	leal	1(%rdx), %ecx
	movl	%ecx, 16(%rsp,%rax,4)
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,2), %rax
	movl	%esi, 80(%rsp,%rax,4)
	cmpl	%r14d, %r8d
	jg	.L50
.L49:
	movl	(%rsp), %ecx
	xorl	%edi, %edi
	leaq	48(%rsp), %rdx
	movq	%r13, %rsi
	call	dfs
	movl	count(%rip), %edx
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	addq	$416, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	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	dfs
	.type	dfs, @function
dfs:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%ecx, %ecx
	jle	.L44
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leal	-1(%rcx), %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%r8d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%ecx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	cmpl	$2, %eax
	jbe	.L19
	movq	%rdx, %rax
	movl	%ecx, %edx
	movd	%edi, %xmm7
	movdqa	.LC0(%rip), %xmm2
	shrl	$2, %edx
	pshufd	$0, %xmm7, %xmm6
	pxor	%xmm4, %xmm4
	movdqa	.LC1(%rip), %xmm3
	subl	$1, %edx
	movdqa	.LC2(%rip), %xmm5
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm2, %xmm1
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	paddd	%xmm5, %xmm2
	pcmpeqd	%xmm6, %xmm1
	pcmpeqd	%xmm4, %xmm0
	pcmpeqd	%xmm4, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	cmpq	%rdx, %rax
	jne	.L4
	movdqa	%xmm0, %xmm1
	movl	%ebp, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	testb	$3, %bpl
	je	.L5
.L3:
	movslq	%edx, %rcx
	movl	(%rbx,%rcx,4), %r9d
	leaq	0(,%rcx,4), %rsi
	testl	%r9d, %r9d
	jne	.L22
	cmpl	%edx, %edi
	je	.L22
	addl	$1, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ebp
	jle	.L10
.L18:
	movl	4(%rbx,%rsi), %r8d
	testl	%r8d, %r8d
	jne	.L23
	cmpl	%edx, %edi
	je	.L23
	addl	$1, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ebp
	jle	.L10
.L17:
	movl	8(%rbx,%rsi), %ecx
	testl	%ecx, %ecx
	jne	.L5
	cmpl	%edx, %edi
	je	.L5
.L10:
	movslq	%edi, %rdi
	leaq	0(,%rdi,4), %rax
	leaq	(%rbx,%rax), %r15
	addq	%rdi, %rax
	leaq	0(%r13,%rax,8), %r12
	movl	$1, (%r15)
	movl	(%r12), %edi
	testl	%edi, %edi
	je	.L13
	addq	$4, %r12
.L16:
	movslq	%edi, %rax
	movl	-4(%rbx,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	subl	$1, %edi
	movl	%r14d, %r8d
	movl	%ebp, %ecx
	movq	%rbx, %rdx
	movq	%r13, %rsi
	addq	$4, %r12
	call	dfs
	movl	-4(%r12), %edi
	testl	%edi, %edi
	jne	.L16
.L13:
	movl	$0, (%r15)
	addq	$8, %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
.L14:
	.cfi_restore_state
	movl	(%r12), %edi
	addq	$4, %r12
	testl	%edi, %edi
	jne	.L16
	jmp	.L13
.L22:
	addl	$1, %edx
	cmpl	%ebp, %edx
	jl	.L18
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	je	.L10
	addl	$1, count(%rip)
	addq	$8, %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
.L19:
	.cfi_restore_state
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L3
.L23:
	addl	$1, %edx
	cmpl	%edx, %ebp
	jg	.L17
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	addl	$1, count(%rip)
	ret
	.cfi_endproc
.LFE23:
	.size	dfs, .-dfs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%d"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$40, %ecx
	pxor	%xmm0, %xmm0
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC3(%rip), %rbx
	subq	$416, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 408(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %r13
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	movq	%r13, %rdi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	rep stosq
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L49
	xorl	%r14d, %r14d
	leaq	12(%rsp), %r12
	leaq	8(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L50:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	addl	$1, %r14d
	leal	-1(%rsi), %edx
	leal	-1(%rdi), %eax
	movl	%edx, 8(%rsp)
	movslq	%edx, %rdx
	movslq	16(%rsp,%rdx,4), %rcx
	movl	%eax, 12(%rsp)
	cltq
	leal	1(%rcx), %r8d
	movl	%r8d, 16(%rsp,%rdx,4)
	leaq	(%rdx,%rdx,4), %rdx
	movl	4(%rsp), %r8d
	leaq	(%rcx,%rdx,2), %rdx
	movl	%edi, 80(%rsp,%rdx,4)
	movslq	16(%rsp,%rax,4), %rdx
	leal	1(%rdx), %ecx
	movl	%ecx, 16(%rsp,%rax,4)
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,2), %rax
	movl	%esi, 80(%rsp,%rax,4)
	cmpl	%r14d, %r8d
	jg	.L50
.L49:
	movl	(%rsp), %ecx
	xorl	%edi, %edi
	leaq	48(%rsp), %rdx
	movq	%r13, %rsi
	call	dfs
	movl	count(%rip), %edx
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	408(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	addq	$416, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	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:

#include <stdio.h>

int count = 0;

void dfs(int ver, int v[][10], int seen[], int n, int m){
	int end = 1;
	for(int i=0; i < n; i++) {
		if(!seen[i] && i != ver)
			end = 0;
	}
	if(end) {
		count++;
		return;
	}

	seen[ver] = 1;
	for(int i=0; v[ver][i]; i++) {
		if(seen[v[ver][i]-1])
			continue;
		dfs(v[ver][i]-1, v, seen, n, m);
	}
	seen[ver] = 0;
}

int main(void){
	int n, m, a, b, idx[8] = {0};
	int v[8][10] = {{0}};
	int seen[8] = {0};

	scanf("%d%d", &n, &m);
	for(int i=0; i < m; i++) {
		scanf("%d%d", &a, &b);
		a--; b--;
		v[a][idx[a]++] = b+1;
		v[b][idx[b]++] = a+1;
	}

	dfs(0, v, seen, n, m);
	printf("%d", count);

	return 0;
}

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

0 1 0 0 0 0 0 0 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
#include <stdio.h>

int count = 0;

void dfs(int ver, int v[][10], int seen[], int n, int m){
	int end = 1;
	for(int i=0; i < n; i++) {
		if(!seen[i] && i != ver)
			end = 0;
	}
	if(end) {
		count++;
		return;
	}

	seen[ver] = 1;
	for(int i=0; v[ver][i]; i++) {
		if(seen[v[ver][i]-1])
			continue;
		dfs(v[ver][i]-1, v, seen, n, m);
	}
	seen[ver] = 0;
}

int main(void){
	int n, m, a, b, idx[8] = {0};
	int v[8][10] = {{0}};
	int seen[8] = {0};

	scanf("%d%d", &n, &m);
	for(int i=0; i < m; i++) {
		scanf("%d%d", &a, &b);
		a--; b--;
		v[a][idx[a]++] = b+1;
		v[b][idx[b]++] = a+1;
	}

	dfs(0, v, seen, n, m);
	printf("%d", count);

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -24(%rbp)
	movl	%r8d, -44(%rbp)
	movl	$1, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L3
	movl	$0, -12(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L4
	cmpl	$0, -12(%rbp)
	je	.L5
	movl	count(%rip), %eax
	addl	$1, %eax
	movl	%eax, count(%rip)
	jmp	.L1
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -4(%rbp)
	jmp	.L7
.L10:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	leal	-1(%rax), %edi
	movl	-44(%rbp), %esi
	movl	-24(%rbp), %ecx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movl	%esi, %r8d
	movq	%rax, %rsi
	call	dfs
	jmp	.L9
.L11:
	nop
.L9:
	addl	$1, -4(%rbp)
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -400(%rbp)
	movq	$0, -392(%rbp)
	movq	$0, -384(%rbp)
	movq	$0, -376(%rbp)
	leaq	-336(%rbp), %rdx
	movl	$0, %eax
	movl	$40, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$0, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	$0, -352(%rbp)
	movq	$0, -344(%rbp)
	leaq	-416(%rbp), %rdx
	leaq	-420(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -404(%rbp)
	jmp	.L13
.L14:
	leaq	-408(%rbp), %rdx
	leaq	-412(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-412(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -412(%rbp)
	movl	-408(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -408(%rbp)
	movl	-408(%rbp), %edi
	movl	-412(%rbp), %esi
	movl	-412(%rbp), %edx
	movslq	%edx, %rax
	movl	-400(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	movl	%ecx, -400(%rbp,%rdx,4)
	leal	1(%rdi), %ecx
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%ecx, -336(%rbp,%rax,4)
	movl	-412(%rbp), %edi
	movl	-408(%rbp), %esi
	movl	-408(%rbp), %edx
	movslq	%edx, %rax
	movl	-400(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	movl	%ecx, -400(%rbp,%rdx,4)
	leal	1(%rdi), %ecx
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%ecx, -336(%rbp,%rax,4)
	addl	$1, -404(%rbp)
.L13:
	movl	-416(%rbp), %eax
	cmpl	%eax, -404(%rbp)
	jl	.L14
	movl	-416(%rbp), %esi
	movl	-420(%rbp), %ecx
	leaq	-368(%rbp), %rdx
	leaq	-336(%rbp), %rax
	movl	%esi, %r8d
	movq	%rax, %rsi
	movl	$0, %edi
	call	dfs
	movl	count(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -24(%rbp)
	movl	%r8d, -44(%rbp)
	movl	$1, -12(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L3
	movl	$0, -12(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L4
	cmpl	$0, -12(%rbp)
	je	.L5
	movl	count(%rip), %eax
	addl	$1, %eax
	movl	%eax, count(%rip)
	jmp	.L1
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -4(%rbp)
	jmp	.L7
.L10:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	leal	-1(%rax), %edi
	movl	-44(%rbp), %esi
	movl	-24(%rbp), %ecx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	movl	%esi, %r8d
	movq	%rax, %rsi
	call	dfs
	jmp	.L9
.L11:
	nop
.L9:
	addl	$1, -4(%rbp)
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -400(%rbp)
	movq	$0, -392(%rbp)
	movq	$0, -384(%rbp)
	movq	$0, -376(%rbp)
	leaq	-336(%rbp), %rdx
	movl	$0, %eax
	movl	$40, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	$0, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	$0, -352(%rbp)
	movq	$0, -344(%rbp)
	leaq	-416(%rbp), %rdx
	leaq	-420(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -404(%rbp)
	jmp	.L13
.L14:
	leaq	-408(%rbp), %rdx
	leaq	-412(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-412(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -412(%rbp)
	movl	-408(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -408(%rbp)
	movl	-408(%rbp), %edi
	movl	-412(%rbp), %esi
	movl	-412(%rbp), %edx
	movslq	%edx, %rax
	movl	-400(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	movl	%ecx, -400(%rbp,%rdx,4)
	leal	1(%rdi), %ecx
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%ecx, -336(%rbp,%rax,4)
	movl	-412(%rbp), %edi
	movl	-408(%rbp), %esi
	movl	-408(%rbp), %edx
	movslq	%edx, %rax
	movl	-400(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	movl	%ecx, -400(%rbp,%rdx,4)
	leal	1(%rdi), %ecx
	movslq	%eax, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%ecx, -336(%rbp,%rax,4)
	addl	$1, -404(%rbp)
.L13:
	movl	-416(%rbp), %eax
	cmpl	%eax, -404(%rbp)
	jl	.L14
	movl	-416(%rbp), %esi
	movl	-420(%rbp), %ecx
	leaq	-368(%rbp), %rdx
	leaq	-336(%rbp), %rax
	movl	%esi, %r8d
	movq	%rax, %rsi
	movl	$0, %edi
	call	dfs
	movl	count(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
