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

int main(void){
    int i,keyn,key[101];
    char code[101];
    char station[53]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    int kingpos;
    while(scanf("%d",&keyn)!=EOF && keyn!=0){
        for(i=0;i<=keyn;i++){
            scanf("%d ",&key[i]);
        }
        scanf("%s",code);
        for(i=0;i<=strlen(code)-1;i++){
            if(islower(code[i]))kingpos=code[i]-'a'-key[i%keyn];
            else kingpos=code[i]-'A'+26-key[i%keyn];
            if(kingpos<0)kingpos+=52;
            printf("%c",station[kingpos]);
        }
        printf("\n");
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.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	%rbx
	subq	$616, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movabsq	$7523094288207667809, %rax
	movabsq	$8101815670912281193, %rdx
	movq	%rax, -192(%rbp)
	movq	%rdx, -184(%rbp)
	movabsq	$8680537053616894577, %rax
	movabsq	$5063528411713075833, %rdx
	movq	%rax, -176(%rbp)
	movq	%rdx, -168(%rbp)
	movabsq	$5642249794417674311, %rax
	movabsq	$6220971177122287695, %rdx
	movq	%rax, -160(%rbp)
	movq	%rdx, -152(%rbp)
	movl	$1515804759, -144(%rbp)
	movb	$0, -140(%rbp)
	jmp	.L2
.L11:
	movl	$0, -616(%rbp)
	jmp	.L3
.L4:
	leaq	-608(%rbp), %rdx
	movl	-616(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -616(%rbp)
.L3:
	movl	-620(%rbp), %eax
	cmpl	%eax, -616(%rbp)
	jle	.L4
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -616(%rbp)
	jmp	.L5
.L9:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$512, %eax
	testl	%eax, %eax
	je	.L6
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %esi
	movl	-620(%rbp), %ecx
	movl	-616(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movl	-608(%rbp,%rax,4), %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	%eax, -612(%rbp)
	jmp	.L7
.L6:
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-39(%rax), %esi
	movl	-620(%rbp), %ecx
	movl	-616(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movl	-608(%rbp,%rax,4), %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	%eax, -612(%rbp)
.L7:
	cmpl	$0, -612(%rbp)
	jns	.L8
	addl	$52, -612(%rbp)
.L8:
	movl	-612(%rbp), %eax
	cltq
	movzbl	-192(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -616(%rbp)
.L5:
	movl	-616(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jbe	.L9
	movl	$10, %edi
	call	putchar@PLT
.L2:
	leaq	-620(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L10
	movl	-620(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
.L10:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	movq	-8(%rbp), %rbx
	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	"%d "
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$616, %rsp
	.cfi_def_cfa_offset 672
	movdqa	.LC3(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 600(%rsp)
	xorl	%eax, %eax
	movb	$0, 484(%rsp)
	leaq	12(%rsp), %r13
	leaq	496(%rsp), %rbx
	movaps	%xmm0, 432(%rsp)
	movdqa	.LC4(%rip), %xmm0
	movl	$1515804759, 480(%rsp)
	movaps	%xmm0, 448(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movaps	%xmm0, 464(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L8
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	leaq	16(%rsp), %r14
	movl	$0, %r15d
	js	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	addq	$4, %r14
	cmpl	%r15d, 12(%rsp)
	jge	.L3
.L10:
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	call	__ctype_b_loc@PLT
	movq	%rax, %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	leal	-97(%rcx), %eax
	subl	%edx, %eax
.L5:
	testl	%eax, %eax
	leal	52(%rax), %edx
	cmovs	%edx, %eax
	addq	$1, %r15
	cltq
	movsbl	432(%rsp,%rax), %edi
	call	putchar@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%r15, %rax
	jb	.L23
.L7:
	movl	%r15d, %eax
	movsbq	(%rbx,%r15), %rcx
	cltd
	idivl	12(%rsp)
	movq	(%r14), %rax
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %edx
	testb	$2, 1(%rax,%rcx,2)
	jne	.L24
	leal	-39(%rcx), %eax
	subl	%edx, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	movq	600(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$616, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	7523094288207667809
	.quad	8101815670912281193
	.align 16
.LC4:
	.quad	8680537053616894577
	.quad	5063528411713075833
	.align 16
.LC5:
	.quad	5642249794417674311
	.quad	6220971177122287695
	.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	"%d "
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$616, %rsp
	.cfi_def_cfa_offset 672
	movdqa	.LC3(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 600(%rsp)
	xorl	%eax, %eax
	movb	$0, 484(%rsp)
	leaq	12(%rsp), %r13
	leaq	496(%rsp), %rbx
	movaps	%xmm0, 432(%rsp)
	movdqa	.LC4(%rip), %xmm0
	movl	$1515804759, 480(%rsp)
	movaps	%xmm0, 448(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movaps	%xmm0, 464(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L8
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	leaq	16(%rsp), %r14
	movl	$0, %r15d
	js	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	addq	$4, %r14
	cmpl	%r15d, 12(%rsp)
	jge	.L3
.L10:
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	call	__ctype_b_loc@PLT
	movq	%rax, %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	leal	-97(%rcx), %eax
	subl	%edx, %eax
.L5:
	testl	%eax, %eax
	leal	52(%rax), %edx
	cmovs	%edx, %eax
	addq	$1, %r15
	cltq
	movsbl	432(%rsp,%rax), %edi
	call	putchar@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%r15, %rax
	jb	.L23
.L7:
	movl	%r15d, %eax
	movsbq	(%rbx,%r15), %rcx
	cltd
	idivl	12(%rsp)
	movq	(%r14), %rax
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %edx
	testb	$2, 1(%rax,%rcx,2)
	jne	.L24
	leal	-39(%rcx), %eax
	subl	%edx, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	movq	600(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$616, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	7523094288207667809
	.quad	8101815670912281193
	.align 16
.LC4:
	.quad	8680537053616894577
	.quad	5063528411713075833
	.align 16
.LC5:
	.quad	5642249794417674311
	.quad	6220971177122287695
	.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>
#include <string.h>
#include <ctype.h>

int main(void){
    int i,keyn,key[101];
    char code[101];
    char station[53]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    int kingpos;
    while(scanf("%d",&keyn)!=EOF && keyn!=0){
        for(i=0;i<=keyn;i++){
            scanf("%d ",&key[i]);
        }
        scanf("%s",code);
        for(i=0;i<=strlen(code)-1;i++){
            if(islower(code[i]))kingpos=code[i]-'a'-key[i%keyn];
            else kingpos=code[i]-'A'+26-key[i%keyn];
            if(kingpos<0)kingpos+=52;
            printf("%c",station[kingpos]);
        }
        printf("\n");
    }
    return 0;
}
2
1 2
bdd
3
3 2 1
DDDA
5
3 1 4 5 2
dcdkIlkP
0
 2
1 2
bdd
3
3 2 2
DDDA
5
3 1 4 5 2
dcdkIlkP
0
 2
1 2
bdd
3
5 2 2
DDDA
5
3 1 4 5 2
dcdkIlkP
0
 2
1 2
ddb
3
3 2 1
DDDA
5
3 1 4 5 3
dcdkIlkP
0
 2
1 2
bcd
3
3 2 1
DDDA
5
3 1 4 5 2
dcdkIlkP
0
 2
1 2
add
3
3 2 2
DDDA
5
3 1 4 5 2
dcdkIlkP
0
 2
1 2
ddb
3
3 2 1
DDDA
5
3 0 4 5 3
dcdkIlkP
0
 2
1 2
add
3
3 2 2
DDDA
5
3 1 4 5 1
dcdkIlkP
0
 2
1 2
ddb
3
3 2 1
CDDA
5
3 0 4 5 3
dcdkIlkP
0
 2
1 2
ddb
3
3 2 1
CDDA
5
3 0 4 4 3
dcdkIlkP
0

abc
ABCx
abZfGijL
 abc
ABBx
abZfGijL
 abc
yBBv
abZfGijL
 cba
ABCx
abZfFijL
 aac
ABCx
abZfGijL
 Zbc
ABBx
abZfGijL
 cba
ABCx
acZfFikL
 Zbc
ABBx
abZfHijL
 cba
zBCx
acZfFikL
 cba
zBCx
acZgFikL

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

int main(void){
    int i,keyn,key[101];
    char code[101];
    char station[53]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    int kingpos;
    while(scanf("%d",&keyn)!=EOF && keyn!=0){
        for(i=0;i<=keyn;i++){
            scanf("%d ",&key[i]);
        }
        scanf("%s",code);
        for(i=0;i<=strlen(code)-1;i++){
            if(islower(code[i]))kingpos=code[i]-'a'-key[i%keyn];
            else kingpos=code[i]-'A'+26-key[i%keyn];
            if(kingpos<0)kingpos+=52;
            printf("%c",station[kingpos]);
        }
        printf("\n");
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.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	%rbx
	subq	$616, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movabsq	$7523094288207667809, %rax
	movabsq	$8101815670912281193, %rdx
	movq	%rax, -192(%rbp)
	movq	%rdx, -184(%rbp)
	movabsq	$8680537053616894577, %rax
	movabsq	$5063528411713075833, %rdx
	movq	%rax, -176(%rbp)
	movq	%rdx, -168(%rbp)
	movabsq	$5642249794417674311, %rax
	movabsq	$6220971177122287695, %rdx
	movq	%rax, -160(%rbp)
	movq	%rdx, -152(%rbp)
	movl	$1515804759, -144(%rbp)
	movb	$0, -140(%rbp)
	jmp	.L2
.L11:
	movl	$0, -616(%rbp)
	jmp	.L3
.L4:
	leaq	-608(%rbp), %rdx
	movl	-616(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -616(%rbp)
.L3:
	movl	-620(%rbp), %eax
	cmpl	%eax, -616(%rbp)
	jle	.L4
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -616(%rbp)
	jmp	.L5
.L9:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$512, %eax
	testl	%eax, %eax
	je	.L6
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %esi
	movl	-620(%rbp), %ecx
	movl	-616(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movl	-608(%rbp,%rax,4), %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	%eax, -612(%rbp)
	jmp	.L7
.L6:
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-39(%rax), %esi
	movl	-620(%rbp), %ecx
	movl	-616(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movl	-608(%rbp,%rax,4), %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	%eax, -612(%rbp)
.L7:
	cmpl	$0, -612(%rbp)
	jns	.L8
	addl	$52, -612(%rbp)
.L8:
	movl	-612(%rbp), %eax
	cltq
	movzbl	-192(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -616(%rbp)
.L5:
	movl	-616(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jbe	.L9
	movl	$10, %edi
	call	putchar@PLT
.L2:
	leaq	-620(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L10
	movl	-620(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
.L10:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	movq	-8(%rbp), %rbx
	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	"%d "
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.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	%rbx
	subq	$616, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movabsq	$7523094288207667809, %rax
	movabsq	$8101815670912281193, %rdx
	movq	%rax, -192(%rbp)
	movq	%rdx, -184(%rbp)
	movabsq	$8680537053616894577, %rax
	movabsq	$5063528411713075833, %rdx
	movq	%rax, -176(%rbp)
	movq	%rdx, -168(%rbp)
	movabsq	$5642249794417674311, %rax
	movabsq	$6220971177122287695, %rdx
	movq	%rax, -160(%rbp)
	movq	%rdx, -152(%rbp)
	movl	$1515804759, -144(%rbp)
	movb	$0, -140(%rbp)
	jmp	.L2
.L11:
	movl	$0, -616(%rbp)
	jmp	.L3
.L4:
	leaq	-608(%rbp), %rdx
	movl	-616(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -616(%rbp)
.L3:
	movl	-620(%rbp), %eax
	cmpl	%eax, -616(%rbp)
	jle	.L4
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -616(%rbp)
	jmp	.L5
.L9:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$512, %eax
	testl	%eax, %eax
	je	.L6
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %esi
	movl	-620(%rbp), %ecx
	movl	-616(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movl	-608(%rbp,%rax,4), %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	%eax, -612(%rbp)
	jmp	.L7
.L6:
	movl	-616(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-39(%rax), %esi
	movl	-620(%rbp), %ecx
	movl	-616(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movl	-608(%rbp,%rax,4), %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	%eax, -612(%rbp)
.L7:
	cmpl	$0, -612(%rbp)
	jns	.L8
	addl	$52, -612(%rbp)
.L8:
	movl	-612(%rbp), %eax
	cltq
	movzbl	-192(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -616(%rbp)
.L5:
	movl	-616(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jbe	.L9
	movl	$10, %edi
	call	putchar@PLT
.L2:
	leaq	-620(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L10
	movl	-620(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
.L10:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	movq	-8(%rbp), %rbx
	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:
