Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<string.h>
int main()
{
    char s1[10],s2[10],s3[10];
    int i;
    scanf("%s %s %s",&s1,&s2,&s3);

    for(i=0;i<10;i++){
    if('a'<=s1[i] && s1[i]<='z' && 'a'<=s2[i] && s2[i]<='z' && 'a'<=s3[i] && s3[i]<='z'){
       continue;

    }
    }
    s1[0]=s1[0]-32;
    s2[0]=s2[0]-32;
    s3[0]=s3[0]-32;
    printf("%c%c%c",s1[0],s2[0],s3[0]);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s %s %s"
.LC1:
	.string	"%c%c%c"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-18(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-38(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L2
.L4:
	movl	-44(%rbp), %eax
	cltq
	movzbl	-38(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-38(%rbp,%rax), %eax
	cmpb	$122, %al
	jg	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-28(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-28(%rbp,%rax), %eax
	cmpb	$122, %al
	jg	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$122, %al
.L3:
	addl	$1, -44(%rbp)
.L2:
	cmpl	$9, -44(%rbp)
	jle	.L4
	movzbl	-38(%rbp), %eax
	subl	$32, %eax
	movb	%al, -38(%rbp)
	movzbl	-28(%rbp), %eax
	subl	$32, %eax
	movb	%al, -28(%rbp)
	movzbl	-18(%rbp), %eax
	subl	$32, %eax
	movb	%al, -18(%rbp)
	movzbl	-18(%rbp), %eax
	movsbl	%al, %ecx
	movzbl	-28(%rbp), %eax
	movsbl	%al, %edx
	movzbl	-38(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.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 %s %s"
.LC1:
	.string	"%c%c%c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	30(%rsp), %rcx
	leaq	20(%rsp), %rdx
	leaq	10(%rsp), %rsi
	call	scanf@PLT
	movzbl	10(%rsp), %eax
	leaq	.LC1(%rip), %rdi
	leal	-32(%rax), %esi
	movzbl	20(%rsp), %eax
	movb	%sil, 10(%rsp)
	movsbl	%sil, %esi
	leal	-32(%rax), %edx
	movzbl	30(%rsp), %eax
	movb	%dl, 20(%rsp)
	movsbl	%dl, %edx
	leal	-32(%rax), %ecx
	xorl	%eax, %eax
	movb	%cl, 30(%rsp)
	movsbl	%cl, %ecx
	call	printf@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE12:
	.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 %s %s"
.LC1:
	.string	"%c%c%c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	30(%rsp), %rcx
	leaq	20(%rsp), %rdx
	leaq	10(%rsp), %rsi
	call	scanf@PLT
	movzbl	10(%rsp), %eax
	leaq	.LC1(%rip), %rdi
	leal	-32(%rax), %esi
	movzbl	20(%rsp), %eax
	movb	%sil, 10(%rsp)
	movsbl	%sil, %esi
	leal	-32(%rax), %edx
	movzbl	30(%rsp), %eax
	movb	%dl, 20(%rsp)
	movsbl	%dl, %edx
	leal	-32(%rax), %ecx
	xorl	%eax, %eax
	movb	%cl, 30(%rsp)
	movsbl	%cl, %ecx
	call	printf@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L5
	xorl	%eax, %eax
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE12:
	.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<string.h>
int main()
{
    char s1[10],s2[10],s3[10];
    int i;
    scanf("%s %s %s",&s1,&s2,&s3);

    for(i=0;i<10;i++){
    if('a'<=s1[i] && s1[i]<='z' && 'a'<=s2[i] && s2[i]<='z' && 'a'<=s3[i] && s3[i]<='z'){
       continue;

    }
    }
    s1[0]=s1[0]-32;
    s2[0]=s2[0]-32;
    s3[0]=s3[0]-32;
    printf("%c%c%c",s1[0],s2[0],s3[0]);
    return 0;
}
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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<string.h>
int main()
{
    char s1[10],s2[10],s3[10];
    int i;
    scanf("%s %s %s",&s1,&s2,&s3);

    for(i=0;i<10;i++){
    if('a'<=s1[i] && s1[i]<='z' && 'a'<=s2[i] && s2[i]<='z' && 'a'<=s3[i] && s3[i]<='z'){
       continue;

    }
    }
    s1[0]=s1[0]-32;
    s2[0]=s2[0]-32;
    s3[0]=s3[0]-32;
    printf("%c%c%c",s1[0],s2[0],s3[0]);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s %s %s"
.LC1:
	.string	"%c%c%c"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-18(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-38(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L2
.L4:
	movl	-44(%rbp), %eax
	cltq
	movzbl	-38(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-38(%rbp,%rax), %eax
	cmpb	$122, %al
	jg	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-28(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-28(%rbp,%rax), %eax
	cmpb	$122, %al
	jg	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$122, %al
.L3:
	addl	$1, -44(%rbp)
.L2:
	cmpl	$9, -44(%rbp)
	jle	.L4
	movzbl	-38(%rbp), %eax
	subl	$32, %eax
	movb	%al, -38(%rbp)
	movzbl	-28(%rbp), %eax
	subl	$32, %eax
	movb	%al, -28(%rbp)
	movzbl	-18(%rbp), %eax
	subl	$32, %eax
	movb	%al, -18(%rbp)
	movzbl	-18(%rbp), %eax
	movsbl	%al, %ecx
	movzbl	-28(%rbp), %eax
	movsbl	%al, %edx
	movzbl	-38(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.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 %s %s"
.LC1:
	.string	"%c%c%c"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-18(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-38(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L2
.L4:
	movl	-44(%rbp), %eax
	cltq
	movzbl	-38(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-38(%rbp,%rax), %eax
	cmpb	$122, %al
	jg	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-28(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-28(%rbp,%rax), %eax
	cmpb	$122, %al
	jg	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$96, %al
	jle	.L3
	movl	-44(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	cmpb	$122, %al
.L3:
	addl	$1, -44(%rbp)
.L2:
	cmpl	$9, -44(%rbp)
	jle	.L4
	movzbl	-38(%rbp), %eax
	subl	$32, %eax
	movb	%al, -38(%rbp)
	movzbl	-28(%rbp), %eax
	subl	$32, %eax
	movb	%al, -28(%rbp)
	movzbl	-18(%rbp), %eax
	subl	$32, %eax
	movb	%al, -18(%rbp)
	movzbl	-18(%rbp), %eax
	movsbl	%al, %ecx
	movzbl	-28(%rbp), %eax
	movsbl	%al, %edx
	movzbl	-38(%rbp), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.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:
