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, sub, 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]++;
	}

	i = 101;
	sub = 102;
	while (0 <= i)
	{
		if (0 < num[i])
		{
			i--;
			continue;
		}
		tmp = X - i;
		if (tmp < 0)
			tmp *= -1;
		if (tmp <= sub)
			ans = i;
		else
			break;
		sub = X - i;
		if (sub < 0)
			sub *= -1;
		i--;
	}
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$51, %ecx
	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	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L2
	movl	$0, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC2(%rip), %r13
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebp, 8(%rsp)
	jg	.L3
.L6:
	movl	4(%rsp), %eax
	movl	$101, %esi
	xorl	%r9d, %r9d
	leaq	420(%rsp), %rcx
	movl	$102, %r8d
	leal	-101(%rax), %edx
	subl	%eax, %esi
	movl	$100, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %edx
	jg	.L25
.L9:
	movl	%edi, %r12d
	movl	%ebx, %r8d
	movl	$1, %r9d
.L7:
	subl	$1, %eax
	subq	$4, %rcx
	addl	$1, %edx
	subl	$1, %esi
	cmpl	$-2, %eax
	je	.L26
.L4:
	movl	(%rcx), %r10d
	leal	1(%rax), %edi
	testl	%r10d, %r10d
	jg	.L7
	movl	%edx, %ebx
	testl	%edx, %edx
	jns	.L8
	movl	%esi, %ebx
	cmpl	%r8d, %esi
	jle	.L9
	movl	%esi, 12(%rsp)
.L10:
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %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
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	jmp	.L10
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L26:
	testb	%r9b, %r9b
	je	.L10
	movl	%ebx, 12(%rsp)
	jmp	.L10
.L27:
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$51, %ecx
	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	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L2
	movl	$0, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC2(%rip), %r13
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebp, 8(%rsp)
	jg	.L3
.L6:
	movl	4(%rsp), %eax
	movl	$101, %esi
	xorl	%r9d, %r9d
	leaq	420(%rsp), %rcx
	movl	$102, %r8d
	leal	-101(%rax), %edx
	subl	%eax, %esi
	movl	$100, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %edx
	jg	.L25
.L9:
	movl	%edi, %r12d
	movl	%ebx, %r8d
	movl	$1, %r9d
.L7:
	subl	$1, %eax
	subq	$4, %rcx
	addl	$1, %edx
	subl	$1, %esi
	cmpl	$-2, %eax
	je	.L26
.L4:
	movl	(%rcx), %r10d
	leal	1(%rax), %edi
	testl	%r10d, %r10d
	jg	.L7
	movl	%edx, %ebx
	testl	%edx, %edx
	jns	.L8
	movl	%esi, %ebx
	cmpl	%r8d, %esi
	jle	.L9
	movl	%esi, 12(%rsp)
.L10:
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %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
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	jmp	.L10
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L26:
	testb	%r9b, %r9b
	je	.L10
	movl	%ebx, 12(%rsp)
	jmp	.L10
.L27:
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$51, %ecx
	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	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L2
	movl	$0, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC2(%rip), %r13
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebp, 8(%rsp)
	jg	.L3
.L6:
	movl	4(%rsp), %eax
	movl	$101, %esi
	xorl	%r9d, %r9d
	leaq	420(%rsp), %rcx
	movl	$102, %r8d
	leal	-101(%rax), %edx
	subl	%eax, %esi
	movl	$100, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %edx
	jg	.L25
.L9:
	movl	%edi, %r12d
	movl	%ebx, %r8d
	movl	$1, %r9d
.L7:
	subl	$1, %eax
	subq	$4, %rcx
	addl	$1, %edx
	subl	$1, %esi
	cmpl	$-2, %eax
	je	.L26
.L4:
	movl	(%rcx), %r10d
	leal	1(%rax), %edi
	testl	%r10d, %r10d
	jg	.L7
	movl	%edx, %ebx
	testl	%edx, %edx
	jns	.L8
	movl	%esi, %ebx
	cmpl	%r8d, %esi
	jle	.L9
	movl	%esi, 12(%rsp)
.L10:
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %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
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	jmp	.L10
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L26:
	testb	%r9b, %r9b
	je	.L10
	movl	%ebx, 12(%rsp)
	jmp	.L10
.L27:
	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, sub, 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]++;
	}

	i = 101;
	sub = 102;
	while (0 <= i)
	{
		if (0 < num[i])
		{
			i--;
			continue;
		}
		tmp = X - i;
		if (tmp < 0)
			tmp *= -1;
		if (tmp <= sub)
			ans = i;
		else
			break;
		sub = X - i;
		if (sub < 0)
			sub *= -1;
		i--;
	}
	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, sub, 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]++;
	}

	i = 101;
	sub = 102;
	while (0 <= i)
	{
		if (0 < num[i])
		{
			i--;
			continue;
		}
		tmp = X - i;
		if (tmp < 0)
			tmp *= -1;
		if (tmp <= sub)
			ans = i;
		else
			break;
		sub = X - i;
		if (sub < 0)
			sub *= -1;
		i--;
	}
	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, sub, 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]++;
	}

	i = 101;
	sub = 102;
	while (0 <= i)
	{
		if (0 < num[i])
		{
			i--;
			continue;
		}
		tmp = X - i;
		if (tmp < 0)
			tmp *= -1;
		if (tmp <= sub)
			ans = i;
		else
			break;
		sub = X - i;
		if (sub < 0)
			sub *= -1;
		i--;
	}
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$51, %ecx
	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	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L2
	movl	$0, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC2(%rip), %r13
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebp, 8(%rsp)
	jg	.L3
.L6:
	movl	4(%rsp), %eax
	movl	$101, %esi
	xorl	%r9d, %r9d
	leaq	420(%rsp), %rcx
	movl	$102, %r8d
	leal	-101(%rax), %edx
	subl	%eax, %esi
	movl	$100, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %edx
	jg	.L25
.L9:
	movl	%edi, %r12d
	movl	%ebx, %r8d
	movl	$1, %r9d
.L7:
	subl	$1, %eax
	subq	$4, %rcx
	addl	$1, %edx
	subl	$1, %esi
	cmpl	$-2, %eax
	je	.L26
.L4:
	movl	(%rcx), %r10d
	leal	1(%rax), %edi
	testl	%r10d, %r10d
	jg	.L7
	movl	%edx, %ebx
	testl	%edx, %edx
	jns	.L8
	movl	%esi, %ebx
	cmpl	%r8d, %esi
	jle	.L9
	movl	%esi, 12(%rsp)
.L10:
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %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
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	jmp	.L10
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L26:
	testb	%r9b, %r9b
	je	.L10
	movl	%ebx, 12(%rsp)
	jmp	.L10
.L27:
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$51, %ecx
	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	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L2
	movl	$0, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC2(%rip), %r13
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebp, 8(%rsp)
	jg	.L3
.L6:
	movl	4(%rsp), %eax
	movl	$101, %esi
	xorl	%r9d, %r9d
	leaq	420(%rsp), %rcx
	movl	$102, %r8d
	leal	-101(%rax), %edx
	subl	%eax, %esi
	movl	$100, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %edx
	jg	.L25
.L9:
	movl	%edi, %r12d
	movl	%ebx, %r8d
	movl	$1, %r9d
.L7:
	subl	$1, %eax
	subq	$4, %rcx
	addl	$1, %edx
	subl	$1, %esi
	cmpl	$-2, %eax
	je	.L26
.L4:
	movl	(%rcx), %r10d
	leal	1(%rax), %edi
	testl	%r10d, %r10d
	jg	.L7
	movl	%edx, %ebx
	testl	%edx, %edx
	jns	.L8
	movl	%esi, %ebx
	cmpl	%r8d, %esi
	jle	.L9
	movl	%esi, 12(%rsp)
.L10:
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %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
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	jmp	.L10
.L2:
	movl	4(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L26:
	testb	%r9b, %r9b
	je	.L10
	movl	%ebx, 12(%rsp)
	jmp	.L10
.L27:
	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:
```