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

```c
#include<stdio.h>

int main(void)
{
	int X;

	scanf("%d", &X);

	if (X >= 400 && X <= 599)
	{
		printf("8");
	}
	else if (X >= 600 && X <= 799)
	{
		printf("7");
	}
	else if (X >= 800 && X <= 999)
	{
		printf("6");
	}
	else if (X >= 1000 && X <= 1199)
	{
		printf("5");
	}
	else if (X >= 1200 && X <= 1399)
	{
		printf("4");
	}
	else if (X >= 1400 && X <= 1599)
	{
		printf("3");
	}
	else if (X >= 1600 && X <= 1799)
	{
		printf("2");
	}
	else if (X >= 1800 && X <= 1999)
	{
		printf("1");
	}
	printf("\n");

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.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	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	leal	-400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L13
	leal	-600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L14
	leal	-800(%rax), %edx
	cmpl	$199, %edx
	jbe	.L15
	leal	-1000(%rax), %edx
	cmpl	$199, %edx
	jbe	.L16
	leal	-1200(%rax), %edx
	cmpl	$199, %edx
	jbe	.L17
	leal	-1400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L18
	leal	-1600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L19
	subl	$1800, %eax
	cmpl	$199, %eax
	ja	.L3
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L3
.L14:
	movl	$55, %edi
	call	putchar@PLT
.L3:
	movl	$10, %edi
	call	putchar@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	$56, %edi
	call	putchar@PLT
	jmp	.L3
.L17:
	movl	$52, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$54, %edi
	call	putchar@PLT
	jmp	.L3
.L16:
	movl	$53, %edi
	call	putchar@PLT
	jmp	.L3
.L18:
	movl	$51, %edi
	call	putchar@PLT
	jmp	.L3
.L19:
	movl	$50, %edi
	call	putchar@PLT
	jmp	.L3
.L20:
	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:
```

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	"%d"
	.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	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	leal	-400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L13
	leal	-600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L14
	leal	-800(%rax), %edx
	cmpl	$199, %edx
	jbe	.L15
	leal	-1000(%rax), %edx
	cmpl	$199, %edx
	jbe	.L16
	leal	-1200(%rax), %edx
	cmpl	$199, %edx
	jbe	.L17
	leal	-1400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L18
	leal	-1600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L19
	subl	$1800, %eax
	cmpl	$199, %eax
	ja	.L3
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L3
.L14:
	movl	$55, %edi
	call	putchar@PLT
.L3:
	movl	$10, %edi
	call	putchar@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	$56, %edi
	call	putchar@PLT
	jmp	.L3
.L17:
	movl	$52, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$54, %edi
	call	putchar@PLT
	jmp	.L3
.L16:
	movl	$53, %edi
	call	putchar@PLT
	jmp	.L3
.L18:
	movl	$51, %edi
	call	putchar@PLT
	jmp	.L3
.L19:
	movl	$50, %edi
	call	putchar@PLT
	jmp	.L3
.L20:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.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	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	leal	-400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L13
	leal	-600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L14
	leal	-800(%rax), %edx
	cmpl	$199, %edx
	jbe	.L15
	leal	-1000(%rax), %edx
	cmpl	$199, %edx
	jbe	.L16
	leal	-1200(%rax), %edx
	cmpl	$199, %edx
	jbe	.L17
	leal	-1400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L18
	leal	-1600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L19
	subl	$1800, %eax
	cmpl	$199, %eax
	ja	.L3
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L3
.L14:
	movl	$55, %edi
	call	putchar@PLT
.L3:
	movl	$10, %edi
	call	putchar@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	$56, %edi
	call	putchar@PLT
	jmp	.L3
.L17:
	movl	$52, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$54, %edi
	call	putchar@PLT
	jmp	.L3
.L16:
	movl	$53, %edi
	call	putchar@PLT
	jmp	.L3
.L18:
	movl	$51, %edi
	call	putchar@PLT
	jmp	.L3
.L19:
	movl	$50, %edi
	call	putchar@PLT
	jmp	.L3
.L20:
	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:
```
```c
#include<stdio.h>

int main(void)
{
	int X;

	scanf("%d", &X);

	if (X >= 400 && X <= 599)
	{
		printf("8");
	}
	else if (X >= 600 && X <= 799)
	{
		printf("7");
	}
	else if (X >= 800 && X <= 999)
	{
		printf("6");
	}
	else if (X >= 1000 && X <= 1199)
	{
		printf("5");
	}
	else if (X >= 1200 && X <= 1399)
	{
		printf("4");
	}
	else if (X >= 1400 && X <= 1599)
	{
		printf("3");
	}
	else if (X >= 1600 && X <= 1799)
	{
		printf("2");
	}
	else if (X >= 1800 && X <= 1999)
	{
		printf("1");
	}
	printf("\n");

	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int main(void)
{
	int X;

	scanf("%d", &X);

	if (X >= 400 && X <= 599)
	{
		printf("8");
	}
	else if (X >= 600 && X <= 799)
	{
		printf("7");
	}
	else if (X >= 800 && X <= 999)
	{
		printf("6");
	}
	else if (X >= 1000 && X <= 1199)
	{
		printf("5");
	}
	else if (X >= 1200 && X <= 1399)
	{
		printf("4");
	}
	else if (X >= 1400 && X <= 1599)
	{
		printf("3");
	}
	else if (X >= 1600 && X <= 1799)
	{
		printf("2");
	}
	else if (X >= 1800 && X <= 1999)
	{
		printf("1");
	}
	printf("\n");

	return 0;
}```

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:

1359
 543
 1855
 609
 982
 1485
 1125
 1764
 554
 417

4
 8
 1
 7
 6
 3
 5
 2
 8
 8

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

```c
#include<stdio.h>

int main(void)
{
	int X;

	scanf("%d", &X);

	if (X >= 400 && X <= 599)
	{
		printf("8");
	}
	else if (X >= 600 && X <= 799)
	{
		printf("7");
	}
	else if (X >= 800 && X <= 999)
	{
		printf("6");
	}
	else if (X >= 1000 && X <= 1199)
	{
		printf("5");
	}
	else if (X >= 1200 && X <= 1399)
	{
		printf("4");
	}
	else if (X >= 1400 && X <= 1599)
	{
		printf("3");
	}
	else if (X >= 1600 && X <= 1799)
	{
		printf("2");
	}
	else if (X >= 1800 && X <= 1999)
	{
		printf("1");
	}
	printf("\n");

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.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	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	leal	-400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L13
	leal	-600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L14
	leal	-800(%rax), %edx
	cmpl	$199, %edx
	jbe	.L15
	leal	-1000(%rax), %edx
	cmpl	$199, %edx
	jbe	.L16
	leal	-1200(%rax), %edx
	cmpl	$199, %edx
	jbe	.L17
	leal	-1400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L18
	leal	-1600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L19
	subl	$1800, %eax
	cmpl	$199, %eax
	ja	.L3
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L3
.L14:
	movl	$55, %edi
	call	putchar@PLT
.L3:
	movl	$10, %edi
	call	putchar@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	$56, %edi
	call	putchar@PLT
	jmp	.L3
.L17:
	movl	$52, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$54, %edi
	call	putchar@PLT
	jmp	.L3
.L16:
	movl	$53, %edi
	call	putchar@PLT
	jmp	.L3
.L18:
	movl	$51, %edi
	call	putchar@PLT
	jmp	.L3
.L19:
	movl	$50, %edi
	call	putchar@PLT
	jmp	.L3
.L20:
	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:
```

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	"%d"
	.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	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	leal	-400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L13
	leal	-600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L14
	leal	-800(%rax), %edx
	cmpl	$199, %edx
	jbe	.L15
	leal	-1000(%rax), %edx
	cmpl	$199, %edx
	jbe	.L16
	leal	-1200(%rax), %edx
	cmpl	$199, %edx
	jbe	.L17
	leal	-1400(%rax), %edx
	cmpl	$199, %edx
	jbe	.L18
	leal	-1600(%rax), %edx
	cmpl	$199, %edx
	jbe	.L19
	subl	$1800, %eax
	cmpl	$199, %eax
	ja	.L3
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L3
.L14:
	movl	$55, %edi
	call	putchar@PLT
.L3:
	movl	$10, %edi
	call	putchar@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	$56, %edi
	call	putchar@PLT
	jmp	.L3
.L17:
	movl	$52, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$54, %edi
	call	putchar@PLT
	jmp	.L3
.L16:
	movl	$53, %edi
	call	putchar@PLT
	jmp	.L3
.L18:
	movl	$51, %edi
	call	putchar@PLT
	jmp	.L3
.L19:
	movl	$50, %edi
	call	putchar@PLT
	jmp	.L3
.L20:
	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:
```