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

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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	v(%rip), %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), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	198+v(%rip), %rcx
	movq	%rbp, %rdx
	movq	%rbx, %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	.L9
	leal	-1(%r8), %r10d
	movl	$1, %edi
	movslq	%r10d, %r9
	addq	%r9, %r9
	testl	%r10d, %r10d
	setg	%r11b
.L7:
	movslq	%edi, %rax
	imulq	$198, %rax, %rax
	addq	%r9, %rax
	addq	%rbp, %rax
	testl	%ecx, %ecx
	jle	.L10
	testb	%r11b, %r11b
	je	.L10
	movl	%r10d, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	movzwl	(%rax), %r14d
	xorl	%r12d, %r12d
	cmpl	%edx, %r8d
	movl	$-1, %r13d
	sete	%r12b
	movl	%r14d, %r15d
	andl	$2, %r15d
	orl	%r15d, %r12d
	jne	.L4
	andw	-2(%rax), %r14w
	movl	$1, %r13d
	movl	%r14d, %eax
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	movl	$2, %r13d
.L4:
	leal	(%rsi,%rdi), %eax
	subl	%r13d, %edx
	andl	$1, %eax
	movslq	%edx, %r12
	imulq	$198, %rax, %rax
	leaq	(%rax,%r12,2), %rax
	addq	%rbp, %rax
	cmpl	%ecx, %esi
	jge	.L3
	testl	%edx, %edx
	jg	.L5
.L3:
	testl	%edi, %edi
	je	.L28
	xorl	%edi, %edi
	movl	%esi, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	%esi, %r8d
	movq	%rax, p(%rip)
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%esi, %esi
	jmp	.L3
.L9:
	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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	v(%rip), %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), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	198+v(%rip), %rcx
	movq	%rbp, %rdx
	movq	%rbx, %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	.L9
	leal	-1(%r8), %r10d
	movl	$1, %edi
	movslq	%r10d, %r9
	addq	%r9, %r9
	testl	%r10d, %r10d
	setg	%r11b
.L7:
	movslq	%edi, %rax
	imulq	$198, %rax, %rax
	addq	%r9, %rax
	addq	%rbp, %rax
	testl	%ecx, %ecx
	jle	.L10
	testb	%r11b, %r11b
	je	.L10
	movl	%r10d, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	movzwl	(%rax), %r14d
	xorl	%r12d, %r12d
	cmpl	%edx, %r8d
	movl	$-1, %r13d
	sete	%r12b
	movl	%r14d, %r15d
	andl	$2, %r15d
	orl	%r15d, %r12d
	jne	.L4
	andw	-2(%rax), %r14w
	movl	$1, %r13d
	movl	%r14d, %eax
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	movl	$2, %r13d
.L4:
	leal	(%rsi,%rdi), %eax
	subl	%r13d, %edx
	andl	$1, %eax
	movslq	%edx, %r12
	imulq	$198, %rax, %rax
	leaq	(%rax,%r12,2), %rax
	addq	%rbp, %rax
	cmpl	%ecx, %esi
	jge	.L3
	testl	%edx, %edx
	jg	.L5
.L3:
	testl	%edi, %edi
	je	.L28
	xorl	%edi, %edi
	movl	%esi, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	%esi, %r8d
	movq	%rax, p(%rip)
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%esi, %esi
	jmp	.L3
.L9:
	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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	v(%rip), %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), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	198+v(%rip), %rcx
	movq	%rbp, %rdx
	movq	%rbx, %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	.L9
	leal	-1(%r8), %r10d
	movl	$1, %edi
	movslq	%r10d, %r9
	addq	%r9, %r9
	testl	%r10d, %r10d
	setg	%r11b
.L7:
	movslq	%edi, %rax
	imulq	$198, %rax, %rax
	addq	%r9, %rax
	addq	%rbp, %rax
	testl	%ecx, %ecx
	jle	.L10
	testb	%r11b, %r11b
	je	.L10
	movl	%r10d, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	movzwl	(%rax), %r14d
	xorl	%r12d, %r12d
	cmpl	%edx, %r8d
	movl	$-1, %r13d
	sete	%r12b
	movl	%r14d, %r15d
	andl	$2, %r15d
	orl	%r15d, %r12d
	jne	.L4
	andw	-2(%rax), %r14w
	movl	$1, %r13d
	movl	%r14d, %eax
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	movl	$2, %r13d
.L4:
	leal	(%rsi,%rdi), %eax
	subl	%r13d, %edx
	andl	$1, %eax
	movslq	%edx, %r12
	imulq	$198, %rax, %rax
	leaq	(%rax,%r12,2), %rax
	addq	%rbp, %rax
	cmpl	%ecx, %esi
	jge	.L3
	testl	%edx, %edx
	jg	.L5
.L3:
	testl	%edi, %edi
	je	.L28
	xorl	%edi, %edi
	movl	%esi, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	%esi, %r8d
	movq	%rax, p(%rip)
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%esi, %esi
	jmp	.L3
.L9:
	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-1;p=y+v[c+i&1],c<m&y>0;)y-=y==n|*p&2?-1:*p&p[-1]&1?1:!++c+2;}```
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-1;p=y+v[c+i&1],c<m&y>0;)y-=y==n|*p&2?-1:*p&p[-1]&1?1:!++c+2;}```

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

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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	v(%rip), %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), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	198+v(%rip), %rcx
	movq	%rbp, %rdx
	movq	%rbx, %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	.L9
	leal	-1(%r8), %r10d
	movl	$1, %edi
	movslq	%r10d, %r9
	addq	%r9, %r9
	testl	%r10d, %r10d
	setg	%r11b
.L7:
	movslq	%edi, %rax
	imulq	$198, %rax, %rax
	addq	%r9, %rax
	addq	%rbp, %rax
	testl	%ecx, %ecx
	jle	.L10
	testb	%r11b, %r11b
	je	.L10
	movl	%r10d, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	movzwl	(%rax), %r14d
	xorl	%r12d, %r12d
	cmpl	%edx, %r8d
	movl	$-1, %r13d
	sete	%r12b
	movl	%r14d, %r15d
	andl	$2, %r15d
	orl	%r15d, %r12d
	jne	.L4
	andw	-2(%rax), %r14w
	movl	$1, %r13d
	movl	%r14d, %eax
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	movl	$2, %r13d
.L4:
	leal	(%rsi,%rdi), %eax
	subl	%r13d, %edx
	andl	$1, %eax
	movslq	%edx, %r12
	imulq	$198, %rax, %rax
	leaq	(%rax,%r12,2), %rax
	addq	%rbp, %rax
	cmpl	%ecx, %esi
	jge	.L3
	testl	%edx, %edx
	jg	.L5
.L3:
	testl	%edi, %edi
	je	.L28
	xorl	%edi, %edi
	movl	%esi, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	%esi, %r8d
	movq	%rax, p(%rip)
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%esi, %esi
	jmp	.L3
.L9:
	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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	v(%rip), %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), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	198+v(%rip), %rcx
	movq	%rbp, %rdx
	movq	%rbx, %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	.L9
	leal	-1(%r8), %r10d
	movl	$1, %edi
	movslq	%r10d, %r9
	addq	%r9, %r9
	testl	%r10d, %r10d
	setg	%r11b
.L7:
	movslq	%edi, %rax
	imulq	$198, %rax, %rax
	addq	%r9, %rax
	addq	%rbp, %rax
	testl	%ecx, %ecx
	jle	.L10
	testb	%r11b, %r11b
	je	.L10
	movl	%r10d, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	movzwl	(%rax), %r14d
	xorl	%r12d, %r12d
	cmpl	%edx, %r8d
	movl	$-1, %r13d
	sete	%r12b
	movl	%r14d, %r15d
	andl	$2, %r15d
	orl	%r15d, %r12d
	jne	.L4
	andw	-2(%rax), %r14w
	movl	$1, %r13d
	movl	%r14d, %eax
	testb	$1, %al
	jne	.L4
	addl	$1, %esi
	movl	$2, %r13d
.L4:
	leal	(%rsi,%rdi), %eax
	subl	%r13d, %edx
	andl	$1, %eax
	movslq	%edx, %r12
	imulq	$198, %rax, %rax
	leaq	(%rax,%r12,2), %rax
	addq	%rbp, %rax
	cmpl	%ecx, %esi
	jge	.L3
	testl	%edx, %edx
	jg	.L5
.L3:
	testl	%edi, %edi
	je	.L28
	xorl	%edi, %edi
	movl	%esi, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	%esi, %r8d
	movq	%rax, p(%rip)
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmovl	%rax, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%esi, %esi
	jmp	.L3
.L9:
	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:
```