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){
  char s[13];
  scanf("%s",s);
  printf("%c%c%c%c %c%c%c%c%c%c%c%c\n",s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11]);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%c%c%c%c %c%c%c%c%c%c%c%c\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
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	leaq	-53(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-42(%rbp), %eax
	movsbl	%al, %ebx
	movzbl	-43(%rbp), %eax
	movsbl	%al, %r11d
	movzbl	-44(%rbp), %eax
	movsbl	%al, %r10d
	movzbl	-45(%rbp), %eax
	movsbl	%al, %r9d
	movzbl	-46(%rbp), %eax
	movsbl	%al, %r8d
	movzbl	-47(%rbp), %eax
	movsbl	%al, %edi
	movzbl	-48(%rbp), %eax
	movsbl	%al, %esi
	movzbl	-49(%rbp), %eax
	movsbl	%al, %r13d
	movzbl	-50(%rbp), %eax
	movsbl	%al, %r12d
	movzbl	-51(%rbp), %eax
	movsbl	%al, %ecx
	movzbl	-52(%rbp), %eax
	movsbl	%al, %edx
	movzbl	-53(%rbp), %eax
	movsbl	%al, %eax
	subq	$8, %rsp
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	%r9
	pushq	%r8
	pushq	%rdi
	pushq	%rsi
	movl	%r13d, %r9d
	movl	%r12d, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$64, %rsp
	movl	$0, %eax
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.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	"%s"
.LC1:
	.string	"%c%c%c%c %c%c%c%c%c%c%c%c\n"
	.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	11(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	22(%rsp), %eax
	movsbl	12(%rsp), %ecx
	leaq	.LC1(%rip), %rsi
	movsbl	11(%rsp), %edx
	movl	$1, %edi
	pushq	%rax
	.cfi_def_cfa_offset 56
	movsbl	29(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 64
	movsbl	36(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 72
	movsbl	43(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 80
	movsbl	50(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 88
	movsbl	57(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 96
	movsbl	64(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 104
	movsbl	71(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 112
	movsbl	78(%rsp), %r9d
	xorl	%eax, %eax
	movsbl	77(%rsp), %r8d
	call	__printf_chk@PLT
	addq	$64, %rsp
	.cfi_def_cfa_offset 48
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%c%c%c%c %c%c%c%c%c%c%c%c\n"
	.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	11(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsbl	22(%rsp), %eax
	movsbl	12(%rsp), %ecx
	leaq	.LC1(%rip), %rsi
	movsbl	11(%rsp), %edx
	movl	$1, %edi
	pushq	%rax
	.cfi_def_cfa_offset 56
	movsbl	29(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 64
	movsbl	36(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 72
	movsbl	43(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 80
	movsbl	50(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 88
	movsbl	57(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 96
	movsbl	64(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 104
	movsbl	71(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 112
	movsbl	78(%rsp), %r9d
	xorl	%eax, %eax
	movsbl	77(%rsp), %r8d
	call	__printf_chk@PLT
	addq	$64, %rsp
	.cfi_def_cfa_offset 48
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	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:

#include<stdio.h>
int main(void){
  char s[13];
  scanf("%s",s);
  printf("%c%c%c%c %c%c%c%c%c%c%c%c\n",s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11]);
  return 0;
}
ETAUDARGTSOP
 AACDEFGHIJKL
 COCEFESTIVAL
 POSTGRADUATF
 ALCDEFGHIJKA
 COCEFESTIV@L
 POSTGRAUDATF
 AKJIHGFEDCLA
 L@VITSEFECOC
 POSTGRATDATF

ETAU DARGTSOP
 AACD EFGHIJKL
 COCE FESTIVAL
 POST GRADUATF
 ALCD EFGHIJKA
 COCE FESTIV@L
 POST GRAUDATF
 AKJI HGFEDCLA
 L@VI TSEFECOC
 POST GRATDATF

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){
  char s[13];
  scanf("%s",s);
  printf("%c%c%c%c %c%c%c%c%c%c%c%c\n",s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11]);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%c%c%c%c %c%c%c%c%c%c%c%c\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
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	leaq	-53(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-42(%rbp), %eax
	movsbl	%al, %ebx
	movzbl	-43(%rbp), %eax
	movsbl	%al, %r11d
	movzbl	-44(%rbp), %eax
	movsbl	%al, %r10d
	movzbl	-45(%rbp), %eax
	movsbl	%al, %r9d
	movzbl	-46(%rbp), %eax
	movsbl	%al, %r8d
	movzbl	-47(%rbp), %eax
	movsbl	%al, %edi
	movzbl	-48(%rbp), %eax
	movsbl	%al, %esi
	movzbl	-49(%rbp), %eax
	movsbl	%al, %r13d
	movzbl	-50(%rbp), %eax
	movsbl	%al, %r12d
	movzbl	-51(%rbp), %eax
	movsbl	%al, %ecx
	movzbl	-52(%rbp), %eax
	movsbl	%al, %edx
	movzbl	-53(%rbp), %eax
	movsbl	%al, %eax
	subq	$8, %rsp
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	%r9
	pushq	%r8
	pushq	%rdi
	pushq	%rsi
	movl	%r13d, %r9d
	movl	%r12d, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$64, %rsp
	movl	$0, %eax
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.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	"%s"
.LC1:
	.string	"%c%c%c%c %c%c%c%c%c%c%c%c\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
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	leaq	-53(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-42(%rbp), %eax
	movsbl	%al, %ebx
	movzbl	-43(%rbp), %eax
	movsbl	%al, %r11d
	movzbl	-44(%rbp), %eax
	movsbl	%al, %r10d
	movzbl	-45(%rbp), %eax
	movsbl	%al, %r9d
	movzbl	-46(%rbp), %eax
	movsbl	%al, %r8d
	movzbl	-47(%rbp), %eax
	movsbl	%al, %edi
	movzbl	-48(%rbp), %eax
	movsbl	%al, %esi
	movzbl	-49(%rbp), %eax
	movsbl	%al, %r13d
	movzbl	-50(%rbp), %eax
	movsbl	%al, %r12d
	movzbl	-51(%rbp), %eax
	movsbl	%al, %ecx
	movzbl	-52(%rbp), %eax
	movsbl	%al, %edx
	movzbl	-53(%rbp), %eax
	movsbl	%al, %eax
	subq	$8, %rsp
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	%r9
	pushq	%r8
	pushq	%rdi
	pushq	%rsi
	movl	%r13d, %r9d
	movl	%r12d, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$64, %rsp
	movl	$0, %eax
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.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:
