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 X, Y;
	int neko = 0;
	if (scanf("%d%d", &X, &Y) != 2) return 1;
	if (X <= 3) neko += 4 - X;
	if (Y <= 3) neko += 4 - Y;
	if (X == 1 && Y == 1) neko += 4;
	printf("%d%s\n", neko, "00000" + !neko * 5);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"00000"
.LC2:
	.string	"%d%s\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L9
.L2:
	movl	-20(%rbp), %eax
	cmpl	$3, %eax
	jg	.L4
	movl	-20(%rbp), %edx
	movl	$4, %eax
	subl	%edx, %eax
	addl	%eax, -12(%rbp)
.L4:
	movl	-16(%rbp), %eax
	cmpl	$3, %eax
	jg	.L5
	movl	-16(%rbp), %edx
	movl	$4, %eax
	subl	%edx, %eax
	addl	%eax, -12(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-16(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	addl	$4, -12(%rbp)
.L6:
	cmpl	$0, -12(%rbp)
	jne	.L7
	leaq	5+.LC1(%rip), %rax
	jmp	.L8
.L7:
	leaq	.LC1(%rip), %rax
.L8:
	movl	-12(%rbp), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"00000"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$2, %r8d
	jne	.L1
	movl	(%rsp), %eax
	cmpl	$3, %eax
	jg	.L3
	movl	$4, %ecx
	movl	4(%rsp), %esi
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	$3, %esi
	jg	.L9
	subl	%esi, %ecx
	addl	%ecx, %edx
	subl	$1, %eax
	je	.L5
.L9:
	leaq	.LC0(%rip), %rcx
	jmp	.L4
.L3:
	movl	4(%rsp), %eax
	xorl	%edx, %edx
	leaq	5+.LC0(%rip), %rcx
	cmpl	$3, %eax
	jle	.L14
.L4:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L1:
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L15
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	subl	$1, %esi
	jne	.L9
	addl	$4, %edx
	leaq	.LC0(%rip), %rcx
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
.L14:
	movl	$4, %edx
	subq	$5, %rcx
	subl	%eax, %edx
	jmp	.L4
	.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	"00000"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$1, %eax
	cmpl	$2, %r8d
	jne	.L1
	movl	(%rsp), %eax
	cmpl	$3, %eax
	jg	.L3
	movl	$4, %ecx
	movl	4(%rsp), %esi
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	$3, %esi
	jg	.L9
	subl	%esi, %ecx
	addl	%ecx, %edx
	subl	$1, %eax
	je	.L5
.L9:
	leaq	.LC0(%rip), %rcx
	jmp	.L4
.L3:
	movl	4(%rsp), %eax
	xorl	%edx, %edx
	leaq	5+.LC0(%rip), %rcx
	cmpl	$3, %eax
	jle	.L14
.L4:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L1:
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L15
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	subl	$1, %esi
	jne	.L9
	addl	$4, %edx
	leaq	.LC0(%rip), %rcx
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
.L14:
	movl	$4, %edx
	subq	$5, %rcx
	subl	%eax, %edx
	jmp	.L4
	.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>

int main(void) {
	int X, Y;
	int neko = 0;
	if (scanf("%d%d", &X, &Y) != 2) return 1;
	if (X <= 3) neko += 4 - X;
	if (Y <= 3) neko += 4 - Y;
	if (X == 1 && Y == 1) neko += 4;
	printf("%d%s\n", neko, "00000" + !neko * 5);
	return 0;
}

3 001
 1 2
 4 5
 5 001
 57 3
 4 2
 1 001
 2 2
 4 10
 10 001

400000
 500000
 0
 300000
 100000
 200000
 1000000
 400000
 0
 300000

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 X, Y;
	int neko = 0;
	if (scanf("%d%d", &X, &Y) != 2) return 1;
	if (X <= 3) neko += 4 - X;
	if (Y <= 3) neko += 4 - Y;
	if (X == 1 && Y == 1) neko += 4;
	printf("%d%s\n", neko, "00000" + !neko * 5);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"00000"
.LC2:
	.string	"%d%s\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L9
.L2:
	movl	-20(%rbp), %eax
	cmpl	$3, %eax
	jg	.L4
	movl	-20(%rbp), %edx
	movl	$4, %eax
	subl	%edx, %eax
	addl	%eax, -12(%rbp)
.L4:
	movl	-16(%rbp), %eax
	cmpl	$3, %eax
	jg	.L5
	movl	-16(%rbp), %edx
	movl	$4, %eax
	subl	%edx, %eax
	addl	%eax, -12(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-16(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	addl	$4, -12(%rbp)
.L6:
	cmpl	$0, -12(%rbp)
	jne	.L7
	leaq	5+.LC1(%rip), %rax
	jmp	.L8
.L7:
	leaq	.LC1(%rip), %rax
.L8:
	movl	-12(%rbp), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"00000"
.LC2:
	.string	"%d%s\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L9
.L2:
	movl	-20(%rbp), %eax
	cmpl	$3, %eax
	jg	.L4
	movl	-20(%rbp), %edx
	movl	$4, %eax
	subl	%edx, %eax
	addl	%eax, -12(%rbp)
.L4:
	movl	-16(%rbp), %eax
	cmpl	$3, %eax
	jg	.L5
	movl	-16(%rbp), %edx
	movl	$4, %eax
	subl	%edx, %eax
	addl	%eax, -12(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	movl	-16(%rbp), %eax
	cmpl	$1, %eax
	jne	.L6
	addl	$4, -12(%rbp)
.L6:
	cmpl	$0, -12(%rbp)
	jne	.L7
	leaq	5+.LC1(%rip), %rax
	jmp	.L8
.L7:
	leaq	.LC1(%rip), %rax
.L8:
	movl	-12(%rbp), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
