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(){
	int n,k;
	char a;
	scanf("%d%d",&n,&k);
	if(n==0){
		if(k>1988){
			k=k-1988;
			a='H';
		}
		else if(k>1925){
			k=k-1925;
			a='S';
		}
		else if(k>1911){
			k=k-1911;
			a='T';
		}
		else{
			k=k-1867;
			a='M';
		}
	}
	else{
		if(n==1)k=k+1867;
		else if(n==2)k=k+1911;
		else if(n==3)k=k+1925;
		else k=k+1988;
	}
	if(n==0)printf("%c",a);
	printf("%d\n",k);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\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	.LC0(%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	(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	4(%rsp), %eax
	cmpl	$1988, %eax
	jle	.L3
	subl	$1988, %eax
	movl	$72, %edi
.L4:
	movl	%eax, 4(%rsp)
	call	putchar@PLT
.L8:
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	cmpl	$1925, %eax
	jg	.L16
	cmpl	$1911, %eax
	jle	.L6
	subl	$1911, %eax
	movl	$84, %edi
	jmp	.L4
.L2:
	movl	4(%rsp), %edx
	cmpl	$1, %eax
	je	.L17
	cmpl	$2, %eax
	je	.L18
	leal	1988(%rdx), %ecx
	addl	$1925, %edx
	cmpl	$3, %eax
	cmovne	%ecx, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L16:
	subl	$1925, %eax
	movl	$83, %edi
	jmp	.L4
.L17:
	addl	$1867, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L18:
	addl	$1911, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L6:
	subl	$1867, %eax
	movl	$77, %edi
	jmp	.L4
.L15:
	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%d"
.LC1:
	.string	"%d\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	.LC0(%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	(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	4(%rsp), %eax
	cmpl	$1988, %eax
	jle	.L3
	subl	$1988, %eax
	movl	$72, %edi
.L4:
	movl	%eax, 4(%rsp)
	call	putchar@PLT
.L8:
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	cmpl	$1925, %eax
	jg	.L16
	cmpl	$1911, %eax
	jle	.L6
	subl	$1911, %eax
	movl	$84, %edi
	jmp	.L4
.L2:
	movl	4(%rsp), %edx
	cmpl	$1, %eax
	je	.L17
	cmpl	$2, %eax
	je	.L18
	leal	1988(%rdx), %ecx
	addl	$1925, %edx
	cmpl	$3, %eax
	cmovne	%ecx, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L16:
	subl	$1925, %eax
	movl	$83, %edi
	jmp	.L4
.L17:
	addl	$1867, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L18:
	addl	$1911, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L6:
	subl	$1867, %eax
	movl	$77, %edi
	jmp	.L4
.L15:
	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%d"
.LC1:
	.string	"%d\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	.LC0(%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	(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	4(%rsp), %eax
	cmpl	$1988, %eax
	jle	.L3
	subl	$1988, %eax
	movl	$72, %edi
.L4:
	movl	%eax, 4(%rsp)
	call	putchar@PLT
.L8:
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	cmpl	$1925, %eax
	jg	.L16
	cmpl	$1911, %eax
	jle	.L6
	subl	$1911, %eax
	movl	$84, %edi
	jmp	.L4
.L2:
	movl	4(%rsp), %edx
	cmpl	$1, %eax
	je	.L17
	cmpl	$2, %eax
	je	.L18
	leal	1988(%rdx), %ecx
	addl	$1925, %edx
	cmpl	$3, %eax
	cmovne	%ecx, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L16:
	subl	$1925, %eax
	movl	$83, %edi
	jmp	.L4
.L17:
	addl	$1867, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L18:
	addl	$1911, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L6:
	subl	$1867, %eax
	movl	$77, %edi
	jmp	.L4
.L15:
	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(){
	int n,k;
	char a;
	scanf("%d%d",&n,&k);
	if(n==0){
		if(k>1988){
			k=k-1988;
			a='H';
		}
		else if(k>1925){
			k=k-1925;
			a='S';
		}
		else if(k>1911){
			k=k-1911;
			a='T';
		}
		else{
			k=k-1867;
			a='M';
		}
	}
	else{
		if(n==1)k=k+1867;
		else if(n==2)k=k+1911;
		else if(n==3)k=k+1925;
		else k=k+1988;
	}
	if(n==0)printf("%c",a);
	printf("%d\n",k);
	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(){
	int n,k;
	char a;
	scanf("%d%d",&n,&k);
	if(n==0){
		if(k>1988){
			k=k-1988;
			a='H';
		}
		else if(k>1925){
			k=k-1925;
			a='S';
		}
		else if(k>1911){
			k=k-1911;
			a='T';
		}
		else{
			k=k-1867;
			a='M';
		}
	}
	else{
		if(n==1)k=k+1867;
		else if(n==2)k=k+1911;
		else if(n==3)k=k+1925;
		else k=k+1988;
	}
	if(n==0)printf("%c",a);
	printf("%d\n",k);
	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:

4 2
 3 1
 1 28
 2 0
 3 2
 4 1
 1 42
 1 0
 3 0
 4 0

1990
 1926
 1895
 1911
 1927
 1989
 1909
 1867
 1925
 1988

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(){
	int n,k;
	char a;
	scanf("%d%d",&n,&k);
	if(n==0){
		if(k>1988){
			k=k-1988;
			a='H';
		}
		else if(k>1925){
			k=k-1925;
			a='S';
		}
		else if(k>1911){
			k=k-1911;
			a='T';
		}
		else{
			k=k-1867;
			a='M';
		}
	}
	else{
		if(n==1)k=k+1867;
		else if(n==2)k=k+1911;
		else if(n==3)k=k+1925;
		else k=k+1988;
	}
	if(n==0)printf("%c",a);
	printf("%d\n",k);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\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	.LC0(%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	(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	4(%rsp), %eax
	cmpl	$1988, %eax
	jle	.L3
	subl	$1988, %eax
	movl	$72, %edi
.L4:
	movl	%eax, 4(%rsp)
	call	putchar@PLT
.L8:
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	cmpl	$1925, %eax
	jg	.L16
	cmpl	$1911, %eax
	jle	.L6
	subl	$1911, %eax
	movl	$84, %edi
	jmp	.L4
.L2:
	movl	4(%rsp), %edx
	cmpl	$1, %eax
	je	.L17
	cmpl	$2, %eax
	je	.L18
	leal	1988(%rdx), %ecx
	addl	$1925, %edx
	cmpl	$3, %eax
	cmovne	%ecx, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L16:
	subl	$1925, %eax
	movl	$83, %edi
	jmp	.L4
.L17:
	addl	$1867, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L18:
	addl	$1911, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L6:
	subl	$1867, %eax
	movl	$77, %edi
	jmp	.L4
.L15:
	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%d"
.LC1:
	.string	"%d\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	.LC0(%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	(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	4(%rsp), %eax
	cmpl	$1988, %eax
	jle	.L3
	subl	$1988, %eax
	movl	$72, %edi
.L4:
	movl	%eax, 4(%rsp)
	call	putchar@PLT
.L8:
	movl	4(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	cmpl	$1925, %eax
	jg	.L16
	cmpl	$1911, %eax
	jle	.L6
	subl	$1911, %eax
	movl	$84, %edi
	jmp	.L4
.L2:
	movl	4(%rsp), %edx
	cmpl	$1, %eax
	je	.L17
	cmpl	$2, %eax
	je	.L18
	leal	1988(%rdx), %ecx
	addl	$1925, %edx
	cmpl	$3, %eax
	cmovne	%ecx, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L16:
	subl	$1925, %eax
	movl	$83, %edi
	jmp	.L4
.L17:
	addl	$1867, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L18:
	addl	$1911, %edx
	movl	%edx, 4(%rsp)
	jmp	.L8
.L6:
	subl	$1867, %eax
	movl	$77, %edi
	jmp	.L4
.L15:
	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:
```