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>

char s[65536];
char t[65536];

int main(void)
{
	int n;
	while(scanf("%d", &n), n){
		int i;
		char* str = s;
		char* tmp = t;
		scanf("%s", s);
		
		for(i=0; i<n; ++i){
			int m = strlen(str);
			int read = 0;
			int write = 0;
			while(read<m){
				char num = str[read];
				int cnt;
				
				for(cnt=0; str[read+cnt]==num; ++cnt);
				sprintf(tmp+write, "%d\0", cnt);
				
				while(tmp[write] != '\0')
					++write;
				
				tmp[write] = num;
				++write;
				read += cnt;
			}
			tmp[write] = '\0';
			
			{
				char* hoge = str;
				str = tmp;
				tmp = hoge;
			}
		}
		puts(str);
	}
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 65536
s:
	.zero	65536
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 65536
t:
	.zero	65536
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.string	""
.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L11:
	leaq	s(%rip), %rax
	movq	%rax, -32(%rbp)
	leaq	t(%rip), %rax
	movq	%rax, -24(%rbp)
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L3
.L10:
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -36(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L4
.L9:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -57(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L5
.L6:
	addl	$1, -40(%rbp)
.L5:
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -57(%rbp)
	je	.L6
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	movl	%eax, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	jmp	.L7
.L8:
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L8
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-57(%rbp), %eax
	movb	%al, (%rdx)
	addl	$1, -44(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -48(%rbp)
.L4:
	movl	-48(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L9
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-32(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	addl	$1, -52(%rbp)
.L3:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L10
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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"
	.section	.rodata
.LC1:
	.string	"%d"
	.string	""
	.section	.rodata.str1.1
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	movq	%rax, 24(%rsp)
.L2:
	movq	24(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L21
	leaq	s(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r14d
	leaq	s(%rip), %rbp
	testl	%r14d, %r14d
	jle	.L3
	leaq	s(%rip), %rax
	movl	$0, 20(%rsp)
	leaq	t(%rip), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	8(%rsp), %rdi
	call	strlen@PLT
	movl	%eax, 16(%rsp)
	testl	%eax, %eax
	je	.L13
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%rbp, %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%ecx, %rdx
	addq	8(%rsp), %rdx
	movl	$1, %eax
	movzbl	(%rdx), %r15d
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %r8d
	leal	(%rcx,%rax), %ebp
	addq	$1, %rax
	cmpb	%r15b, -1(%rdx,%rax)
	je	.L5
	movslq	%r14d, %r12
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rcx
	movq	$-1, %rdx
	leaq	0(%r13,%r12), %rbx
	movl	$1, %esi
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	cmpb	$0, (%rbx)
	je	.L6
	leaq	1(%r13,%r12), %rax
	leal	1(%r14), %edx
	subl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	leal	(%rdx,%rax), %r14d
	movq	%rax, %rbx
	addq	$1, %rax
	cmpb	$0, -1(%rax)
	jne	.L7
.L6:
	movb	%r15b, (%rbx)
	addl	$1, %r14d
	cmpl	16(%rsp), %ebp
	jge	.L22
	movl	%ebp, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	%r14d, %rax
	movl	36(%rsp), %r14d
	movq	%r13, %rbp
	addq	%r13, %rax
.L4:
	addl	$1, 20(%rsp)
	movb	$0, (%rax)
	movl	20(%rsp), %eax
	cmpl	%r14d, %eax
	jge	.L3
	movq	8(%rsp), %rax
	movq	%rbp, 8(%rsp)
	movq	%rax, %rbp
	jmp	.L9
.L3:
	movq	%rbp, %rdi
	call	puts@PLT
	jmp	.L2
.L13:
	movq	%rbp, %rax
	jmp	.L4
.L21:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$56, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 65536
t:
	.zero	65536
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 65536
s:
	.zero	65536
	.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"
	.section	.rodata
.LC1:
	.string	"%d"
	.string	""
	.section	.rodata.str1.1
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	movq	%rax, 24(%rsp)
.L2:
	movq	24(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L21
	leaq	s(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r14d
	leaq	s(%rip), %rbp
	testl	%r14d, %r14d
	jle	.L3
	leaq	s(%rip), %rax
	movl	$0, 20(%rsp)
	leaq	t(%rip), %rbp
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	8(%rsp), %rdi
	call	strlen@PLT
	movl	%eax, 16(%rsp)
	testl	%eax, %eax
	je	.L13
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%rbp, %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%ecx, %rdx
	addq	8(%rsp), %rdx
	movl	$1, %eax
	movzbl	(%rdx), %r15d
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %r8d
	leal	(%rcx,%rax), %ebp
	addq	$1, %rax
	cmpb	%r15b, -1(%rdx,%rax)
	je	.L5
	movslq	%r14d, %r12
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rcx
	movq	$-1, %rdx
	leaq	0(%r13,%r12), %rbx
	movl	$1, %esi
	movq	%rbx, %rdi
	call	__sprintf_chk@PLT
	cmpb	$0, (%rbx)
	je	.L6
	leaq	1(%r13,%r12), %rax
	leal	1(%r14), %edx
	subl	%eax, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	leal	(%rdx,%rax), %r14d
	movq	%rax, %rbx
	addq	$1, %rax
	cmpb	$0, -1(%rax)
	jne	.L7
.L6:
	movb	%r15b, (%rbx)
	addl	$1, %r14d
	cmpl	16(%rsp), %ebp
	jge	.L22
	movl	%ebp, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	%r14d, %rax
	movl	36(%rsp), %r14d
	movq	%r13, %rbp
	addq	%r13, %rax
.L4:
	addl	$1, 20(%rsp)
	movb	$0, (%rax)
	movl	20(%rsp), %eax
	cmpl	%r14d, %eax
	jge	.L3
	movq	8(%rsp), %rax
	movq	%rbp, 8(%rsp)
	movq	%rax, %rbp
	jmp	.L9
.L3:
	movq	%rbp, %rdi
	call	puts@PLT
	jmp	.L2
.L13:
	movq	%rbp, %rax
	jmp	.L4
.L21:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$56, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 65536
t:
	.zero	65536
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 65536
s:
	.zero	65536
	.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>

char s[65536];
char t[65536];

int main(void)
{
	int n;
	while(scanf("%d", &n), n){
		int i;
		char* str = s;
		char* tmp = t;
		scanf("%s", s);
		
		for(i=0; i<n; ++i){
			int m = strlen(str);
			int read = 0;
			int write = 0;
			while(read<m){
				char num = str[read];
				int cnt;
				
				for(cnt=0; str[read+cnt]==num; ++cnt);
				sprintf(tmp+write, "%d\0", cnt);
				
				while(tmp[write] != '\0')
					++write;
				
				tmp[write] = num;
				++write;
				read += cnt;
			}
			tmp[write] = '\0';
			
			{
				char* hoge = str;
				str = tmp;
				tmp = hoge;
			}
		}
		puts(str);
	}
	
	return 0;
}
5
11
5
21
0
 5
18
5
21
0
 5
18
5
1
0
 5
18
6
1
0
 5
28
6
1
0
 5
28
11
1
0
 5
28
3
1
0
 5
43
3
1
0
 5
43
3
0
0
 5
11
5
15
0

13112221
1113213211
 311311222118
1113213211
 311311222118
312211
 311311222118
13112221
 11131221121113122118
13112221
 11131221121113122118
3113112221232112111312211312113211
 11131221121113122118
1211
 11131221141113122113
1211
 11131221141113122113
3110
 13112221
311311222115

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>

char s[65536];
char t[65536];

int main(void)
{
	int n;
	while(scanf("%d", &n), n){
		int i;
		char* str = s;
		char* tmp = t;
		scanf("%s", s);
		
		for(i=0; i<n; ++i){
			int m = strlen(str);
			int read = 0;
			int write = 0;
			while(read<m){
				char num = str[read];
				int cnt;
				
				for(cnt=0; str[read+cnt]==num; ++cnt);
				sprintf(tmp+write, "%d\0", cnt);
				
				while(tmp[write] != '\0')
					++write;
				
				tmp[write] = num;
				++write;
				read += cnt;
			}
			tmp[write] = '\0';
			
			{
				char* hoge = str;
				str = tmp;
				tmp = hoge;
			}
		}
		puts(str);
	}
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 65536
s:
	.zero	65536
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 65536
t:
	.zero	65536
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.string	""
.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L11:
	leaq	s(%rip), %rax
	movq	%rax, -32(%rbp)
	leaq	t(%rip), %rax
	movq	%rax, -24(%rbp)
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L3
.L10:
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -36(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L4
.L9:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -57(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L5
.L6:
	addl	$1, -40(%rbp)
.L5:
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -57(%rbp)
	je	.L6
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	movl	%eax, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	jmp	.L7
.L8:
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L8
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-57(%rbp), %eax
	movb	%al, (%rdx)
	addl	$1, -44(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -48(%rbp)
.L4:
	movl	-48(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L9
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-32(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	addl	$1, -52(%rbp)
.L3:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L10
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 65536
s:
	.zero	65536
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 65536
t:
	.zero	65536
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.string	""
.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L11:
	leaq	s(%rip), %rax
	movq	%rax, -32(%rbp)
	leaq	t(%rip), %rax
	movq	%rax, -24(%rbp)
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L3
.L10:
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -36(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L4
.L9:
	movl	-48(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -57(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L5
.L6:
	addl	$1, -40(%rbp)
.L5:
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, -57(%rbp)
	je	.L6
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	movl	%eax, %edx
	leaq	.LC1(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	jmp	.L7
.L8:
	addl	$1, -44(%rbp)
.L7:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L8
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-57(%rbp), %eax
	movb	%al, (%rdx)
	addl	$1, -44(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -48(%rbp)
.L4:
	movl	-48(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L9
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-32(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	addl	$1, -52(%rbp)
.L3:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L10
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
