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

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	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
	movl	4(%rsp), %edx
	testl	%eax, %eax
	jne	.L2
	leal	-1868(%rdx), %eax
	cmpl	$43, %eax
	jbe	.L16
	leal	-1912(%rdx), %eax
	cmpl	$13, %eax
	jbe	.L17
	leal	-1926(%rdx), %eax
	cmpl	$62, %eax
	ja	.L6
	leal	-1925(%rdx), %r12d
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L2:
	leal	1867(%rdx), %r12d
	cmpl	$1, %eax
	je	.L12
	leal	1911(%rdx), %r12d
	cmpl	$2, %eax
	je	.L12
	leal	1988(%rdx), %r12d
	cmpl	$3, %eax
	je	.L18
.L12:
	movl	%r12d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	leal	-1867(%rdx), %r12d
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
.L4:
	movl	(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	jmp	.L12
.L6:
	leal	-1988(%rdx), %r12d
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L18:
	leal	1925(%rdx), %r12d
	jmp	.L12
.L17:
	leal	-1911(%rdx), %r12d
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L19:
	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	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	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
	movl	4(%rsp), %edx
	testl	%eax, %eax
	jne	.L2
	leal	-1868(%rdx), %eax
	cmpl	$43, %eax
	jbe	.L16
	leal	-1912(%rdx), %eax
	cmpl	$13, %eax
	jbe	.L17
	leal	-1926(%rdx), %eax
	cmpl	$62, %eax
	ja	.L6
	leal	-1925(%rdx), %r12d
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L2:
	leal	1867(%rdx), %r12d
	cmpl	$1, %eax
	je	.L12
	leal	1911(%rdx), %r12d
	cmpl	$2, %eax
	je	.L12
	leal	1988(%rdx), %r12d
	cmpl	$3, %eax
	je	.L18
.L12:
	movl	%r12d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	leal	-1867(%rdx), %r12d
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
.L4:
	movl	(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	jmp	.L12
.L6:
	leal	-1988(%rdx), %r12d
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L18:
	leal	1925(%rdx), %r12d
	jmp	.L12
.L17:
	leal	-1911(%rdx), %r12d
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L19:
	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	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	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
	movl	4(%rsp), %edx
	testl	%eax, %eax
	jne	.L2
	leal	-1868(%rdx), %eax
	cmpl	$43, %eax
	jbe	.L16
	leal	-1912(%rdx), %eax
	cmpl	$13, %eax
	jbe	.L17
	leal	-1926(%rdx), %eax
	cmpl	$62, %eax
	ja	.L6
	leal	-1925(%rdx), %r12d
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L2:
	leal	1867(%rdx), %r12d
	cmpl	$1, %eax
	je	.L12
	leal	1911(%rdx), %r12d
	cmpl	$2, %eax
	je	.L12
	leal	1988(%rdx), %r12d
	cmpl	$3, %eax
	je	.L18
.L12:
	movl	%r12d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	leal	-1867(%rdx), %r12d
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
.L4:
	movl	(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	jmp	.L12
.L6:
	leal	-1988(%rdx), %r12d
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L18:
	leal	1925(%rdx), %r12d
	jmp	.L12
.L17:
	leal	-1911(%rdx), %r12d
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L19:
	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 a,b,c;
 scanf("%d %d",&a,&b);
 if(a==0){
  if(b>=1868&&b<=1911){
   c=b-1867;
   printf("M%d\n",c);
  }
  else if(b>=1912&&b<=1925){
   c=b-1911;
   printf("T%d\n",c);
  }
  else if(b>=1926&&b<=1988){
   c=b-1925;
   printf("S%d\n",c);
  }
  else{
   c=b-1988;
   printf("H%d\n",c);
  }
 }
 else if(a==1){
  c=b+1867;
 }
 else if(a==2){
  c=b+1911;
 }
 else if(a==3){
  c=b+1925;
 }
 else{
  c=b+1988;
 }
 if(a!=0){
  printf("%d\n",c);
 }
 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 a,b,c;
 scanf("%d %d",&a,&b);
 if(a==0){
  if(b>=1868&&b<=1911){
   c=b-1867;
   printf("M%d\n",c);
  }
  else if(b>=1912&&b<=1925){
   c=b-1911;
   printf("T%d\n",c);
  }
  else if(b>=1926&&b<=1988){
   c=b-1925;
   printf("S%d\n",c);
  }
  else{
   c=b-1988;
   printf("H%d\n",c);
  }
 }
 else if(a==1){
  c=b+1867;
 }
 else if(a==2){
  c=b+1911;
 }
 else if(a==3){
  c=b+1925;
 }
 else{
  c=b+1988;
 }
 if(a!=0){
  printf("%d\n",c);
 }
 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(void)
{
 int a,b,c;
 scanf("%d %d",&a,&b);
 if(a==0){
  if(b>=1868&&b<=1911){
   c=b-1867;
   printf("M%d\n",c);
  }
  else if(b>=1912&&b<=1925){
   c=b-1911;
   printf("T%d\n",c);
  }
  else if(b>=1926&&b<=1988){
   c=b-1925;
   printf("S%d\n",c);
  }
  else{
   c=b-1988;
   printf("H%d\n",c);
  }
 }
 else if(a==1){
  c=b+1867;
 }
 else if(a==2){
  c=b+1911;
 }
 else if(a==3){
  c=b+1925;
 }
 else{
  c=b+1988;
 }
 if(a!=0){
  printf("%d\n",c);
 }
 return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	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
	movl	4(%rsp), %edx
	testl	%eax, %eax
	jne	.L2
	leal	-1868(%rdx), %eax
	cmpl	$43, %eax
	jbe	.L16
	leal	-1912(%rdx), %eax
	cmpl	$13, %eax
	jbe	.L17
	leal	-1926(%rdx), %eax
	cmpl	$62, %eax
	ja	.L6
	leal	-1925(%rdx), %r12d
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L2:
	leal	1867(%rdx), %r12d
	cmpl	$1, %eax
	je	.L12
	leal	1911(%rdx), %r12d
	cmpl	$2, %eax
	je	.L12
	leal	1988(%rdx), %r12d
	cmpl	$3, %eax
	je	.L18
.L12:
	movl	%r12d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	leal	-1867(%rdx), %r12d
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
.L4:
	movl	(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	jmp	.L12
.L6:
	leal	-1988(%rdx), %r12d
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L18:
	leal	1925(%rdx), %r12d
	jmp	.L12
.L17:
	leal	-1911(%rdx), %r12d
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L19:
	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	"M%d\n"
.LC2:
	.string	"T%d\n"
.LC3:
	.string	"S%d\n"
.LC4:
	.string	"H%d\n"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	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
	movl	4(%rsp), %edx
	testl	%eax, %eax
	jne	.L2
	leal	-1868(%rdx), %eax
	cmpl	$43, %eax
	jbe	.L16
	leal	-1912(%rdx), %eax
	cmpl	$13, %eax
	jbe	.L17
	leal	-1926(%rdx), %eax
	cmpl	$62, %eax
	ja	.L6
	leal	-1925(%rdx), %r12d
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L2:
	leal	1867(%rdx), %r12d
	cmpl	$1, %eax
	je	.L12
	leal	1911(%rdx), %r12d
	cmpl	$2, %eax
	je	.L12
	leal	1988(%rdx), %r12d
	cmpl	$3, %eax
	je	.L18
.L12:
	movl	%r12d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	leal	-1867(%rdx), %r12d
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
.L4:
	movl	(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	jmp	.L12
.L6:
	leal	-1988(%rdx), %r12d
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L18:
	leal	1925(%rdx), %r12d
	jmp	.L12
.L17:
	leal	-1911(%rdx), %r12d
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r12d, %edx
	call	__printf_chk@PLT
	jmp	.L4
.L19:
	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:
```