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

```c
// Aizu Vol-20 2006: Keitai Message
// 2017.8.12 bal4u@uu

#include <stdio.h>
#include <stdlib.h>

char *gets();
char *t[10] = {	"\0", ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" };
int w[10] = { 0, 5, 3, 3, 3, 3, 3, 4, 3, 4 };
char buf[1100], *p;

int main()
{
	int n;
	int a, k;

	gets(buf), n = atoi(buf);
	while (n-- > 0) {
		gets(p = buf);
		while (*p) {
			if (*p == '0') p++;
			else {
				a = *p++ - '0', k = 1;
				while (*p != '0') p++, k++;
				p++;
				putchar(t[a][(k - 1) % w[a]]);
			}
		}
		putchar('\n');
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.section	.rodata
.LC0:
	.string	""
	.string	""
.LC1:
	.string	".,!? "
.LC2:
	.string	"abc"
.LC3:
	.string	"def"
.LC4:
	.string	"ghi"
.LC5:
	.string	"jkl"
.LC6:
	.string	"mno"
.LC7:
	.string	"pqrs"
.LC8:
	.string	"tuv"
.LC9:
	.string	"wxyz"
	.section	.data.rel.local,"aw"
	.align 32
	.type	t, @object
	.size	t, 80
t:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.globl	w
	.data
	.align 32
	.type	w, @object
	.size	w, 40
w:
	.long	0
	.long	5
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	4
	.long	3
	.long	4
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 1100
buf:
	.zero	1100
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	buf(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	leaq	buf(%rip), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -12(%rbp)
	jmp	.L2
.L8:
	leaq	buf(%rip), %rax
	movq	%rax, p(%rip)
	movq	p(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L3
.L7:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L4
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	jmp	.L3
.L4:
	movq	p(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, p(%rip)
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	addl	$1, -8(%rbp)
.L5:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L6
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	w(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	addq	%rsi, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L3:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L7
	movl	$10, %edi
	call	putchar@PLT
.L2:
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -12(%rbp)
	testl	%eax, %eax
	jg	.L8
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	buf(%rip), %r14
	xorl	%eax, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	gets@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%r14, %rdi
	call	strtol@PLT
	testl	%eax, %eax
	jle	.L16
	leal	-1(%rax), %r13d
	leaq	t(%rip), %r12
	leaq	w(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	$1, %ebp
	movq	%r14, p(%rip)
	call	gets@PLT
	movq	p(%rip), %rdx
	movzbl	(%rdx), %eax
	testb	%al, %al
	jne	.L3
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rcx, %rdx
	movzbl	(%rdx), %eax
	testb	%al, %al
	je	.L9
.L3:
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	cmpb	$48, %al
	je	.L19
	movsbl	(%rdx), %edi
	subl	$48, %edi
	cmpb	$48, 1(%rdx)
	je	.L10
	addq	$2, %rdx
	movl	%ebp, %esi
	subl	%edx, %esi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rdx, p(%rip)
	leal	(%rsi,%rdx), %eax
	movq	%rdx, %rcx
	addq	$1, %rdx
	cmpb	$48, -1(%rdx)
	jne	.L8
.L7:
	addq	$1, %rcx
	cltd
	movq	stdout(%rip), %rsi
	movq	%rcx, p(%rip)
	movslq	%edi, %rcx
	idivl	(%rbx,%rcx,4)
	movq	(%r12,%rcx,8), %rax
	movslq	%edx, %rdx
	movsbl	(%rax,%rdx), %edi
	call	putc@PLT
	movq	p(%rip), %rdx
	movzbl	(%rdx), %eax
	testb	%al, %al
	jne	.L3
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	subl	$1, %r13d
	jnb	.L2
.L16:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L7
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	buf
	.align 32
	.type	buf, @object
	.size	buf, 1100
buf:
	.zero	1100
	.globl	w
	.data
	.align 32
	.type	w, @object
	.size	w, 40
w:
	.long	0
	.long	5
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	4
	.long	3
	.long	4
	.globl	t
	.section	.rodata
.LC0:
	.string	""
	.string	""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	".,!? "
.LC2:
	.string	"abc"
.LC3:
	.string	"def"
.LC4:
	.string	"ghi"
.LC5:
	.string	"jkl"
.LC6:
	.string	"mno"
.LC7:
	.string	"pqrs"
.LC8:
	.string	"tuv"
.LC9:
	.string	"wxyz"
	.section	.data.rel.local,"aw"
	.align 32
	.type	t, @object
	.size	t, 80
t:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.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	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	buf(%rip), %r14
	xorl	%eax, %eax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	gets@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%r14, %rdi
	call	strtol@PLT
	testl	%eax, %eax
	jle	.L16
	leal	-1(%rax), %r13d
	leaq	t(%rip), %r12
	leaq	w(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	$1, %ebp
	movq	%r14, p(%rip)
	call	gets@PLT
	movq	p(%rip), %rdx
	movzbl	(%rdx), %eax
	testb	%al, %al
	jne	.L3
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rcx, %rdx
	movzbl	(%rdx), %eax
	testb	%al, %al
	je	.L9
.L3:
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	cmpb	$48, %al
	je	.L19
	movsbl	(%rdx), %edi
	subl	$48, %edi
	cmpb	$48, 1(%rdx)
	je	.L10
	addq	$2, %rdx
	movl	%ebp, %esi
	subl	%edx, %esi
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rdx, p(%rip)
	leal	(%rsi,%rdx), %eax
	movq	%rdx, %rcx
	addq	$1, %rdx
	cmpb	$48, -1(%rdx)
	jne	.L8
.L7:
	addq	$1, %rcx
	cltd
	movq	stdout(%rip), %rsi
	movq	%rcx, p(%rip)
	movslq	%edi, %rcx
	idivl	(%rbx,%rcx,4)
	movq	(%r12,%rcx,8), %rax
	movslq	%edx, %rdx
	movsbl	(%rax,%rdx), %edi
	call	putc@PLT
	movq	p(%rip), %rdx
	movzbl	(%rdx), %eax
	testb	%al, %al
	jne	.L3
.L9:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	subl	$1, %r13d
	jnb	.L2
.L16:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L7
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	buf
	.align 32
	.type	buf, @object
	.size	buf, 1100
buf:
	.zero	1100
	.globl	w
	.data
	.align 32
	.type	w, @object
	.size	w, 40
w:
	.long	0
	.long	5
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	4
	.long	3
	.long	4
	.globl	t
	.section	.rodata
.LC0:
	.string	""
	.string	""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	".,!? "
.LC2:
	.string	"abc"
.LC3:
	.string	"def"
.LC4:
	.string	"ghi"
.LC5:
	.string	"jkl"
.LC6:
	.string	"mno"
.LC7:
	.string	"pqrs"
.LC8:
	.string	"tuv"
.LC9:
	.string	"wxyz"
	.section	.data.rel.local,"aw"
	.align 32
	.type	t, @object
	.size	t, 80
t:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.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:

// Aizu Vol-20 2006: Keitai Message
// 2017.8.12 bal4u@uu

#include <stdio.h>
#include <stdlib.h>

char *gets();
char *t[10] = {	"\0", ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" };
int w[10] = { 0, 5, 3, 3, 3, 3, 3, 4, 3, 4 };
char buf[1100], *p;

int main()
{
	int n;
	int a, k;

	gets(buf), n = atoi(buf);
	while (n-- > 0) {
		gets(p = buf);
		while (*p) {
			if (*p == '0') p++;
			else {
				a = *p++ - '0', k = 1;
				while (*p != '0') p++, k++;
				p++;
				putchar(t[a][(k - 1) % w[a]]);
			}
		}
		putchar('\n');
	}
	return 0;
}
5
40
220
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
40
30
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
10
220
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
40
40
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
20
40
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
40
50
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
0
220
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
20
300
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
20
10
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000
 5
0
300
222220
44033055505550666011011111090666077705550301110
000555555550000330000444000080000200004440000

g
b
b
hello, world!
keitai
 g
d
b
hello, world!
keitai
 .
b
b
hello, world!
keitai
 g
g
b
hello, world!
keitai
 a
g
b
hello, world!
keitai
 g
j
b
hello, world!
keitai
 
b
b
hello, world!
keitai
 a
d
b
hello, world!
keitai
 a
.
b
hello, world!
keitai
 
d
b
hello, world!
keitai

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

```c
// Aizu Vol-20 2006: Keitai Message
// 2017.8.12 bal4u@uu

#include <stdio.h>
#include <stdlib.h>

char *gets();
char *t[10] = {	"\0", ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" };
int w[10] = { 0, 5, 3, 3, 3, 3, 3, 4, 3, 4 };
char buf[1100], *p;

int main()
{
	int n;
	int a, k;

	gets(buf), n = atoi(buf);
	while (n-- > 0) {
		gets(p = buf);
		while (*p) {
			if (*p == '0') p++;
			else {
				a = *p++ - '0', k = 1;
				while (*p != '0') p++, k++;
				p++;
				putchar(t[a][(k - 1) % w[a]]);
			}
		}
		putchar('\n');
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.section	.rodata
.LC0:
	.string	""
	.string	""
.LC1:
	.string	".,!? "
.LC2:
	.string	"abc"
.LC3:
	.string	"def"
.LC4:
	.string	"ghi"
.LC5:
	.string	"jkl"
.LC6:
	.string	"mno"
.LC7:
	.string	"pqrs"
.LC8:
	.string	"tuv"
.LC9:
	.string	"wxyz"
	.section	.data.rel.local,"aw"
	.align 32
	.type	t, @object
	.size	t, 80
t:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.globl	w
	.data
	.align 32
	.type	w, @object
	.size	w, 40
w:
	.long	0
	.long	5
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	4
	.long	3
	.long	4
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 1100
buf:
	.zero	1100
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	buf(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	leaq	buf(%rip), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -12(%rbp)
	jmp	.L2
.L8:
	leaq	buf(%rip), %rax
	movq	%rax, p(%rip)
	movq	p(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L3
.L7:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L4
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	jmp	.L3
.L4:
	movq	p(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, p(%rip)
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	addl	$1, -8(%rbp)
.L5:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L6
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	w(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	addq	%rsi, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L3:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L7
	movl	$10, %edi
	call	putchar@PLT
.L2:
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -12(%rbp)
	testl	%eax, %eax
	jg	.L8
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	t
	.section	.rodata
.LC0:
	.string	""
	.string	""
.LC1:
	.string	".,!? "
.LC2:
	.string	"abc"
.LC3:
	.string	"def"
.LC4:
	.string	"ghi"
.LC5:
	.string	"jkl"
.LC6:
	.string	"mno"
.LC7:
	.string	"pqrs"
.LC8:
	.string	"tuv"
.LC9:
	.string	"wxyz"
	.section	.data.rel.local,"aw"
	.align 32
	.type	t, @object
	.size	t, 80
t:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.globl	w
	.data
	.align 32
	.type	w, @object
	.size	w, 40
w:
	.long	0
	.long	5
	.long	3
	.long	3
	.long	3
	.long	3
	.long	3
	.long	4
	.long	3
	.long	4
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 1100
buf:
	.zero	1100
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	buf(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	leaq	buf(%rip), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -12(%rbp)
	jmp	.L2
.L8:
	leaq	buf(%rip), %rax
	movq	%rax, p(%rip)
	movq	p(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L3
.L7:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L4
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	jmp	.L3
.L4:
	movq	p(%rip), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, p(%rip)
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	addl	$1, -8(%rbp)
.L5:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$48, %al
	jne	.L6
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	w(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	addq	%rsi, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L3:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L7
	movl	$10, %edi
	call	putchar@PLT
.L2:
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -12(%rbp)
	testl	%eax, %eax
	jg	.L8
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
