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(){
  char s[12];
  scanf("%s",s);
  int year=1000*(s[0]-'0')+100*(s[1]-'0')+10*(s[2]-'0')+s[3]-'0';
  int month=10*(s[5]-'0')+s[6]-'0';
  int day=10*(s[8]-'0')+s[9]-'0';
  if(year>2019)
    printf("TBD\n");
  else if(year==2019){
    if(month>4)
      printf("TBD\n");
    else
      printf("Heisei\n");
  }
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"TBD"
.LC2:
	.string	"Heisei"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	12(%rsp), %eax
	movsbl	13(%rsp), %edx
	movsbl	18(%rsp), %ecx
	subl	$48, %eax
	subl	$48, %edx
	imull	$100, %edx, %edx
	imull	$1000, %eax, %eax
	addl	%edx, %eax
	movsbl	14(%rsp), %edx
	leal	-240(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %edx
	movsbl	15(%rsp), %eax
	leal	-48(%rdx,%rax), %edx
	movsbl	17(%rsp), %eax
	cmpl	$2019, %edx
	jg	.L4
	je	.L8
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	subl	$48, %eax
	imull	$10, %eax, %eax
	addl	%ecx, %eax
	cmpl	$52, %eax
	jle	.L10
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L9:
	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	"%s"
.LC1:
	.string	"TBD"
.LC2:
	.string	"Heisei"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	12(%rsp), %eax
	movsbl	13(%rsp), %edx
	movsbl	18(%rsp), %ecx
	subl	$48, %eax
	subl	$48, %edx
	imull	$100, %edx, %edx
	imull	$1000, %eax, %eax
	addl	%edx, %eax
	movsbl	14(%rsp), %edx
	leal	-240(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %edx
	movsbl	15(%rsp), %eax
	leal	-48(%rdx,%rax), %edx
	movsbl	17(%rsp), %eax
	cmpl	$2019, %edx
	jg	.L4
	je	.L8
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	subl	$48, %eax
	imull	$10, %eax, %eax
	addl	%ecx, %eax
	cmpl	$52, %eax
	jle	.L10
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L9:
	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	"%s"
.LC1:
	.string	"TBD"
.LC2:
	.string	"Heisei"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	12(%rsp), %eax
	movsbl	13(%rsp), %edx
	movsbl	18(%rsp), %ecx
	subl	$48, %eax
	subl	$48, %edx
	imull	$100, %edx, %edx
	imull	$1000, %eax, %eax
	addl	%edx, %eax
	movsbl	14(%rsp), %edx
	leal	-240(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %edx
	movsbl	15(%rsp), %eax
	leal	-48(%rdx,%rax), %edx
	movsbl	17(%rsp), %eax
	cmpl	$2019, %edx
	jg	.L4
	je	.L8
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	subl	$48, %eax
	imull	$10, %eax, %eax
	addl	%ecx, %eax
	cmpl	$52, %eax
	jle	.L10
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L9:
	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(){
  char s[12];
  scanf("%s",s);
  int year=1000*(s[0]-'0')+100*(s[1]-'0')+10*(s[2]-'0')+s[3]-'0';
  int month=10*(s[5]-'0')+s[6]-'0';
  int day=10*(s[8]-'0')+s[9]-'0';
  if(year>2019)
    printf("TBD\n");
  else if(year==2019){
    if(month>4)
      printf("TBD\n");
    else
      printf("Heisei\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(){
  char s[12];
  scanf("%s",s);
  int year=1000*(s[0]-'0')+100*(s[1]-'0')+10*(s[2]-'0')+s[3]-'0';
  int month=10*(s[5]-'0')+s[6]-'0';
  int day=10*(s[8]-'0')+s[9]-'0';
  if(year>2019)
    printf("TBD\n");
  else if(year==2019){
    if(month>4)
      printf("TBD\n");
    else
      printf("Heisei\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:

2019/03/30
 2019/11/00
 2019/04/20
 2019/12/01
 2019/14/20
 2119/12/01
 2019/24/10
 1019/04/30
 2119/10/01
 2029/11/00

Heisei
 TBD
 Heisei
 TBD
 TBD
 TBD
 TBD
 TBD
 TBD

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(){
  char s[12];
  scanf("%s",s);
  int year=1000*(s[0]-'0')+100*(s[1]-'0')+10*(s[2]-'0')+s[3]-'0';
  int month=10*(s[5]-'0')+s[6]-'0';
  int day=10*(s[8]-'0')+s[9]-'0';
  if(year>2019)
    printf("TBD\n");
  else if(year==2019){
    if(month>4)
      printf("TBD\n");
    else
      printf("Heisei\n");
  }
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"TBD"
.LC2:
	.string	"Heisei"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	12(%rsp), %eax
	movsbl	13(%rsp), %edx
	movsbl	18(%rsp), %ecx
	subl	$48, %eax
	subl	$48, %edx
	imull	$100, %edx, %edx
	imull	$1000, %eax, %eax
	addl	%edx, %eax
	movsbl	14(%rsp), %edx
	leal	-240(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %edx
	movsbl	15(%rsp), %eax
	leal	-48(%rdx,%rax), %edx
	movsbl	17(%rsp), %eax
	cmpl	$2019, %edx
	jg	.L4
	je	.L8
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	subl	$48, %eax
	imull	$10, %eax, %eax
	addl	%ecx, %eax
	cmpl	$52, %eax
	jle	.L10
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L9:
	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	"%s"
.LC1:
	.string	"TBD"
.LC2:
	.string	"Heisei"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	12(%rsp), %eax
	movsbl	13(%rsp), %edx
	movsbl	18(%rsp), %ecx
	subl	$48, %eax
	subl	$48, %edx
	imull	$100, %edx, %edx
	imull	$1000, %eax, %eax
	addl	%edx, %eax
	movsbl	14(%rsp), %edx
	leal	-240(%rdx,%rdx,4), %edx
	leal	(%rax,%rdx,2), %edx
	movsbl	15(%rsp), %eax
	leal	-48(%rdx,%rax), %edx
	movsbl	17(%rsp), %eax
	cmpl	$2019, %edx
	jg	.L4
	je	.L8
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	subl	$48, %eax
	imull	$10, %eax, %eax
	addl	%ecx, %eax
	cmpl	$52, %eax
	jle	.L10
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L9:
	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:
```