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 main(void) {
	int kyan_tiaki[16] = {0};
	int yosinaga_sayuri = 0;
	int i;
	for (i = 0; i < 3; i++) {
		int a, b;
		if (scanf("%d%d", &a, &b) != 2) return 1;
		kyan_tiaki[a]++;
		kyan_tiaki[b]++;
	}
	for (i = 0; i < 16; i++) {
		yosinaga_sayuri += kyan_tiaki[i] % 2;
	}
	puts(yosinaga_sayuri <= 2 ? "YES" : "NO");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L2
.L5:
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L10
.L3:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movl	-80(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	movl	-92(%rbp), %eax
	movslq	%eax, %rdx
	movl	-80(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	addl	$1, -84(%rbp)
.L2:
	cmpl	$2, -84(%rbp)
	jle	.L5
	movl	$0, -84(%rbp)
	jmp	.L6
.L7:
	movl	-84(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, -88(%rbp)
	addl	$1, -84(%rbp)
.L6:
	cmpl	$15, -84(%rbp)
	jle	.L7
	cmpl	$2, -88(%rbp)
	jg	.L8
	leaq	.LC1(%rip), %rax
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
.L9:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"YES"
.LC1:
	.string	"NO"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	$3, %ebx
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r13
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
.L4:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L11
	movslq	8(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	subl	$1, %ebx
	jne	.L4
	movdqa	16(%rsp), %xmm0
	movdqa	.LC3(%rip), %xmm3
	leaq	.LC0(%rip), %rdi
	movdqa	%xmm0, %xmm1
	movdqa	%xmm0, %xmm2
	movdqa	32(%rsp), %xmm0
	psrld	$31, %xmm1
	paddd	%xmm1, %xmm2
	movdqa	%xmm0, %xmm4
	pand	%xmm3, %xmm2
	psrld	$31, %xmm4
	psubd	%xmm1, %xmm2
	movdqa	%xmm0, %xmm1
	movdqa	48(%rsp), %xmm0
	paddd	%xmm4, %xmm1
	pand	%xmm3, %xmm1
	psubd	%xmm4, %xmm1
	movdqa	%xmm0, %xmm4
	paddd	%xmm2, %xmm1
	psrld	$31, %xmm4
	movdqa	%xmm0, %xmm2
	paddd	%xmm4, %xmm2
	pand	%xmm3, %xmm2
	psubd	%xmm4, %xmm2
	paddd	%xmm1, %xmm2
	movdqa	64(%rsp), %xmm1
	movdqa	%xmm1, %xmm4
	psrld	$31, %xmm4
	paddd	%xmm4, %xmm1
	movdqa	%xmm1, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm4, %xmm0
	paddd	%xmm2, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	$3, %eax
	leaq	.LC1(%rip), %rax
	cmovge	%rax, %rdi
	call	puts@PLT
	xorl	%eax, %eax
.L1:
	movq	88(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L12
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"YES"
.LC1:
	.string	"NO"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	$3, %ebx
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r13
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
.L4:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L11
	movslq	8(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	subl	$1, %ebx
	jne	.L4
	movdqa	16(%rsp), %xmm0
	movdqa	.LC3(%rip), %xmm3
	leaq	.LC0(%rip), %rdi
	movdqa	%xmm0, %xmm1
	movdqa	%xmm0, %xmm2
	movdqa	32(%rsp), %xmm0
	psrld	$31, %xmm1
	paddd	%xmm1, %xmm2
	movdqa	%xmm0, %xmm4
	pand	%xmm3, %xmm2
	psrld	$31, %xmm4
	psubd	%xmm1, %xmm2
	movdqa	%xmm0, %xmm1
	movdqa	48(%rsp), %xmm0
	paddd	%xmm4, %xmm1
	pand	%xmm3, %xmm1
	psubd	%xmm4, %xmm1
	movdqa	%xmm0, %xmm4
	paddd	%xmm2, %xmm1
	psrld	$31, %xmm4
	movdqa	%xmm0, %xmm2
	paddd	%xmm4, %xmm2
	pand	%xmm3, %xmm2
	psubd	%xmm4, %xmm2
	paddd	%xmm1, %xmm2
	movdqa	64(%rsp), %xmm1
	movdqa	%xmm1, %xmm4
	psrld	$31, %xmm4
	paddd	%xmm4, %xmm1
	movdqa	%xmm1, %xmm0
	pand	%xmm3, %xmm0
	psubd	%xmm4, %xmm0
	paddd	%xmm2, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	$3, %eax
	leaq	.LC1(%rip), %rax
	cmovge	%rax, %rdi
	call	puts@PLT
	xorl	%eax, %eax
.L1:
	movq	88(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L12
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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:

#include <stdio.h>

int main(void) {
	int kyan_tiaki[16] = {0};
	int yosinaga_sayuri = 0;
	int i;
	for (i = 0; i < 3; i++) {
		int a, b;
		if (scanf("%d%d", &a, &b) != 2) return 1;
		kyan_tiaki[a]++;
		kyan_tiaki[b]++;
	}
	for (i = 0; i < 16; i++) {
		yosinaga_sayuri += kyan_tiaki[i] % 2;
	}
	puts(yosinaga_sayuri <= 2 ? "YES" : "NO");
	return 0;
}

4 3
1 3
2 3
 1 1
3 2
4 3
 1 2
3 2
4 3
 1 2
2 2
4 3
 3 2
2 4
1 4
 1 1
3 2
4 1
 1 4
2 2
4 3
 3 2
3 4
1 4
 2 1
3 2
4 1
 4 2
1 3
3 3

NO
 YES
 YES
 NO
 YES
 NO
 YES
 YES
 YES
 NO

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 main(void) {
	int kyan_tiaki[16] = {0};
	int yosinaga_sayuri = 0;
	int i;
	for (i = 0; i < 3; i++) {
		int a, b;
		if (scanf("%d%d", &a, &b) != 2) return 1;
		kyan_tiaki[a]++;
		kyan_tiaki[b]++;
	}
	for (i = 0; i < 16; i++) {
		yosinaga_sayuri += kyan_tiaki[i] % 2;
	}
	puts(yosinaga_sayuri <= 2 ? "YES" : "NO");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L2
.L5:
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L10
.L3:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movl	-80(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	movl	-92(%rbp), %eax
	movslq	%eax, %rdx
	movl	-80(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	addl	$1, -84(%rbp)
.L2:
	cmpl	$2, -84(%rbp)
	jle	.L5
	movl	$0, -84(%rbp)
	jmp	.L6
.L7:
	movl	-84(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, -88(%rbp)
	addl	$1, -84(%rbp)
.L6:
	cmpl	$15, -84(%rbp)
	jle	.L7
	cmpl	$2, -88(%rbp)
	jg	.L8
	leaq	.LC1(%rip), %rax
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
.L9:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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%d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L2
.L5:
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L10
.L3:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movl	-80(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	movl	-92(%rbp), %eax
	movslq	%eax, %rdx
	movl	-80(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	addl	$1, -84(%rbp)
.L2:
	cmpl	$2, -84(%rbp)
	jle	.L5
	movl	$0, -84(%rbp)
	jmp	.L6
.L7:
	movl	-84(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, -88(%rbp)
	addl	$1, -84(%rbp)
.L6:
	cmpl	$15, -84(%rbp)
	jle	.L7
	cmpl	$2, -88(%rbp)
	jg	.L8
	leaq	.LC1(%rip), %rax
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
.L9:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L10:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
