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

```c
#include <stdio.h>

int main(void)
{	int X, N;
	int num[102] = {0};
	int i, tmp, left, right, ans;

	scanf("%d %d", &X, &N);

	if (N == 0)
	{
		printf("%d\n", X);
		return (0);
	}

	for (i = 0; i < N; i++)
	{
		scanf("%d", &tmp);
		num[tmp]++;
	}

	if (num[X] == 0)
	{
		printf("%d\n", X);
		return (0);
	}

	left = X - 1;
	while (left != 0)
	{
		if (num[left] == 0)
			break;
		left--;
	}
	right = X + 1;
	while (right != 101)
	{
		if (num[right] == 0)
			break;
		right++;
	}

	if (right - X < X - left)
		ans = right;
	else
		ans = left;
	printf("%d\n", ans);

	return (0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$51, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L2
	movl	$0, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC2(%rip), %r12
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L7:
	movslq	4(%rsp), %rax
	movl	16(%rsp,%rax,4), %r9d
	movq	%rax, %r8
	testl	%r9d, %r9d
	je	.L33
	movl	%eax, %ecx
	leal	1(%rax), %edx
	subl	$1, %ecx
	je	.L8
	movslq	%ecx, %rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	subq	$1, %rax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L34
.L10:
	movl	0(%rbp,%rax,4), %edi
	movl	%eax, %ecx
	testl	%edi, %edi
	jne	.L35
	cmpl	$101, %edx
	je	.L12
.L8:
	movslq	%edx, %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %rax
	movl	%eax, %edx
	cmpl	$101, %eax
	je	.L12
.L13:
	movl	0(%rbp,%rax,4), %esi
	movl	%eax, %edx
	testl	%esi, %esi
	jne	.L36
.L12:
	movl	%edx, %eax
	subl	%r8d, %eax
	subl	%ecx, %r8d
	cmpl	%r8d, %eax
	cmovge	%ecx, %edx
.L14:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	cmpl	$101, %edx
	jne	.L8
	jmp	.L14
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L33:
	movl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$51, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L2
	movl	$0, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC2(%rip), %r12
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L7:
	movslq	4(%rsp), %rax
	movl	16(%rsp,%rax,4), %r9d
	movq	%rax, %r8
	testl	%r9d, %r9d
	je	.L33
	movl	%eax, %ecx
	leal	1(%rax), %edx
	subl	$1, %ecx
	je	.L8
	movslq	%ecx, %rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	subq	$1, %rax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L34
.L10:
	movl	0(%rbp,%rax,4), %edi
	movl	%eax, %ecx
	testl	%edi, %edi
	jne	.L35
	cmpl	$101, %edx
	je	.L12
.L8:
	movslq	%edx, %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %rax
	movl	%eax, %edx
	cmpl	$101, %eax
	je	.L12
.L13:
	movl	0(%rbp,%rax,4), %esi
	movl	%eax, %edx
	testl	%esi, %esi
	jne	.L36
.L12:
	movl	%edx, %eax
	subl	%r8d, %eax
	subl	%ecx, %r8d
	cmpl	%r8d, %eax
	cmovge	%ecx, %edx
.L14:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	cmpl	$101, %edx
	jne	.L8
	jmp	.L14
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L33:
	movl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$51, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L2
	movl	$0, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC2(%rip), %r12
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L7:
	movslq	4(%rsp), %rax
	movl	16(%rsp,%rax,4), %r9d
	movq	%rax, %r8
	testl	%r9d, %r9d
	je	.L33
	movl	%eax, %ecx
	leal	1(%rax), %edx
	subl	$1, %ecx
	je	.L8
	movslq	%ecx, %rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	subq	$1, %rax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L34
.L10:
	movl	0(%rbp,%rax,4), %edi
	movl	%eax, %ecx
	testl	%edi, %edi
	jne	.L35
	cmpl	$101, %edx
	je	.L12
.L8:
	movslq	%edx, %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %rax
	movl	%eax, %edx
	cmpl	$101, %eax
	je	.L12
.L13:
	movl	0(%rbp,%rax,4), %esi
	movl	%eax, %edx
	testl	%esi, %esi
	jne	.L36
.L12:
	movl	%edx, %eax
	subl	%r8d, %eax
	subl	%ecx, %r8d
	cmpl	%r8d, %eax
	cmovge	%ecx, %edx
.L14:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	cmpl	$101, %edx
	jne	.L8
	jmp	.L14
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L33:
	movl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include <stdio.h>

int main(void)
{	int X, N;
	int num[102] = {0};
	int i, tmp, left, right, ans;

	scanf("%d %d", &X, &N);

	if (N == 0)
	{
		printf("%d\n", X);
		return (0);
	}

	for (i = 0; i < N; i++)
	{
		scanf("%d", &tmp);
		num[tmp]++;
	}

	if (num[X] == 0)
	{
		printf("%d\n", X);
		return (0);
	}

	left = X - 1;
	while (left != 0)
	{
		if (num[left] == 0)
			break;
		left--;
	}
	right = X + 1;
	while (right != 101)
	{
		if (num[right] == 0)
			break;
		right++;
	}

	if (right - X < X - left)
		ans = right;
	else
		ans = left;
	printf("%d\n", ans);

	return (0);
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void)
{	int X, N;
	int num[102] = {0};
	int i, tmp, left, right, ans;

	scanf("%d %d", &X, &N);

	if (N == 0)
	{
		printf("%d\n", X);
		return (0);
	}

	for (i = 0; i < N; i++)
	{
		scanf("%d", &tmp);
		num[tmp]++;
	}

	if (num[X] == 0)
	{
		printf("%d\n", X);
		return (0);
	}

	left = X - 1;
	while (left != 0)
	{
		if (num[left] == 0)
			break;
		left--;
	}
	right = X + 1;
	while (right != 101)
	{
		if (num[right] == 0)
			break;
		right++;
	}

	if (right - X < X - left)
		ans = right;
	else
		ans = left;
	printf("%d\n", ans);

	return (0);
}
```

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:

6 2
4 7 10 6 5
 10 3
4 7 10 6 5
 6 2
4 7 10 8 5
 10 3
4 7 9 6 5
 15 3
7 5 3 6 5
 12 1
2 5 3 16 11
 2 1
4 5 0 16 4
 6 5
3 7 10 6 5
 19 5
4 7 10 6 5
 101 0

6
 9
 6
 10
 15
 12
 2
 4
 19
 101

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

```c
#include <stdio.h>

int main(void)
{	int X, N;
	int num[102] = {0};
	int i, tmp, left, right, ans;

	scanf("%d %d", &X, &N);

	if (N == 0)
	{
		printf("%d\n", X);
		return (0);
	}

	for (i = 0; i < N; i++)
	{
		scanf("%d", &tmp);
		num[tmp]++;
	}

	if (num[X] == 0)
	{
		printf("%d\n", X);
		return (0);
	}

	left = X - 1;
	while (left != 0)
	{
		if (num[left] == 0)
			break;
		left--;
	}
	right = X + 1;
	while (right != 101)
	{
		if (num[right] == 0)
			break;
		right++;
	}

	if (right - X < X - left)
		ans = right;
	else
		ans = left;
	printf("%d\n", ans);

	return (0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$51, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L2
	movl	$0, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC2(%rip), %r12
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L7:
	movslq	4(%rsp), %rax
	movl	16(%rsp,%rax,4), %r9d
	movq	%rax, %r8
	testl	%r9d, %r9d
	je	.L33
	movl	%eax, %ecx
	leal	1(%rax), %edx
	subl	$1, %ecx
	je	.L8
	movslq	%ecx, %rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	subq	$1, %rax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L34
.L10:
	movl	0(%rbp,%rax,4), %edi
	movl	%eax, %ecx
	testl	%edi, %edi
	jne	.L35
	cmpl	$101, %edx
	je	.L12
.L8:
	movslq	%edx, %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %rax
	movl	%eax, %edx
	cmpl	$101, %eax
	je	.L12
.L13:
	movl	0(%rbp,%rax,4), %esi
	movl	%eax, %edx
	testl	%esi, %esi
	jne	.L36
.L12:
	movl	%edx, %eax
	subl	%r8d, %eax
	subl	%ecx, %r8d
	cmpl	%r8d, %eax
	cmovge	%ecx, %edx
.L14:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	cmpl	$101, %edx
	jne	.L8
	jmp	.L14
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L33:
	movl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$51, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	8(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L2
	movl	$0, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC2(%rip), %r12
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L7:
	movslq	4(%rsp), %rax
	movl	16(%rsp,%rax,4), %r9d
	movq	%rax, %r8
	testl	%r9d, %r9d
	je	.L33
	movl	%eax, %ecx
	leal	1(%rax), %edx
	subl	$1, %ecx
	je	.L8
	movslq	%ecx, %rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	subq	$1, %rax
	movl	%eax, %ecx
	testl	%eax, %eax
	je	.L34
.L10:
	movl	0(%rbp,%rax,4), %edi
	movl	%eax, %ecx
	testl	%edi, %edi
	jne	.L35
	cmpl	$101, %edx
	je	.L12
.L8:
	movslq	%edx, %rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %rax
	movl	%eax, %edx
	cmpl	$101, %eax
	je	.L12
.L13:
	movl	0(%rbp,%rax,4), %esi
	movl	%eax, %edx
	testl	%esi, %esi
	jne	.L36
.L12:
	movl	%edx, %eax
	subl	%r8d, %eax
	subl	%ecx, %r8d
	cmpl	%r8d, %eax
	cmovge	%ecx, %edx
.L14:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore_state
	cmpl	$101, %edx
	jne	.L8
	jmp	.L14
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L33:
	movl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```