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>
#include <ctype.h>

int main(void)
{
	char s1[100],s2[100],s3[100];
	scanf("%s %s %s",s1,s2,s3);
	s1[0] = toupper(s1[0]);
	s2[0] = toupper(s2[0]);
	s3[0] = toupper(s3[0]);

	printf("%c%c%c\n",s1[0],s2[0],s3[0]);
	
   	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %s %s"
.LC1:
	.string	"%c%c%c\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	subq	$344, %rsp
	.cfi_def_cfa_offset 352
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rcx
	leaq	112(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	call	__ctype_toupper_loc@PLT
	movsbq	(%rsp), %rdx
	movsbq	112(%rsp), %rcx
	movl	$1, %edi
	movsbq	224(%rsp), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edx
	movb	%dl, (%rsp)
	movl	(%rax,%rcx,4), %ecx
	movsbl	%dl, %edx
	movb	%cl, 112(%rsp)
	movl	(%rax,%rsi,4), %r8d
	movsbl	%cl, %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movb	%r8b, 224(%rsp)
	movsbl	%r8b, %r8d
	call	__printf_chk@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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 %s %s"
.LC1:
	.string	"%c%c%c\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	subq	$344, %rsp
	.cfi_def_cfa_offset 352
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rcx
	leaq	112(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	call	__ctype_toupper_loc@PLT
	movsbq	(%rsp), %rdx
	movsbq	112(%rsp), %rcx
	movl	$1, %edi
	movsbq	224(%rsp), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edx
	movb	%dl, (%rsp)
	movl	(%rax,%rcx,4), %ecx
	movsbl	%dl, %edx
	movb	%cl, 112(%rsp)
	movl	(%rax,%rsi,4), %r8d
	movsbl	%cl, %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movb	%r8b, 224(%rsp)
	movsbl	%r8b, %r8d
	call	__printf_chk@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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 %s %s"
.LC1:
	.string	"%c%c%c\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	subq	$344, %rsp
	.cfi_def_cfa_offset 352
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rcx
	leaq	112(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	call	__ctype_toupper_loc@PLT
	movsbq	(%rsp), %rdx
	movsbq	112(%rsp), %rcx
	movl	$1, %edi
	movsbq	224(%rsp), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edx
	movb	%dl, (%rsp)
	movl	(%rax,%rcx,4), %ecx
	movsbl	%dl, %edx
	movb	%cl, 112(%rsp)
	movl	(%rax,%rsi,4), %r8d
	movsbl	%cl, %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movb	%r8b, 224(%rsp)
	movsbl	%r8b, %r8d
	call	__printf_chk@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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>
#include <ctype.h>

int main(void)
{
	char s1[100],s2[100],s3[100];
	scanf("%s %s %s",s1,s2,s3);
	s1[0] = toupper(s1[0]);
	s2[0] = toupper(s2[0]);
	s3[0] = toupper(s3[0]);

	printf("%c%c%c\n",s1[0],s2[0],s3[0]);
	
   	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <ctype.h>

int main(void)
{
	char s1[100],s2[100],s3[100];
	scanf("%s %s %s",s1,s2,s3);
	s1[0] = toupper(s1[0]);
	s2[0] = toupper(s2[0]);
	s3[0] = toupper(s3[0]);

	printf("%c%c%c\n",s1[0],s2[0],s3[0]);
	
   	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:

resident retsiger number
 asymc layered coding
 k nearest robhgien
 atcoder beginner contdst
 ysamc layered coding
 k tseraen robhgien
 resident setsiger nuebmr
 ysamc layered gnidoc
 resident setsiger rmbeun
 ysamc kayered gnidoc

RRN
 ALC
 KNR
 ABC
 YLC
 KTR
 RSN
 YLG
 RSR
 YKG

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>
#include <ctype.h>

int main(void)
{
	char s1[100],s2[100],s3[100];
	scanf("%s %s %s",s1,s2,s3);
	s1[0] = toupper(s1[0]);
	s2[0] = toupper(s2[0]);
	s3[0] = toupper(s3[0]);

	printf("%c%c%c\n",s1[0],s2[0],s3[0]);
	
   	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %s %s"
.LC1:
	.string	"%c%c%c\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	subq	$344, %rsp
	.cfi_def_cfa_offset 352
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rcx
	leaq	112(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	call	__ctype_toupper_loc@PLT
	movsbq	(%rsp), %rdx
	movsbq	112(%rsp), %rcx
	movl	$1, %edi
	movsbq	224(%rsp), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edx
	movb	%dl, (%rsp)
	movl	(%rax,%rcx,4), %ecx
	movsbl	%dl, %edx
	movb	%cl, 112(%rsp)
	movl	(%rax,%rsi,4), %r8d
	movsbl	%cl, %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movb	%r8b, 224(%rsp)
	movsbl	%r8b, %r8d
	call	__printf_chk@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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 %s %s"
.LC1:
	.string	"%c%c%c\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	subq	$344, %rsp
	.cfi_def_cfa_offset 352
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rcx
	leaq	112(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	call	__ctype_toupper_loc@PLT
	movsbq	(%rsp), %rdx
	movsbq	112(%rsp), %rcx
	movl	$1, %edi
	movsbq	224(%rsp), %rsi
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edx
	movb	%dl, (%rsp)
	movl	(%rax,%rcx,4), %ecx
	movsbl	%dl, %edx
	movb	%cl, 112(%rsp)
	movl	(%rax,%rsi,4), %r8d
	movsbl	%cl, %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movb	%r8b, 224(%rsp)
	movsbl	%r8b, %r8d
	call	__printf_chk@PLT
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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:
```