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>

typedef struct List {
	struct List *next;
	int v;
} list;

int main()
{
	int i, N, u, w;
	list *adj[100001] = {}, e[200001];
	scanf("%d", &N);
	for (i = 0; i < N - 1; i++) {
		scanf("%d %d", &u, &w);
		e[i*2].v = w;
		e[i*2+1].v = u;
		e[i*2].next = adj[u];
		e[i*2+1].next = adj[w];
		adj[u] = &(e[i*2]);
		adj[w] = &(e[i*2+1]);
	}
	
	int par[100001] = {}, q[100001], head, tail;
	list *p;
	par[1] = 1;
	q[0] = 1;
	for (head = 0, tail = 1; head < tail; head++) {
		u = q[head];
		for (p = adj[u]; p != NULL; p = p->next) {
			w = p->v;
			if (par[w] == 0) {
				par[w] = u;
				q[tail++] = w;
			}
		}
	}
	
	int ans[100001] = {};
	for (head--; head > 0; head--) {
		u = q[head];
		ans[u]++;
		ans[par[u]] ^= ans[u];
	}
	
	if (ans[1] == 0) printf("Bob\n");
	else printf("Alice\n");
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Bob"
.LC3:
	.string	"Alice"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-5197824(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000048(%rbp), %rax
	movl	$800008, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-5200128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5200116(%rbp)
	jmp	.L2
.L3:
	leaq	-5200120(%rbp), %rdx
	leaq	-5200124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5200116(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-5200120(%rbp), %eax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200024, %rdx
	movl	%eax, (%rdx)
	movl	-5200116(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-5200124(%rbp), %eax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200024, %rdx
	movl	%eax, (%rdx)
	movl	-5200124(%rbp), %eax
	movl	-5200116(%rbp), %edx
	addl	%edx, %edx
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200032, %rdx
	movq	%rax, (%rdx)
	movl	-5200120(%rbp), %eax
	movl	-5200116(%rbp), %edx
	addl	%edx, %edx
	addl	$1, %edx
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200032, %rdx
	movq	%rax, (%rdx)
	movl	-5200116(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-5200124(%rbp), %eax
	leaq	-3200032(%rbp), %rcx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -4000048(%rbp,%rax,8)
	movl	-5200116(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-5200120(%rbp), %eax
	leaq	-3200032(%rbp), %rcx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -4000048(%rbp,%rax,8)
	addl	$1, -5200116(%rbp)
.L2:
	movl	-5200128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -5200116(%rbp)
	jl	.L3
	leaq	-5200096(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -5200092(%rbp)
	movl	$1, -4800080(%rbp)
	movl	$0, -5200112(%rbp)
	movl	$1, -5200108(%rbp)
	jmp	.L4
.L8:
	movl	-5200112(%rbp), %eax
	cltq
	movl	-4800080(%rbp,%rax,4), %eax
	movl	%eax, -5200124(%rbp)
	movl	-5200124(%rbp), %eax
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movq	%rax, -5200104(%rbp)
	jmp	.L5
.L7:
	movq	-5200104(%rbp), %rax
	movl	8(%rax), %eax
	movl	%eax, -5200120(%rbp)
	movl	-5200120(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-5200120(%rbp), %eax
	movl	-5200124(%rbp), %edx
	cltq
	movl	%edx, -5200096(%rbp,%rax,4)
	movl	-5200108(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -5200108(%rbp)
	movl	-5200120(%rbp), %edx
	cltq
	movl	%edx, -4800080(%rbp,%rax,4)
.L6:
	movq	-5200104(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -5200104(%rbp)
.L5:
	cmpq	$0, -5200104(%rbp)
	jne	.L7
	addl	$1, -5200112(%rbp)
.L4:
	movl	-5200112(%rbp), %eax
	cmpl	-5200108(%rbp), %eax
	jl	.L8
	leaq	-4400064(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	subl	$1, -5200112(%rbp)
	jmp	.L9
.L10:
	movl	-5200112(%rbp), %eax
	cltq
	movl	-4800080(%rbp,%rax,4), %eax
	movl	%eax, -5200124(%rbp)
	movl	-5200124(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4400064(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -4400064(%rbp,%rax,4)
	movl	-5200124(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	cltq
	movl	-4400064(%rbp,%rax,4), %ecx
	movl	-5200124(%rbp), %eax
	cltq
	movl	-4400064(%rbp,%rax,4), %edx
	movl	-5200124(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	xorl	%ecx, %edx
	cltq
	movl	%edx, -4400064(%rbp,%rax,4)
	subl	$1, -5200112(%rbp)
.L9:
	cmpl	$0, -5200112(%rbp)
	jg	.L10
	movl	-4400060(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L12
.L11:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Bob"
.LC3:
	.string	"Alice"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	-5197824(%rsp), %r11
	.cfi_def_cfa 11, 5197880
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2296, %rsp
	.cfi_def_cfa_offset 5200176
	xorl	%esi, %esi
	movl	$800008, %edx
	movq	%fs:40, %rax
	movq	%rax, 5200104(%rsp)
	xorl	%eax, %eax
	leaq	1200064(%rsp), %rdi
	call	memset@PLT
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 4(%rsp)
	jle	.L5
	leaq	2000080(%rsp), %rbp
	xorl	%r15d, %r15d
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rdx
	movslq	12(%rsp), %rax
	addl	$1, %r15d
	movq	1200064(%rsp,%rdx,8), %rcx
	movl	%edx, 24(%rbp)
	movl	%eax, 8(%rbp)
	movq	%rcx, 0(%rbp)
	movq	1200064(%rsp,%rax,8), %rcx
	movq	%rbp, 1200064(%rsp,%rdx,8)
	leaq	16(%rbp), %rdx
	addq	$32, %rbp
	movq	%rdx, 1200064(%rsp,%rax,8)
	movl	4(%rsp), %eax
	movq	%rcx, -16(%rbp)
	subl	$1, %eax
	cmpl	%r15d, %eax
	jg	.L4
.L5:
	leaq	16(%rsp), %rdi
	movl	$400004, %edx
	xorl	%esi, %esi
	call	memset@PLT
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	movl	$1, %edx
	movl	$1, 20(%rsp)
	leaq	400032(%rsp), %rbp
	movl	$1, 400032(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	0(%rbp,%rdi,4), %rax
	movl	%edi, %r12d
	movl	%edi, %r13d
	movq	%rax, %rsi
	movq	1200064(%rsp,%rax,8), %rax
	testq	%rax, %rax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	8(%rax), %rcx
	movl	16(%rsp,%rcx,4), %r8d
	movq	%rcx, %rbx
	testl	%r8d, %r8d
	jne	.L7
	movq	(%rax), %rax
	movl	%esi, 16(%rsp,%rcx,4)
	leal	1(%rdx), %ecx
	movl	%ebx, 400032(%rsp,%rdx,4)
	movslq	%ecx, %rdx
	testq	%rax, %rax
	jne	.L9
.L17:
	movl	$1, %ecx
.L6:
	addq	$1, %rdi
	cmpl	%edi, %edx
	jg	.L3
	movl	%esi, 8(%rsp)
	testb	%cl, %cl
	je	.L10
	movl	%ebx, 12(%rsp)
.L10:
	xorl	%esi, %esi
	leaq	800048(%rsp), %rdi
	movl	$400004, %edx
	call	memset@PLT
	testl	%r13d, %r13d
	je	.L11
	movslq	%r13d, %rdx
	salq	$2, %rdx
	leaq	400028(%rsp,%rdx), %r9
	leaq	0(%rbp,%rdx), %rax
	leal	-1(%r12), %edx
	salq	$2, %rdx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	(%rax), %rcx
	subq	$4, %rax
	movl	800048(%rsp,%rcx,4), %esi
	leal	1(%rsi), %edx
	movslq	16(%rsp,%rcx,4), %rsi
	movl	%edx, 800048(%rsp,%rcx,4)
	movl	800048(%rsp,%rsi,4), %edi
	xorl	%edx, %edi
	movl	%edi, 800048(%rsp,%rsi,4)
	cmpq	%rax, %r9
	jne	.L12
	movl	%edx, 800048(%rsp,%rcx,4)
	movl	%ecx, 8(%rsp)
	movl	%edi, 800048(%rsp,%rsi,4)
.L11:
	movl	800052(%rsp), %eax
	testl	%eax, %eax
	jne	.L13
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L14:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	5200104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$5200120, %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
.L7:
	.cfi_restore_state
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L9
	jmp	.L17
.L13:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Bob"
.LC3:
	.string	"Alice"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	-5197824(%rsp), %r11
	.cfi_def_cfa 11, 5197880
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2296, %rsp
	.cfi_def_cfa_offset 5200176
	xorl	%esi, %esi
	movl	$800008, %edx
	movq	%fs:40, %rax
	movq	%rax, 5200104(%rsp)
	xorl	%eax, %eax
	leaq	1200064(%rsp), %rdi
	call	memset@PLT
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, 4(%rsp)
	jle	.L5
	leaq	2000080(%rsp), %rbp
	xorl	%r15d, %r15d
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rdx
	movslq	12(%rsp), %rax
	addl	$1, %r15d
	movq	1200064(%rsp,%rdx,8), %rcx
	movl	%edx, 24(%rbp)
	movl	%eax, 8(%rbp)
	movq	%rcx, 0(%rbp)
	movq	1200064(%rsp,%rax,8), %rcx
	movq	%rbp, 1200064(%rsp,%rdx,8)
	leaq	16(%rbp), %rdx
	addq	$32, %rbp
	movq	%rdx, 1200064(%rsp,%rax,8)
	movl	4(%rsp), %eax
	movq	%rcx, -16(%rbp)
	subl	$1, %eax
	cmpl	%r15d, %eax
	jg	.L4
.L5:
	leaq	16(%rsp), %rdi
	movl	$400004, %edx
	xorl	%esi, %esi
	call	memset@PLT
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	movl	$1, %edx
	movl	$1, 20(%rsp)
	leaq	400032(%rsp), %rbp
	movl	$1, 400032(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	0(%rbp,%rdi,4), %rax
	movl	%edi, %r12d
	movl	%edi, %r13d
	movq	%rax, %rsi
	movq	1200064(%rsp,%rax,8), %rax
	testq	%rax, %rax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	8(%rax), %rcx
	movl	16(%rsp,%rcx,4), %r8d
	movq	%rcx, %rbx
	testl	%r8d, %r8d
	jne	.L7
	movq	(%rax), %rax
	movl	%esi, 16(%rsp,%rcx,4)
	leal	1(%rdx), %ecx
	movl	%ebx, 400032(%rsp,%rdx,4)
	movslq	%ecx, %rdx
	testq	%rax, %rax
	jne	.L9
.L17:
	movl	$1, %ecx
.L6:
	addq	$1, %rdi
	cmpl	%edi, %edx
	jg	.L3
	movl	%esi, 8(%rsp)
	testb	%cl, %cl
	je	.L10
	movl	%ebx, 12(%rsp)
.L10:
	xorl	%esi, %esi
	leaq	800048(%rsp), %rdi
	movl	$400004, %edx
	call	memset@PLT
	testl	%r13d, %r13d
	je	.L11
	movslq	%r13d, %rdx
	salq	$2, %rdx
	leaq	400028(%rsp,%rdx), %r9
	leaq	0(%rbp,%rdx), %rax
	leal	-1(%r12), %edx
	salq	$2, %rdx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L12:
	movslq	(%rax), %rcx
	subq	$4, %rax
	movl	800048(%rsp,%rcx,4), %esi
	leal	1(%rsi), %edx
	movslq	16(%rsp,%rcx,4), %rsi
	movl	%edx, 800048(%rsp,%rcx,4)
	movl	800048(%rsp,%rsi,4), %edi
	xorl	%edx, %edi
	movl	%edi, 800048(%rsp,%rsi,4)
	cmpq	%rax, %r9
	jne	.L12
	movl	%edx, 800048(%rsp,%rcx,4)
	movl	%ecx, 8(%rsp)
	movl	%edi, 800048(%rsp,%rsi,4)
.L11:
	movl	800052(%rsp), %eax
	testl	%eax, %eax
	jne	.L13
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L14:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	5200104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$5200120, %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
.L7:
	.cfi_restore_state
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L9
	jmp	.L17
.L13:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include <stdio.h>

typedef struct List {
	struct List *next;
	int v;
} list;

int main()
{
	int i, N, u, w;
	list *adj[100001] = {}, e[200001];
	scanf("%d", &N);
	for (i = 0; i < N - 1; i++) {
		scanf("%d %d", &u, &w);
		e[i*2].v = w;
		e[i*2+1].v = u;
		e[i*2].next = adj[u];
		e[i*2+1].next = adj[w];
		adj[u] = &(e[i*2]);
		adj[w] = &(e[i*2+1]);
	}
	
	int par[100001] = {}, q[100001], head, tail;
	list *p;
	par[1] = 1;
	q[0] = 1;
	for (head = 0, tail = 1; head < tail; head++) {
		u = q[head];
		for (p = adj[u]; p != NULL; p = p->next) {
			w = p->v;
			if (par[w] == 0) {
				par[w] = u;
				q[tail++] = w;
			}
		}
	}
	
	int ans[100001] = {};
	for (head--; head > 0; head--) {
		u = q[head];
		ans[u]++;
		ans[par[u]] ^= ans[u];
	}
	
	if (ans[1] == 0) printf("Bob\n");
	else printf("Alice\n");
	fflush(stdout);
	return 0;
}
5
1 2
1 3
2 4
4 5
 5
1 2
2 3
1 5
4 5
 5
1 2
1 3
2 4
4 0
 6
2 2
2 4
5 1
6 3
3 2
 6
2 2
2 4
5 1
6 4
3 2
 6
2 2
2 2
5 1
6 4
3 2
 6
2 2
2 2
5 1
0 4
3 2
 6
2 4
2 2
5 1
0 4
3 2
 6
2 4
4 2
5 1
0 4
3 2
 6
2 6
4 2
5 1
0 4
3 2

Alice
 Bob
 Alice
 Alice
 Alice
 Alice
 Alice
 Alice
 Alice
 Alice

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>

typedef struct List {
	struct List *next;
	int v;
} list;

int main()
{
	int i, N, u, w;
	list *adj[100001] = {}, e[200001];
	scanf("%d", &N);
	for (i = 0; i < N - 1; i++) {
		scanf("%d %d", &u, &w);
		e[i*2].v = w;
		e[i*2+1].v = u;
		e[i*2].next = adj[u];
		e[i*2+1].next = adj[w];
		adj[u] = &(e[i*2]);
		adj[w] = &(e[i*2+1]);
	}
	
	int par[100001] = {}, q[100001], head, tail;
	list *p;
	par[1] = 1;
	q[0] = 1;
	for (head = 0, tail = 1; head < tail; head++) {
		u = q[head];
		for (p = adj[u]; p != NULL; p = p->next) {
			w = p->v;
			if (par[w] == 0) {
				par[w] = u;
				q[tail++] = w;
			}
		}
	}
	
	int ans[100001] = {};
	for (head--; head > 0; head--) {
		u = q[head];
		ans[u]++;
		ans[par[u]] ^= ans[u];
	}
	
	if (ans[1] == 0) printf("Bob\n");
	else printf("Alice\n");
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Bob"
.LC3:
	.string	"Alice"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-5197824(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000048(%rbp), %rax
	movl	$800008, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-5200128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5200116(%rbp)
	jmp	.L2
.L3:
	leaq	-5200120(%rbp), %rdx
	leaq	-5200124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5200116(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-5200120(%rbp), %eax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200024, %rdx
	movl	%eax, (%rdx)
	movl	-5200116(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-5200124(%rbp), %eax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200024, %rdx
	movl	%eax, (%rdx)
	movl	-5200124(%rbp), %eax
	movl	-5200116(%rbp), %edx
	addl	%edx, %edx
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200032, %rdx
	movq	%rax, (%rdx)
	movl	-5200120(%rbp), %eax
	movl	-5200116(%rbp), %edx
	addl	%edx, %edx
	addl	$1, %edx
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200032, %rdx
	movq	%rax, (%rdx)
	movl	-5200116(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-5200124(%rbp), %eax
	leaq	-3200032(%rbp), %rcx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -4000048(%rbp,%rax,8)
	movl	-5200116(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-5200120(%rbp), %eax
	leaq	-3200032(%rbp), %rcx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -4000048(%rbp,%rax,8)
	addl	$1, -5200116(%rbp)
.L2:
	movl	-5200128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -5200116(%rbp)
	jl	.L3
	leaq	-5200096(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -5200092(%rbp)
	movl	$1, -4800080(%rbp)
	movl	$0, -5200112(%rbp)
	movl	$1, -5200108(%rbp)
	jmp	.L4
.L8:
	movl	-5200112(%rbp), %eax
	cltq
	movl	-4800080(%rbp,%rax,4), %eax
	movl	%eax, -5200124(%rbp)
	movl	-5200124(%rbp), %eax
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movq	%rax, -5200104(%rbp)
	jmp	.L5
.L7:
	movq	-5200104(%rbp), %rax
	movl	8(%rax), %eax
	movl	%eax, -5200120(%rbp)
	movl	-5200120(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-5200120(%rbp), %eax
	movl	-5200124(%rbp), %edx
	cltq
	movl	%edx, -5200096(%rbp,%rax,4)
	movl	-5200108(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -5200108(%rbp)
	movl	-5200120(%rbp), %edx
	cltq
	movl	%edx, -4800080(%rbp,%rax,4)
.L6:
	movq	-5200104(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -5200104(%rbp)
.L5:
	cmpq	$0, -5200104(%rbp)
	jne	.L7
	addl	$1, -5200112(%rbp)
.L4:
	movl	-5200112(%rbp), %eax
	cmpl	-5200108(%rbp), %eax
	jl	.L8
	leaq	-4400064(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	subl	$1, -5200112(%rbp)
	jmp	.L9
.L10:
	movl	-5200112(%rbp), %eax
	cltq
	movl	-4800080(%rbp,%rax,4), %eax
	movl	%eax, -5200124(%rbp)
	movl	-5200124(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4400064(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -4400064(%rbp,%rax,4)
	movl	-5200124(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	cltq
	movl	-4400064(%rbp,%rax,4), %ecx
	movl	-5200124(%rbp), %eax
	cltq
	movl	-4400064(%rbp,%rax,4), %edx
	movl	-5200124(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	xorl	%ecx, %edx
	cltq
	movl	%edx, -4400064(%rbp,%rax,4)
	subl	$1, -5200112(%rbp)
.L9:
	cmpl	$0, -5200112(%rbp)
	jg	.L10
	movl	-4400060(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L12
.L11:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Bob"
.LC3:
	.string	"Alice"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-5197824(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2304, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000048(%rbp), %rax
	movl	$800008, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-5200128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -5200116(%rbp)
	jmp	.L2
.L3:
	leaq	-5200120(%rbp), %rdx
	leaq	-5200124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-5200116(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-5200120(%rbp), %eax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200024, %rdx
	movl	%eax, (%rdx)
	movl	-5200116(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-5200124(%rbp), %eax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200024, %rdx
	movl	%eax, (%rdx)
	movl	-5200124(%rbp), %eax
	movl	-5200116(%rbp), %edx
	addl	%edx, %edx
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200032, %rdx
	movq	%rax, (%rdx)
	movl	-5200120(%rbp), %eax
	movl	-5200116(%rbp), %edx
	addl	%edx, %edx
	addl	$1, %edx
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rbp, %rdx
	subq	$3200032, %rdx
	movq	%rax, (%rdx)
	movl	-5200116(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-5200124(%rbp), %eax
	leaq	-3200032(%rbp), %rcx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -4000048(%rbp,%rax,8)
	movl	-5200116(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edx
	movl	-5200120(%rbp), %eax
	leaq	-3200032(%rbp), %rcx
	movslq	%edx, %rdx
	salq	$4, %rdx
	addq	%rcx, %rdx
	cltq
	movq	%rdx, -4000048(%rbp,%rax,8)
	addl	$1, -5200116(%rbp)
.L2:
	movl	-5200128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -5200116(%rbp)
	jl	.L3
	leaq	-5200096(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -5200092(%rbp)
	movl	$1, -4800080(%rbp)
	movl	$0, -5200112(%rbp)
	movl	$1, -5200108(%rbp)
	jmp	.L4
.L8:
	movl	-5200112(%rbp), %eax
	cltq
	movl	-4800080(%rbp,%rax,4), %eax
	movl	%eax, -5200124(%rbp)
	movl	-5200124(%rbp), %eax
	cltq
	movq	-4000048(%rbp,%rax,8), %rax
	movq	%rax, -5200104(%rbp)
	jmp	.L5
.L7:
	movq	-5200104(%rbp), %rax
	movl	8(%rax), %eax
	movl	%eax, -5200120(%rbp)
	movl	-5200120(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-5200120(%rbp), %eax
	movl	-5200124(%rbp), %edx
	cltq
	movl	%edx, -5200096(%rbp,%rax,4)
	movl	-5200108(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -5200108(%rbp)
	movl	-5200120(%rbp), %edx
	cltq
	movl	%edx, -4800080(%rbp,%rax,4)
.L6:
	movq	-5200104(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -5200104(%rbp)
.L5:
	cmpq	$0, -5200104(%rbp)
	jne	.L7
	addl	$1, -5200112(%rbp)
.L4:
	movl	-5200112(%rbp), %eax
	cmpl	-5200108(%rbp), %eax
	jl	.L8
	leaq	-4400064(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	subl	$1, -5200112(%rbp)
	jmp	.L9
.L10:
	movl	-5200112(%rbp), %eax
	cltq
	movl	-4800080(%rbp,%rax,4), %eax
	movl	%eax, -5200124(%rbp)
	movl	-5200124(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4400064(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -4400064(%rbp,%rax,4)
	movl	-5200124(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	cltq
	movl	-4400064(%rbp,%rax,4), %ecx
	movl	-5200124(%rbp), %eax
	cltq
	movl	-4400064(%rbp,%rax,4), %edx
	movl	-5200124(%rbp), %eax
	cltq
	movl	-5200096(%rbp,%rax,4), %eax
	xorl	%ecx, %edx
	cltq
	movl	%edx, -4400064(%rbp,%rax,4)
	subl	$1, -5200112(%rbp)
.L9:
	cmpl	$0, -5200112(%rbp)
	jg	.L10
	movl	-4400060(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L12
.L11:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
