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>          // printf(), getchar()
#include <stdbool.h>

const char NUL = '\0';

bool
ope_line()
{
	char oline[101];
	const char letter[6][5] = {"abcde", "fghij", "klmno", "pqrst", "uvwxy", "z.?! "};

	int c = getchar();
	if (c == EOF)
		return false;

	if (c == '\n')
		return true;

	bool b_na = false;
	int ix = 0;
	while (c != '\n' && c != EOF)
	{
		int s = c - '1';

		c = getchar();
		if (c == '\n' || c == EOF)
		{
			b_na = true;
			break;
		}

		int t = c - '1';
		if (0 <= s && s <= 5 && 0 <= t && t <= 4)
			oline[ix++] = letter[s][t];
		else
			b_na = true;

		c = getchar();
	}

	oline[ix] = NUL;
	if (b_na)
		printf("NA\n");
	else
		printf("%s\n", oline);

	if (c == EOF)
		return false;

	return true;
}

int
main(int argc, char **argv)
{
	while (true)
	{
		if (!ope_line())
			break;
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	NUL
	.section	.rodata
	.type	NUL, @object
	.size	NUL, 1
NUL:
	.zero	1
.LC0:
	.string	"NA"
	.text
	.globl	ope_line
	.type	ope_line, @function
ope_line:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1684234849, -144(%rbp)
	movb	$101, -140(%rbp)
	movl	$1768449894, -139(%rbp)
	movb	$106, -135(%rbp)
	movl	$1852664939, -134(%rbp)
	movb	$111, -130(%rbp)
	movl	$1936879984, -129(%rbp)
	movb	$116, -125(%rbp)
	movl	$2021095029, -124(%rbp)
	movb	$121, -120(%rbp)
	movl	$557788794, -119(%rbp)
	movb	$32, -115(%rbp)
	call	getchar@PLT
	movl	%eax, -160(%rbp)
	cmpl	$-1, -160(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L15
.L2:
	cmpl	$10, -160(%rbp)
	jne	.L4
	movl	$1, %eax
	jmp	.L15
.L4:
	movb	$0, -161(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L5
.L11:
	movl	-160(%rbp), %eax
	subl	$49, %eax
	movl	%eax, -152(%rbp)
	call	getchar@PLT
	movl	%eax, -160(%rbp)
	cmpl	$10, -160(%rbp)
	je	.L6
	cmpl	$-1, -160(%rbp)
	jne	.L7
.L6:
	movb	$1, -161(%rbp)
	jmp	.L8
.L7:
	movl	-160(%rbp), %eax
	subl	$49, %eax
	movl	%eax, -148(%rbp)
	cmpl	$0, -152(%rbp)
	js	.L9
	cmpl	$5, -152(%rbp)
	jg	.L9
	cmpl	$0, -148(%rbp)
	js	.L9
	cmpl	$4, -148(%rbp)
	jg	.L9
	movl	-156(%rbp), %edx
	leal	1(%rdx), %eax
	movl	%eax, -156(%rbp)
	movl	-148(%rbp), %eax
	movslq	%eax, %rsi
	movl	-152(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$144, %rax
	movzbl	(%rax), %ecx
	movslq	%edx, %rax
	movb	%cl, -112(%rbp,%rax)
	jmp	.L10
.L9:
	movb	$1, -161(%rbp)
.L10:
	call	getchar@PLT
	movl	%eax, -160(%rbp)
.L5:
	cmpl	$10, -160(%rbp)
	je	.L8
	cmpl	$-1, -160(%rbp)
	jne	.L11
.L8:
	movl	$0, %edx
	movl	-156(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	cmpb	$0, -161(%rbp)
	je	.L12
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L12:
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L13:
	cmpl	$-1, -160(%rbp)
	jne	.L14
	movl	$0, %eax
	jmp	.L15
.L14:
	movl	$1, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ope_line, .-ope_line
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
.L20:
	movl	$0, %eax
	call	ope_line
	xorl	$1, %eax
	testb	%al, %al
	jne	.L23
	jmp	.L20
.L23:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"NA"
	.text
	.p2align 4
	.globl	ope_line
	.type	ope_line, @function
ope_line:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movdqa	.LC1(%rip), %xmm0
	movq	stdin(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movl	$1060010617, 24(%rsp)
	movabsq	$8680537053616894577, %rax
	movq	%rax, 16(%rsp)
	movl	$8225, %eax
	movw	%ax, 28(%rsp)
	movaps	%xmm0, (%rsp)
	call	getc@PLT
	cmpl	$-1, %eax
	je	.L1
	movl	$1, %r14d
	cmpl	$10, %eax
	je	.L1
	xorl	%r13d, %r13d
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdi
	leal	-49(%rax), %ebx
	call	getc@PLT
	cmpl	$10, %eax
	je	.L3
	cmpl	$-1, %eax
	je	.L3
	subl	$49, %eax
	cmpl	$4, %eax
	ja	.L4
	cmpl	$5, %ebx
	jbe	.L30
.L4:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpl	$-1, %eax
	setne	%r14b
	cmpl	$10, %eax
	setne	%bpl
	andb	%r14b, %bpl
	jne	.L9
	movb	$0, 32(%rsp,%r13)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L30:
	movslq	%eax, %rdx
	movslq	%ebx, %rax
	movq	stdin(%rip), %rdi
	leal	1(%r13), %r12d
	leaq	(%rax,%rax,4), %rax
	addq	$144, %rax
	addq	%rsp, %rax
	movzbl	-144(%rdx,%rax), %eax
	movb	%al, 32(%rsp,%r13)
	call	getc@PLT
	cmpl	$-1, %eax
	setne	%dl
	movl	%edx, %r14d
	cmpl	$10, %eax
	je	.L7
	testb	%dl, %dl
	je	.L7
	movslq	%r12d, %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	movb	$0, 32(%rsp,%r13)
	cmpl	$-1, %eax
	setne	%r14b
.L12:
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L1:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	movl	%r14d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L7:
	.cfi_restore_state
	movslq	%r12d, %r12
	movb	$0, 32(%rsp,%r12)
	testb	%bpl, %bpl
	jne	.L12
	leaq	32(%rsp), %rdi
	call	puts@PLT
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	ope_line, .-ope_line
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	.p2align 4,,10
	.p2align 3
.L33:
	xorl	%eax, %eax
	call	ope_line
	testb	%al, %al
	jne	.L33
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	NUL
	.section	.rodata
	.type	NUL, @object
	.size	NUL, 1
NUL:
	.zero	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	7523094288207667809
	.quad	8101815670912281193
	.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	"NA"
	.text
	.p2align 4
	.globl	ope_line
	.type	ope_line, @function
ope_line:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movdqa	.LC1(%rip), %xmm0
	movq	stdin(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movl	$1060010617, 24(%rsp)
	movabsq	$8680537053616894577, %rax
	movq	%rax, 16(%rsp)
	movl	$8225, %eax
	movw	%ax, 28(%rsp)
	movaps	%xmm0, (%rsp)
	call	getc@PLT
	cmpl	$-1, %eax
	je	.L1
	movl	$1, %r14d
	cmpl	$10, %eax
	je	.L1
	xorl	%r13d, %r13d
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdi
	leal	-49(%rax), %ebx
	call	getc@PLT
	cmpl	$10, %eax
	je	.L3
	cmpl	$-1, %eax
	je	.L3
	subl	$49, %eax
	cmpl	$4, %eax
	ja	.L4
	cmpl	$5, %ebx
	jbe	.L30
.L4:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpl	$-1, %eax
	setne	%r14b
	cmpl	$10, %eax
	setne	%bpl
	andb	%r14b, %bpl
	jne	.L9
	movb	$0, 32(%rsp,%r13)
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L30:
	movslq	%eax, %rdx
	movslq	%ebx, %rax
	movq	stdin(%rip), %rdi
	leal	1(%r13), %r12d
	leaq	(%rax,%rax,4), %rax
	addq	$144, %rax
	addq	%rsp, %rax
	movzbl	-144(%rdx,%rax), %eax
	movb	%al, 32(%rsp,%r13)
	call	getc@PLT
	cmpl	$-1, %eax
	setne	%dl
	movl	%edx, %r14d
	cmpl	$10, %eax
	je	.L7
	testb	%dl, %dl
	je	.L7
	movslq	%r12d, %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	movb	$0, 32(%rsp,%r13)
	cmpl	$-1, %eax
	setne	%r14b
.L12:
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
.L1:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	movl	%r14d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L7:
	.cfi_restore_state
	movslq	%r12d, %r12
	movb	$0, 32(%rsp,%r12)
	testb	%bpl, %bpl
	jne	.L12
	leaq	32(%rsp), %rdi
	call	puts@PLT
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	ope_line, .-ope_line
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	.p2align 4,,10
	.p2align 3
.L33:
	xorl	%eax, %eax
	call	ope_line
	testb	%al, %al
	jne	.L33
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	NUL
	.section	.rodata
	.type	NUL, @object
	.size	NUL, 1
NUL:
	.zero	1
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	7523094288207667809
	.quad	8101815670912281193
	.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>          // printf(), getchar()
#include <stdbool.h>

const char NUL = '\0';

bool
ope_line()
{
	char oline[101];
	const char letter[6][5] = {"abcde", "fghij", "klmno", "pqrst", "uvwxy", "z.?! "};

	int c = getchar();
	if (c == EOF)
		return false;

	if (c == '\n')
		return true;

	bool b_na = false;
	int ix = 0;
	while (c != '\n' && c != EOF)
	{
		int s = c - '1';

		c = getchar();
		if (c == '\n' || c == EOF)
		{
			b_na = true;
			break;
		}

		int t = c - '1';
		if (0 <= s && s <= 5 && 0 <= t && t <= 4)
			oline[ix++] = letter[s][t];
		else
			b_na = true;

		c = getchar();
	}

	oline[ix] = NUL;
	if (b_na)
		printf("NA\n");
	else
		printf("%s\n", oline);

	if (c == EOF)
		return false;

	return true;
}

int
main(int argc, char **argv)
{
	while (true)
	{
		if (!ope_line())
			break;
	}

	return 0;
}
341143514535
158
143565553551655311343411652235654535651124615163
551544654451431564
4
3411
6363636363
153414
 341143514535
314
10141283183115209195186599000583233654691126402
551544654451431564
4
3411
6363636363
153414
 341143514535
158
143565553551655311343411652235654535651124615163
551544654451431564
4
2934
6363636363
153414
 341143514535
315
143565553551655311343411652235654535651124615163
551544654451431564
4
3411
6363636363
286878
 341143514535
314
10141283183115209195186599000583233654691126402
551544654451431564
4
5438
6363636363
153414
 341143514535
315
134434432068311350616294587682501914319399594776
551544654451431564
4
3411
6363636363
286878
 341143514535
314
10141283183115209195186599000583233654691126402
551544654451431564
4
2886
6363636363
187636
 341143514535
181
143565553551655311343411652235654535651124615163
551544654451431564
4
2566
944133637
153414
 341143514535
314
10141283183115209195186599000583233654691126402
282179687988515070
8
2886
6363636363
187636
 341143514535
181
143565553551655311343411652235654535651124615163
115800800717045334
4
3636
944133637
153414

naruto
NA
do you wanna go to aizu?
yes sure!
NA
na
?????
end
 naruto
NA
NA
yes sure!
NA
na
?????
end
 naruto
NA
do you wanna go to aizu?
yes sure!
NA
NA
?????
end
 naruto
NA
do you wanna go to aizu?
yes sure!
NA
na
?????
NA
 naruto
NA
NA
yes sure!
NA
NA
?????
end
 naruto
NA
NA
yes sure!
NA
na
?????
NA
 naruto
NA
NA
yes sure!
NA
NA
?????
NA
 naruto
NA
do you wanna go to aizu?
yes sure!
NA
NA
NA
end
 naruto
NA
NA
NA
NA
NA
?????
NA
 naruto
NA
do you wanna go to aizu?
NA
NA
NA
NA
end

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>          // printf(), getchar()
#include <stdbool.h>

const char NUL = '\0';

bool
ope_line()
{
	char oline[101];
	const char letter[6][5] = {"abcde", "fghij", "klmno", "pqrst", "uvwxy", "z.?! "};

	int c = getchar();
	if (c == EOF)
		return false;

	if (c == '\n')
		return true;

	bool b_na = false;
	int ix = 0;
	while (c != '\n' && c != EOF)
	{
		int s = c - '1';

		c = getchar();
		if (c == '\n' || c == EOF)
		{
			b_na = true;
			break;
		}

		int t = c - '1';
		if (0 <= s && s <= 5 && 0 <= t && t <= 4)
			oline[ix++] = letter[s][t];
		else
			b_na = true;

		c = getchar();
	}

	oline[ix] = NUL;
	if (b_na)
		printf("NA\n");
	else
		printf("%s\n", oline);

	if (c == EOF)
		return false;

	return true;
}

int
main(int argc, char **argv)
{
	while (true)
	{
		if (!ope_line())
			break;
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	NUL
	.section	.rodata
	.type	NUL, @object
	.size	NUL, 1
NUL:
	.zero	1
.LC0:
	.string	"NA"
	.text
	.globl	ope_line
	.type	ope_line, @function
ope_line:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1684234849, -144(%rbp)
	movb	$101, -140(%rbp)
	movl	$1768449894, -139(%rbp)
	movb	$106, -135(%rbp)
	movl	$1852664939, -134(%rbp)
	movb	$111, -130(%rbp)
	movl	$1936879984, -129(%rbp)
	movb	$116, -125(%rbp)
	movl	$2021095029, -124(%rbp)
	movb	$121, -120(%rbp)
	movl	$557788794, -119(%rbp)
	movb	$32, -115(%rbp)
	call	getchar@PLT
	movl	%eax, -160(%rbp)
	cmpl	$-1, -160(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L15
.L2:
	cmpl	$10, -160(%rbp)
	jne	.L4
	movl	$1, %eax
	jmp	.L15
.L4:
	movb	$0, -161(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L5
.L11:
	movl	-160(%rbp), %eax
	subl	$49, %eax
	movl	%eax, -152(%rbp)
	call	getchar@PLT
	movl	%eax, -160(%rbp)
	cmpl	$10, -160(%rbp)
	je	.L6
	cmpl	$-1, -160(%rbp)
	jne	.L7
.L6:
	movb	$1, -161(%rbp)
	jmp	.L8
.L7:
	movl	-160(%rbp), %eax
	subl	$49, %eax
	movl	%eax, -148(%rbp)
	cmpl	$0, -152(%rbp)
	js	.L9
	cmpl	$5, -152(%rbp)
	jg	.L9
	cmpl	$0, -148(%rbp)
	js	.L9
	cmpl	$4, -148(%rbp)
	jg	.L9
	movl	-156(%rbp), %edx
	leal	1(%rdx), %eax
	movl	%eax, -156(%rbp)
	movl	-148(%rbp), %eax
	movslq	%eax, %rsi
	movl	-152(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$144, %rax
	movzbl	(%rax), %ecx
	movslq	%edx, %rax
	movb	%cl, -112(%rbp,%rax)
	jmp	.L10
.L9:
	movb	$1, -161(%rbp)
.L10:
	call	getchar@PLT
	movl	%eax, -160(%rbp)
.L5:
	cmpl	$10, -160(%rbp)
	je	.L8
	cmpl	$-1, -160(%rbp)
	jne	.L11
.L8:
	movl	$0, %edx
	movl	-156(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	cmpb	$0, -161(%rbp)
	je	.L12
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L12:
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L13:
	cmpl	$-1, -160(%rbp)
	jne	.L14
	movl	$0, %eax
	jmp	.L15
.L14:
	movl	$1, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ope_line, .-ope_line
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
.L20:
	movl	$0, %eax
	call	ope_line
	xorl	$1, %eax
	testb	%al, %al
	jne	.L23
	jmp	.L20
.L23:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	NUL
	.section	.rodata
	.type	NUL, @object
	.size	NUL, 1
NUL:
	.zero	1
.LC0:
	.string	"NA"
	.text
	.globl	ope_line
	.type	ope_line, @function
ope_line:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1684234849, -144(%rbp)
	movb	$101, -140(%rbp)
	movl	$1768449894, -139(%rbp)
	movb	$106, -135(%rbp)
	movl	$1852664939, -134(%rbp)
	movb	$111, -130(%rbp)
	movl	$1936879984, -129(%rbp)
	movb	$116, -125(%rbp)
	movl	$2021095029, -124(%rbp)
	movb	$121, -120(%rbp)
	movl	$557788794, -119(%rbp)
	movb	$32, -115(%rbp)
	call	getchar@PLT
	movl	%eax, -160(%rbp)
	cmpl	$-1, -160(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L15
.L2:
	cmpl	$10, -160(%rbp)
	jne	.L4
	movl	$1, %eax
	jmp	.L15
.L4:
	movb	$0, -161(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L5
.L11:
	movl	-160(%rbp), %eax
	subl	$49, %eax
	movl	%eax, -152(%rbp)
	call	getchar@PLT
	movl	%eax, -160(%rbp)
	cmpl	$10, -160(%rbp)
	je	.L6
	cmpl	$-1, -160(%rbp)
	jne	.L7
.L6:
	movb	$1, -161(%rbp)
	jmp	.L8
.L7:
	movl	-160(%rbp), %eax
	subl	$49, %eax
	movl	%eax, -148(%rbp)
	cmpl	$0, -152(%rbp)
	js	.L9
	cmpl	$5, -152(%rbp)
	jg	.L9
	cmpl	$0, -148(%rbp)
	js	.L9
	cmpl	$4, -148(%rbp)
	jg	.L9
	movl	-156(%rbp), %edx
	leal	1(%rdx), %eax
	movl	%eax, -156(%rbp)
	movl	-148(%rbp), %eax
	movslq	%eax, %rsi
	movl	-152(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$144, %rax
	movzbl	(%rax), %ecx
	movslq	%edx, %rax
	movb	%cl, -112(%rbp,%rax)
	jmp	.L10
.L9:
	movb	$1, -161(%rbp)
.L10:
	call	getchar@PLT
	movl	%eax, -160(%rbp)
.L5:
	cmpl	$10, -160(%rbp)
	je	.L8
	cmpl	$-1, -160(%rbp)
	jne	.L11
.L8:
	movl	$0, %edx
	movl	-156(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	cmpb	$0, -161(%rbp)
	je	.L12
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L12:
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L13:
	cmpl	$-1, -160(%rbp)
	jne	.L14
	movl	$0, %eax
	jmp	.L15
.L14:
	movl	$1, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ope_line, .-ope_line
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
.L20:
	movl	$0, %eax
	call	ope_line
	xorl	$1, %eax
	testb	%al, %al
	jne	.L23
	jmp	.L20
.L23:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
