Given the following C code and 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;y-->1&c<m;y+=y==n|*p&2?2:*p&p[-1]&1?0:!++c-1)p=y+v[c+i&1];}```

Assembly Code:

```assembly
	.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
	leaq	v(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	198(%r13), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	leaq	.LC2(%rip), %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L11
	cmpl	$1, %edi
	leal	-1(%rdi), %r11d
	movl	$1, %r8d
	setg	%r10b
	xorl	%eax, %eax
	testl	%ecx, %ecx
	movl	%r11d, %edx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	je	.L28
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rsi,%r8), %eax
	movslq	%edx, %rbx
	xorl	%r14d, %r14d
	andl	$1, %eax
	imulq	$198, %rax, %rax
	leaq	(%rax,%rbx,2), %rbx
	addq	%r13, %rbx
	cmpl	%edx, %edi
	movzwl	(%rbx), %eax
	sete	%r14b
	movl	%eax, %r15d
	andl	$2, %r15d
	orl	%r15d, %r14d
	leal	2(%rdx), %r14d
	jne	.L4
	andw	-2(%rbx), %ax
	movl	%edx, %r14d
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	subl	$1, %r14d
.L4:
	leal	-1(%r14), %edx
	cmpl	$1, %r14d
	jle	.L8
	cmpl	%ecx, %esi
	jl	.L5
.L8:
	testl	%r8d, %r8d
	je	.L7
.L29:
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	movl	%r9d, %eax
	movl	%r11d, %edx
	testl	%ecx, %ecx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	jne	.L5
.L28:
	movl	%eax, %r9d
	testl	%r8d, %r8d
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L7:
	testb	%r9b, %r9b
	je	.L9
	movq	%rbx, p(%rip)
.L9:
	cmpl	%esi, %edi
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L11:
	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:
```

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	"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
	leaq	v(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	198(%r13), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	leaq	.LC2(%rip), %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L11
	cmpl	$1, %edi
	leal	-1(%rdi), %r11d
	movl	$1, %r8d
	setg	%r10b
	xorl	%eax, %eax
	testl	%ecx, %ecx
	movl	%r11d, %edx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	je	.L28
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rsi,%r8), %eax
	movslq	%edx, %rbx
	xorl	%r14d, %r14d
	andl	$1, %eax
	imulq	$198, %rax, %rax
	leaq	(%rax,%rbx,2), %rbx
	addq	%r13, %rbx
	cmpl	%edx, %edi
	movzwl	(%rbx), %eax
	sete	%r14b
	movl	%eax, %r15d
	andl	$2, %r15d
	orl	%r15d, %r14d
	leal	2(%rdx), %r14d
	jne	.L4
	andw	-2(%rbx), %ax
	movl	%edx, %r14d
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	subl	$1, %r14d
.L4:
	leal	-1(%r14), %edx
	cmpl	$1, %r14d
	jle	.L8
	cmpl	%ecx, %esi
	jl	.L5
.L8:
	testl	%r8d, %r8d
	je	.L7
.L29:
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	movl	%r9d, %eax
	movl	%r11d, %edx
	testl	%ecx, %ecx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	jne	.L5
.L28:
	movl	%eax, %r9d
	testl	%r8d, %r8d
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L7:
	testb	%r9b, %r9b
	je	.L9
	movq	%rbx, p(%rip)
.L9:
	cmpl	%esi, %edi
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L11:
	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
```assembly
	.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
	leaq	v(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	198(%r13), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	leaq	.LC2(%rip), %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L11
	cmpl	$1, %edi
	leal	-1(%rdi), %r11d
	movl	$1, %r8d
	setg	%r10b
	xorl	%eax, %eax
	testl	%ecx, %ecx
	movl	%r11d, %edx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	je	.L28
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rsi,%r8), %eax
	movslq	%edx, %rbx
	xorl	%r14d, %r14d
	andl	$1, %eax
	imulq	$198, %rax, %rax
	leaq	(%rax,%rbx,2), %rbx
	addq	%r13, %rbx
	cmpl	%edx, %edi
	movzwl	(%rbx), %eax
	sete	%r14b
	movl	%eax, %r15d
	andl	$2, %r15d
	orl	%r15d, %r14d
	leal	2(%rdx), %r14d
	jne	.L4
	andw	-2(%rbx), %ax
	movl	%edx, %r14d
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	subl	$1, %r14d
.L4:
	leal	-1(%r14), %edx
	cmpl	$1, %r14d
	jle	.L8
	cmpl	%ecx, %esi
	jl	.L5
.L8:
	testl	%r8d, %r8d
	je	.L7
.L29:
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	movl	%r9d, %eax
	movl	%r11d, %edx
	testl	%ecx, %ecx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	jne	.L5
.L28:
	movl	%eax, %r9d
	testl	%r8d, %r8d
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L7:
	testb	%r9b, %r9b
	je	.L9
	movq	%rbx, p(%rip)
.L9:
	cmpl	%esi, %edi
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L11:
	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:
```
```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;y-->1&c<m;y+=y==n|*p&2?2:*p&p[-1]&1?0:!++c-1)p=y+v[c+i&1];}```
Given the following C 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;y-->1&c<m;y+=y==n|*p&2?2:*p&p[-1]&1?0:!++c-1)p=y+v[c+i&1];}```

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:

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 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;y-->1&c<m;y+=y==n|*p&2?2:*p&p[-1]&1?0:!++c-1)p=y+v[c+i&1];}```

Assembly Code:

```assembly
	.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
	leaq	v(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	198(%r13), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	leaq	.LC2(%rip), %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L11
	cmpl	$1, %edi
	leal	-1(%rdi), %r11d
	movl	$1, %r8d
	setg	%r10b
	xorl	%eax, %eax
	testl	%ecx, %ecx
	movl	%r11d, %edx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	je	.L28
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rsi,%r8), %eax
	movslq	%edx, %rbx
	xorl	%r14d, %r14d
	andl	$1, %eax
	imulq	$198, %rax, %rax
	leaq	(%rax,%rbx,2), %rbx
	addq	%r13, %rbx
	cmpl	%edx, %edi
	movzwl	(%rbx), %eax
	sete	%r14b
	movl	%eax, %r15d
	andl	$2, %r15d
	orl	%r15d, %r14d
	leal	2(%rdx), %r14d
	jne	.L4
	andw	-2(%rbx), %ax
	movl	%edx, %r14d
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	subl	$1, %r14d
.L4:
	leal	-1(%r14), %edx
	cmpl	$1, %r14d
	jle	.L8
	cmpl	%ecx, %esi
	jl	.L5
.L8:
	testl	%r8d, %r8d
	je	.L7
.L29:
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	movl	%r9d, %eax
	movl	%r11d, %edx
	testl	%ecx, %ecx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	jne	.L5
.L28:
	movl	%eax, %r9d
	testl	%r8d, %r8d
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L7:
	testb	%r9b, %r9b
	je	.L9
	movq	%rbx, p(%rip)
.L9:
	cmpl	%esi, %edi
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L11:
	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:
```

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	"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
	leaq	v(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	198(%r13), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	leaq	.LC2(%rip), %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	imull	%edi, %eax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L11
	cmpl	$1, %edi
	leal	-1(%rdi), %r11d
	movl	$1, %r8d
	setg	%r10b
	xorl	%eax, %eax
	testl	%ecx, %ecx
	movl	%r11d, %edx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	je	.L28
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rsi,%r8), %eax
	movslq	%edx, %rbx
	xorl	%r14d, %r14d
	andl	$1, %eax
	imulq	$198, %rax, %rax
	leaq	(%rax,%rbx,2), %rbx
	addq	%r13, %rbx
	cmpl	%edx, %edi
	movzwl	(%rbx), %eax
	sete	%r14b
	movl	%eax, %r15d
	andl	$2, %r15d
	orl	%r15d, %r14d
	leal	2(%rdx), %r14d
	jne	.L4
	andw	-2(%rbx), %ax
	movl	%edx, %r14d
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	subl	$1, %r14d
.L4:
	leal	-1(%r14), %edx
	cmpl	$1, %r14d
	jle	.L8
	cmpl	%ecx, %esi
	jl	.L5
.L8:
	testl	%r8d, %r8d
	je	.L7
.L29:
	movl	%esi, %ecx
	xorl	%r8d, %r8d
	movl	%r9d, %eax
	movl	%r11d, %edx
	testl	%ecx, %ecx
	setg	%r9b
	xorl	%esi, %esi
	andb	%r10b, %r9b
	jne	.L5
.L28:
	movl	%eax, %r9d
	testl	%r8d, %r8d
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L7:
	testb	%r9b, %r9b
	je	.L9
	movq	%rbx, p(%rip)
.L9:
	cmpl	%esi, %edi
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L11:
	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:
```