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

```c
short*p,v[][99];main(c,n,m,i,y){for(;m=scanf("%d %[^\n] %[^\n]",&n,v,v+1)*n;printf(m>n?"NA\n":"%d\n",m))for(i=2;i--;m=c)for(c=0,y=n-1;c<m&y>0;y-=y==n|*p&2?-1:*p&p[-1]&1?1:!++c+2)p=y+v[c+i&1];}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 198
v:
	.zero	198
	.section	.rodata
.LC0:
	.string	"NA\n"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %[^\n] %[^\n]"
	.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	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L15:
	movl	$2, -16(%rbp)
	jmp	.L3
.L12:
	movl	$0, -4(%rbp)
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L4
.L11:
	movl	-4(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	andl	$1, %eax
	cltq
	imulq	$198, %rax, %rax
	leaq	v(%rip), %rdx
	addq	%rax, %rdx
	movl	-20(%rbp), %eax
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, p(%rip)
	movl	-8(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	sete	%al
	movzbl	%al, %edx
	movq	p(%rip), %rax
	movzwl	(%rax), %eax
	cwtl
	andl	$2, %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L5
	movq	p(%rip), %rax
	movzwl	(%rax), %edx
	movq	p(%rip), %rax
	subq	$2, %rax
	movzwl	(%rax), %eax
	andl	%edx, %eax
	cwtl
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L6
	addl	$1, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L7
	movl	$3, %eax
	jmp	.L10
.L7:
	movl	$2, %eax
	jmp	.L10
.L6:
	movl	$1, %eax
	jmp	.L10
.L5:
	movl	$-1, %eax
.L10:
	subl	%eax, -20(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	setl	%dl
	cmpl	$0, -20(%rbp)
	setg	%al
	andl	%edx, %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L3:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L12
	movl	-8(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L13
	leaq	.LC0(%rip), %rax
	jmp	.L14
.L13:
	leaq	.LC1(%rip), %rax
.L14:
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	198+v(%rip), %rdx
	leaq	-8(%rbp), %rax
	movq	%rdx, %rcx
	leaq	v(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-8(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	jne	.L15
	movl	$0, %eax
	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	"NA\n"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %[^\n] %[^\n]"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	v(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%esi, 12(%rsp)
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	198+v(%rip), %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	movl	12(%rsp), %r8d
	imull	%r8d, %eax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L10
	leal	-1(%r8), %r11d
	movl	$1, %edi
	testl	%r11d, %r11d
	setg	%r10b
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setg	%r9b
	andb	%r10b, %r9b
	je	.L11
.L27:
	movl	%r11d, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rsi,%rdi), %eax
	movslq	%edx, %rbx
	xorl	%r13d, %r13d
	movl	$-1, %r14d
	andl	$1, %eax
	imulq	$198, %rax, %rax
	leaq	(%rax,%rbx,2), %rbx
	addq	%r12, %rbx
	cmpl	%edx, %r8d
	movzwl	(%rbx), %eax
	sete	%r13b
	movl	%eax, %r15d
	andl	$2, %r15d
	orl	%r15d, %r13d
	jne	.L4
	andw	-2(%rbx), %ax
	movl	$1, %r14d
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	movl	$2, %r14d
.L4:
	subl	%r14d, %edx
	cmpl	%ecx, %esi
	jge	.L3
	testl	%edx, %edx
	jg	.L5
.L3:
	testl	%edi, %edi
	je	.L26
.L14:
	movl	%esi, %ecx
	xorl	%edi, %edi
	movl	%r9d, %eax
	testl	%ecx, %ecx
	setg	%r9b
	andb	%r10b, %r9b
	jne	.L27
.L11:
	movl	%eax, %r9d
	xorl	%esi, %esi
	testl	%edi, %edi
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	testb	%r9b, %r9b
	je	.L8
	movq	%rbx, p(%rip)
.L8:
	cmpl	%esi, %r8d
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L10:
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	v
	.bss
	.align 32
	.type	v, @object
	.size	v, 198
v:
	.zero	198
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.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\n"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %[^\n] %[^\n]"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	v(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%esi, 12(%rsp)
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	198+v(%rip), %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	scanf@PLT
	movl	12(%rsp), %r8d
	imull	%r8d, %eax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L10
	leal	-1(%r8), %r11d
	movl	$1, %edi
	testl	%r11d, %r11d
	setg	%r10b
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setg	%r9b
	andb	%r10b, %r9b
	je	.L11
.L27:
	movl	%r11d, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rsi,%rdi), %eax
	movslq	%edx, %rbx
	xorl	%r13d, %r13d
	movl	$-1, %r14d
	andl	$1, %eax
	imulq	$198, %rax, %rax
	leaq	(%rax,%rbx,2), %rbx
	addq	%r12, %rbx
	cmpl	%edx, %r8d
	movzwl	(%rbx), %eax
	sete	%r13b
	movl	%eax, %r15d
	andl	$2, %r15d
	orl	%r15d, %r13d
	jne	.L4
	andw	-2(%rbx), %ax
	movl	$1, %r14d
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	movl	$2, %r14d
.L4:
	subl	%r14d, %edx
	cmpl	%ecx, %esi
	jge	.L3
	testl	%edx, %edx
	jg	.L5
.L3:
	testl	%edi, %edi
	je	.L26
.L14:
	movl	%esi, %ecx
	xorl	%edi, %edi
	movl	%r9d, %eax
	testl	%ecx, %ecx
	setg	%r9b
	andb	%r10b, %r9b
	jne	.L27
.L11:
	movl	%eax, %r9d
	xorl	%esi, %esi
	testl	%edi, %edi
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	testb	%r9b, %r9b
	je	.L8
	movq	%rbx, p(%rip)
.L8:
	cmpl	%esi, %r8d
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L10:
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	v
	.bss
	.align 32
	.type	v, @object
	.size	v, 198
v:
	.zero	198
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.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:

short*p,v[][99];main(c,n,m,i,y){for(;m=scanf("%d %[^\n] %[^\n]",&n,v,v+1)*n;printf(m>n?"NA\n":"%d\n",m))for(i=2;i--;m=c)for(c=0,y=n-1;c<m&y>0;y-=y==n|*p&2?-1:*p&p[-1]&1?1:!++c+2)p=y+v[c+i&1];}
8
0 0 0 2 2 2 0 0
1 1 1 1 1 0 0 0
4
1 1 2 2
0 0 2 2
0
 8
0 0 0 2 2 2 0 0
1 1 1 1 1 0 0 0
2
1 1 2 2
0 0 2 2
0
 8
0 0 0 2 2 2 0 0
0 1 1 1 1 0 0 0
2
1 1 2 2
0 0 2 2
0
 8
0 0 0 2 2 2 0 1
1 1 1 1 0 0 0 0
4
1 1 2 2
0 0 2 2
0
 8
0 0 0 2 2 2 0 0
1 1 2 1 1 0 0 0
2
1 1 2 2
0 0 2 2
0
 8
0 0 0 2 2 1 0 0
1 1 1 1 1 0 0 -1
4
1 1 2 3
0 0 2 2
0
 8
0 0 0 2 2 1 1 0
1 0 1 1 1 0 0 -1
4
1 1 4 5
-1 0 2 2
0
 8
0 0 0 2 2 1 1 0
1 0 1 1 1 0 0 -1
4
1 1 4 5
-1 0 2 1
0
 8
0 0 0 2 2 2 0 -1
1 1 1 1 2 0 0 1
2
1 1 2 2
0 0 2 2
0
 8
0 0 0 2 2 2 0 1
1 1 1 1 0 0 0 0
4
1 0 2 1
0 0 2 2
0

2
NA
 2
0
 3
0
 4
NA
 4
0
 2
NA
 3
1
 3
1
 NA
0
 4
2

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

```c
short*p,v[][99];main(c,n,m,i,y){for(;m=scanf("%d %[^\n] %[^\n]",&n,v,v+1)*n;printf(m>n?"NA\n":"%d\n",m))for(i=2;i--;m=c)for(c=0,y=n-1;c<m&y>0;y-=y==n|*p&2?-1:*p&p[-1]&1?1:!++c+2)p=y+v[c+i&1];}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 198
v:
	.zero	198
	.section	.rodata
.LC0:
	.string	"NA\n"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %[^\n] %[^\n]"
	.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	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L15:
	movl	$2, -16(%rbp)
	jmp	.L3
.L12:
	movl	$0, -4(%rbp)
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L4
.L11:
	movl	-4(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	andl	$1, %eax
	cltq
	imulq	$198, %rax, %rax
	leaq	v(%rip), %rdx
	addq	%rax, %rdx
	movl	-20(%rbp), %eax
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, p(%rip)
	movl	-8(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	sete	%al
	movzbl	%al, %edx
	movq	p(%rip), %rax
	movzwl	(%rax), %eax
	cwtl
	andl	$2, %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L5
	movq	p(%rip), %rax
	movzwl	(%rax), %edx
	movq	p(%rip), %rax
	subq	$2, %rax
	movzwl	(%rax), %eax
	andl	%edx, %eax
	cwtl
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L6
	addl	$1, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L7
	movl	$3, %eax
	jmp	.L10
.L7:
	movl	$2, %eax
	jmp	.L10
.L6:
	movl	$1, %eax
	jmp	.L10
.L5:
	movl	$-1, %eax
.L10:
	subl	%eax, -20(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	setl	%dl
	cmpl	$0, -20(%rbp)
	setg	%al
	andl	%edx, %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L3:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L12
	movl	-8(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L13
	leaq	.LC0(%rip), %rax
	jmp	.L14
.L13:
	leaq	.LC1(%rip), %rax
.L14:
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	198+v(%rip), %rdx
	leaq	-8(%rbp), %rax
	movq	%rdx, %rcx
	leaq	v(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-8(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	jne	.L15
	movl	$0, %eax
	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	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 198
v:
	.zero	198
	.section	.rodata
.LC0:
	.string	"NA\n"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d %[^\n] %[^\n]"
	.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	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	jmp	.L2
.L15:
	movl	$2, -16(%rbp)
	jmp	.L3
.L12:
	movl	$0, -4(%rbp)
	movl	-8(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L4
.L11:
	movl	-4(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	andl	$1, %eax
	cltq
	imulq	$198, %rax, %rax
	leaq	v(%rip), %rdx
	addq	%rax, %rdx
	movl	-20(%rbp), %eax
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, p(%rip)
	movl	-8(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	sete	%al
	movzbl	%al, %edx
	movq	p(%rip), %rax
	movzwl	(%rax), %eax
	cwtl
	andl	$2, %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L5
	movq	p(%rip), %rax
	movzwl	(%rax), %edx
	movq	p(%rip), %rax
	subq	$2, %rax
	movzwl	(%rax), %eax
	andl	%edx, %eax
	cwtl
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L6
	addl	$1, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L7
	movl	$3, %eax
	jmp	.L10
.L7:
	movl	$2, %eax
	jmp	.L10
.L6:
	movl	$1, %eax
	jmp	.L10
.L5:
	movl	$-1, %eax
.L10:
	subl	%eax, -20(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	setl	%dl
	cmpl	$0, -20(%rbp)
	setg	%al
	andl	%edx, %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L3:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L12
	movl	-8(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L13
	leaq	.LC0(%rip), %rax
	jmp	.L14
.L13:
	leaq	.LC1(%rip), %rax
.L14:
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	198+v(%rip), %rdx
	leaq	-8(%rbp), %rax
	movq	%rdx, %rcx
	leaq	v(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-8(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -12(%rbp)
	cmpl	$0, -12(%rbp)
	jne	.L15
	movl	$0, %eax
	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:
