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()
{
	int i=0;
	long long int n;
	char s[12]={};

	scanf("%lld",&n);

	while(1){
		if(!n){
			break;
		}
		s[i++]='a'+(n-1)%26;
		n=(n-1)/26;
	}
	while(i--)
		printf("%c",s[i]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
	.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
	movl	$0, -36(%rbp)
	movq	$0, -20(%rbp)
	movl	$0, -12(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L4:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	.L10
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rcx
	movabsq	$5675921253449092805, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$3, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	leal	97(%rax), %ecx
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -20(%rbp,%rax)
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rcx
	movabsq	$5675921253449092805, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$3, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	jmp	.L4
.L10:
	nop
	jmp	.L5
.L6:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-20(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L5:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	movl	$0, 20(%rsp)
	movq	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rcx
	testq	%rcx, %rcx
	je	.L5
	movabsq	$5675921253449092805, %rsi
	subq	$1, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rdx, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$3, %rax
	subq	%rdx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rcx
	addl	$97, %ecx
	movb	%cl, 12(%rsp)
	testq	%rax, %rax
	je	.L7
	leaq	-1(%rax), %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rdx, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$3, %rax
	subq	%rdx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rcx
	addl	$97, %ecx
	movb	%cl, 13(%rsp)
	testq	%rax, %rax
	je	.L8
	leaq	-1(%rax), %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rdx, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$3, %rax
	subq	%rdx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rcx
	addl	$97, %ecx
	movb	%cl, 14(%rsp)
	testq	%rax, %rax
	je	.L9
	subq	$1, %rax
	movl	$26, %ecx
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 15(%rsp)
	testq	%rax, %rax
	je	.L10
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 16(%rsp)
	testq	%rax, %rax
	je	.L11
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 17(%rsp)
	testq	%rax, %rax
	je	.L12
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 18(%rsp)
	testq	%rax, %rax
	je	.L13
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 19(%rsp)
	testq	%rax, %rax
	je	.L14
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 20(%rsp)
	testq	%rax, %rax
	je	.L15
	leaq	-1(%rax), %rax
	movl	$26, %ecx
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 21(%rsp)
	testq	%rax, %rax
	je	.L16
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 22(%rsp)
	testq	%rax, %rax
	je	.L17
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 23(%rsp)
	movl	$11, %edx
.L4:
	movq	%rax, (%rsp)
	movslq	%edx, %rax
	leaq	11(%rsp), %rbp
	leaq	12(%rsp,%rax), %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rbx), %edi
	subq	$1, %rbx
	call	putchar@PLT
	cmpq	%rbp, %rbx
	jne	.L3
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	$4, %edx
	jmp	.L4
.L7:
	xorl	%edx, %edx
	jmp	.L4
.L8:
	movl	$1, %edx
	jmp	.L4
.L9:
	movl	$2, %edx
	jmp	.L4
.L10:
	movl	$3, %edx
	jmp	.L4
.L12:
	movl	$5, %edx
	jmp	.L4
.L13:
	movl	$6, %edx
	jmp	.L4
.L14:
	movl	$7, %edx
	jmp	.L4
.L15:
	movl	$8, %edx
	jmp	.L4
.L16:
	movl	$9, %edx
	jmp	.L4
.L17:
	movl	$10, %edx
	jmp	.L4
.L22:
	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	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	movl	$0, 20(%rsp)
	movq	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rcx
	testq	%rcx, %rcx
	je	.L5
	movabsq	$5675921253449092805, %rsi
	subq	$1, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rdx, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$3, %rax
	subq	%rdx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rcx
	addl	$97, %ecx
	movb	%cl, 12(%rsp)
	testq	%rax, %rax
	je	.L7
	leaq	-1(%rax), %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rdx, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$3, %rax
	subq	%rdx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rcx
	addl	$97, %ecx
	movb	%cl, 13(%rsp)
	testq	%rax, %rax
	je	.L8
	leaq	-1(%rax), %rcx
	movq	%rcx, %rax
	imulq	%rsi
	movq	%rdx, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$3, %rax
	subq	%rdx, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rcx
	addl	$97, %ecx
	movb	%cl, 14(%rsp)
	testq	%rax, %rax
	je	.L9
	subq	$1, %rax
	movl	$26, %ecx
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 15(%rsp)
	testq	%rax, %rax
	je	.L10
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 16(%rsp)
	testq	%rax, %rax
	je	.L11
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 17(%rsp)
	testq	%rax, %rax
	je	.L12
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 18(%rsp)
	testq	%rax, %rax
	je	.L13
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 19(%rsp)
	testq	%rax, %rax
	je	.L14
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 20(%rsp)
	testq	%rax, %rax
	je	.L15
	leaq	-1(%rax), %rax
	movl	$26, %ecx
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 21(%rsp)
	testq	%rax, %rax
	je	.L16
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 22(%rsp)
	testq	%rax, %rax
	je	.L17
	subq	$1, %rax
	cqto
	idivq	%rcx
	addl	$97, %edx
	movb	%dl, 23(%rsp)
	movl	$11, %edx
.L4:
	movq	%rax, (%rsp)
	movslq	%edx, %rax
	leaq	11(%rsp), %rbp
	leaq	12(%rsp,%rax), %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rbx), %edi
	subq	$1, %rbx
	call	putchar@PLT
	cmpq	%rbp, %rbx
	jne	.L3
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	movl	$4, %edx
	jmp	.L4
.L7:
	xorl	%edx, %edx
	jmp	.L4
.L8:
	movl	$1, %edx
	jmp	.L4
.L9:
	movl	$2, %edx
	jmp	.L4
.L10:
	movl	$3, %edx
	jmp	.L4
.L12:
	movl	$5, %edx
	jmp	.L4
.L13:
	movl	$6, %edx
	jmp	.L4
.L14:
	movl	$7, %edx
	jmp	.L4
.L15:
	movl	$8, %edx
	jmp	.L4
.L16:
	movl	$9, %edx
	jmp	.L4
.L17:
	movl	$10, %edx
	jmp	.L4
.L22:
	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()
{
	int i=0;
	long long int n;
	char s[12]={};

	scanf("%lld",&n);

	while(1){
		if(!n){
			break;
		}
		s[i++]='a'+(n-1)%26;
		n=(n-1)/26;
	}
	while(i--)
		printf("%c",s[i]);
	return 0;
}
40
 1
 71095103
 51
 50389265
 4
 56744729
 3
 61759127
 6

an a eynzga ay dffxhq d dtdmwo c eecuqa f
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()
{
	int i=0;
	long long int n;
	char s[12]={};

	scanf("%lld",&n);

	while(1){
		if(!n){
			break;
		}
		s[i++]='a'+(n-1)%26;
		n=(n-1)/26;
	}
	while(i--)
		printf("%c",s[i]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
	.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
	movl	$0, -36(%rbp)
	movq	$0, -20(%rbp)
	movl	$0, -12(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L4:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	.L10
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rcx
	movabsq	$5675921253449092805, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$3, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	leal	97(%rax), %ecx
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -20(%rbp,%rax)
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rcx
	movabsq	$5675921253449092805, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$3, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	jmp	.L4
.L10:
	nop
	jmp	.L5
.L6:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-20(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L5:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"%lld"
	.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
	movl	$0, -36(%rbp)
	movq	$0, -20(%rbp)
	movl	$0, -12(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L4:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	.L10
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rcx
	movabsq	$5675921253449092805, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$3, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	leal	97(%rax), %ecx
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -20(%rbp,%rax)
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rcx
	movabsq	$5675921253449092805, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$3, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	jmp	.L4
.L10:
	nop
	jmp	.L5
.L6:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-20(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L5:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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:
