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 <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;
}```

Assembly Code:

```assembly
	.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:
```

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"
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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"
	.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:
```