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

```c
a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	c(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	b(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$1, %ebx
	jne	.L22
.L3:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L4
	movslq	i(%rip), %rax
	movl	f(%rip), %esi
	leal	1(%rax), %edi
	movl	%edi, i(%rip)
	cmpl	$131071, %edi
	jg	.L5
	movl	$131070, %edx
	movl	$131071, %r9d
	leaq	c(%rip), %r8
	subl	%eax, %edx
	subl	%eax, %r9d
	cmpl	$2, %edx
	jbe	.L6
	leaq	4(%r8,%rax,4), %rdx
	movl	%r9d, %eax
	movdqa	.LC3(%rip), %xmm3
	pxor	%xmm1, %xmm1
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$16, %rax
.L7:
	movdqu	(%rdx), %xmm0
	movq	%rax, %rdx
	movdqa	%xmm0, %xmm2
	psrld	$31, %xmm2
	paddd	%xmm2, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm2, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L23
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %esi
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %edi
	cmpl	%eax, %r9d
	je	.L8
.L6:
	movslq	%edi, %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, %esi
	leal	1(%rdi), %eax
	cmpl	$131071, %eax
	jg	.L8
	cltq
	movl	$2, %ecx
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	leal	2(%rdi), %eax
	addl	%edx, %esi
	cmpl	$131070, %edi
	je	.L8
	cltq
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	addl	%edx, %esi
.L8:
	movl	%esi, f(%rip)
	movl	$131072, i(%rip)
.L5:
	testl	%esi, %esi
	leaq	.LC1(%rip), %rax
	leaq	.LC0(%rip), %rdi
	cmove	%rax, %rdi
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movslq	a(%rip), %rax
	addl	$1, (%r14,%rax,4)
	movslq	b(%rip), %rax
	addl	$1, (%r14,%rax,4)
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 524288
c:
	.zero	524288
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	c(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	b(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$1, %ebx
	jne	.L22
.L3:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L4
	movslq	i(%rip), %rax
	movl	f(%rip), %esi
	leal	1(%rax), %edi
	movl	%edi, i(%rip)
	cmpl	$131071, %edi
	jg	.L5
	movl	$131070, %edx
	movl	$131071, %r9d
	leaq	c(%rip), %r8
	subl	%eax, %edx
	subl	%eax, %r9d
	cmpl	$2, %edx
	jbe	.L6
	leaq	4(%r8,%rax,4), %rdx
	movl	%r9d, %eax
	movdqa	.LC3(%rip), %xmm3
	pxor	%xmm1, %xmm1
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$16, %rax
.L7:
	movdqu	(%rdx), %xmm0
	movq	%rax, %rdx
	movdqa	%xmm0, %xmm2
	psrld	$31, %xmm2
	paddd	%xmm2, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm2, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L23
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %esi
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %edi
	cmpl	%eax, %r9d
	je	.L8
.L6:
	movslq	%edi, %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, %esi
	leal	1(%rdi), %eax
	cmpl	$131071, %eax
	jg	.L8
	cltq
	movl	$2, %ecx
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	leal	2(%rdi), %eax
	addl	%edx, %esi
	cmpl	$131070, %edi
	je	.L8
	cltq
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	addl	%edx, %esi
.L8:
	movl	%esi, f(%rip)
	movl	$131072, i(%rip)
.L5:
	testl	%esi, %esi
	leaq	.LC1(%rip), %rax
	leaq	.LC0(%rip), %rdi
	cmove	%rax, %rdi
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movslq	a(%rip), %rax
	addl	$1, (%r14,%rax,4)
	movslq	b(%rip), %rax
	addl	$1, (%r14,%rax,4)
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 524288
c:
	.zero	524288
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	c(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	b(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$1, %ebx
	jne	.L22
.L3:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L4
	movslq	i(%rip), %rax
	movl	f(%rip), %esi
	leal	1(%rax), %edi
	movl	%edi, i(%rip)
	cmpl	$131071, %edi
	jg	.L5
	movl	$131070, %edx
	movl	$131071, %r9d
	leaq	c(%rip), %r8
	subl	%eax, %edx
	subl	%eax, %r9d
	cmpl	$2, %edx
	jbe	.L6
	leaq	4(%r8,%rax,4), %rdx
	movl	%r9d, %eax
	movdqa	.LC3(%rip), %xmm3
	pxor	%xmm1, %xmm1
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$16, %rax
.L7:
	movdqu	(%rdx), %xmm0
	movq	%rax, %rdx
	movdqa	%xmm0, %xmm2
	psrld	$31, %xmm2
	paddd	%xmm2, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm2, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L23
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %esi
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %edi
	cmpl	%eax, %r9d
	je	.L8
.L6:
	movslq	%edi, %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, %esi
	leal	1(%rdi), %eax
	cmpl	$131071, %eax
	jg	.L8
	cltq
	movl	$2, %ecx
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	leal	2(%rdi), %eax
	addl	%edx, %esi
	cmpl	$131070, %edi
	je	.L8
	cltq
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	addl	%edx, %esi
.L8:
	movl	%esi, f(%rip)
	movl	$131072, i(%rip)
.L5:
	testl	%esi, %esi
	leaq	.LC1(%rip), %rax
	leaq	.LC0(%rip), %rdi
	cmove	%rax, %rdi
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movslq	a(%rip), %rax
	addl	$1, (%r14,%rax,4)
	movslq	b(%rip), %rax
	addl	$1, (%r14,%rax,4)
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 524288
c:
	.zero	524288
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```
```c
a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}```

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.
Optimized Assembly Code:

5 5
1 2
5 5
5 1
3 4
2 3
 5 1
1 1
6 5
5 2
3 4
2 3
 5 1
1 2
5 5
5 1
3 4
2 3
 5 1
1 2
6 5
5 1
3 4
2 3
 5 1
1 2
6 5
5 2
3 4
2 3
 5 1
1 1
6 6
5 2
3 4
2 3
 5 1
1 1
6 6
5 2
3 4
3 3
 10 1
1 1
6 6
5 2
3 4
3 3
 10 0
1 1
6 6
5 2
3 4
3 3
 10 0
1 1
11 6
5 2
3 4
3 3

NO
 NO
 NO
 NO
 NO
 NO
 NO
 NO
 NO
 NO

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

```c
a,b,c[1<<17],f,i;main(j){for(;~scanf("%d%d",&a,&b);)--j?c[a]++,c[b]++:0;for(;++i<1<<17;f+=c[i]%2);puts(f?"NO":"YES");}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	c(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	b(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$1, %ebx
	jne	.L22
.L3:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L4
	movslq	i(%rip), %rax
	movl	f(%rip), %esi
	leal	1(%rax), %edi
	movl	%edi, i(%rip)
	cmpl	$131071, %edi
	jg	.L5
	movl	$131070, %edx
	movl	$131071, %r9d
	leaq	c(%rip), %r8
	subl	%eax, %edx
	subl	%eax, %r9d
	cmpl	$2, %edx
	jbe	.L6
	leaq	4(%r8,%rax,4), %rdx
	movl	%r9d, %eax
	movdqa	.LC3(%rip), %xmm3
	pxor	%xmm1, %xmm1
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$16, %rax
.L7:
	movdqu	(%rdx), %xmm0
	movq	%rax, %rdx
	movdqa	%xmm0, %xmm2
	psrld	$31, %xmm2
	paddd	%xmm2, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm2, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L23
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %esi
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %edi
	cmpl	%eax, %r9d
	je	.L8
.L6:
	movslq	%edi, %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, %esi
	leal	1(%rdi), %eax
	cmpl	$131071, %eax
	jg	.L8
	cltq
	movl	$2, %ecx
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	leal	2(%rdi), %eax
	addl	%edx, %esi
	cmpl	$131070, %edi
	je	.L8
	cltq
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	addl	%edx, %esi
.L8:
	movl	%esi, f(%rip)
	movl	$131072, i(%rip)
.L5:
	testl	%esi, %esi
	leaq	.LC1(%rip), %rax
	leaq	.LC0(%rip), %rdi
	cmove	%rax, %rdi
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movslq	a(%rip), %rax
	addl	$1, (%r14,%rax,4)
	movslq	b(%rip), %rax
	addl	$1, (%r14,%rax,4)
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 524288
c:
	.zero	524288
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	c(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	b(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	a(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$1, %ebx
	jne	.L22
.L3:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L4
	movslq	i(%rip), %rax
	movl	f(%rip), %esi
	leal	1(%rax), %edi
	movl	%edi, i(%rip)
	cmpl	$131071, %edi
	jg	.L5
	movl	$131070, %edx
	movl	$131071, %r9d
	leaq	c(%rip), %r8
	subl	%eax, %edx
	subl	%eax, %r9d
	cmpl	$2, %edx
	jbe	.L6
	leaq	4(%r8,%rax,4), %rdx
	movl	%r9d, %eax
	movdqa	.LC3(%rip), %xmm3
	pxor	%xmm1, %xmm1
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$16, %rax
.L7:
	movdqu	(%rdx), %xmm0
	movq	%rax, %rdx
	movdqa	%xmm0, %xmm2
	psrld	$31, %xmm2
	paddd	%xmm2, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm2, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L23
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %esi
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %edi
	cmpl	%eax, %r9d
	je	.L8
.L6:
	movslq	%edi, %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, %esi
	leal	1(%rdi), %eax
	cmpl	$131071, %eax
	jg	.L8
	cltq
	movl	$2, %ecx
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	leal	2(%rdi), %eax
	addl	%edx, %esi
	cmpl	$131070, %edi
	je	.L8
	cltq
	movl	(%r8,%rax,4), %eax
	cltd
	idivl	%ecx
	addl	%edx, %esi
.L8:
	movl	%esi, f(%rip)
	movl	$131072, i(%rip)
.L5:
	testl	%esi, %esi
	leaq	.LC1(%rip), %rax
	leaq	.LC0(%rip), %rdi
	cmove	%rax, %rdi
	call	puts@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movslq	a(%rip), %rax
	addl	$1, (%r14,%rax,4)
	movslq	b(%rip), %rax
	addl	$1, (%r14,%rax,4)
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 524288
c:
	.zero	524288
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```