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(){
    int x, n;
    scanf("%d%d", &x, &n);
    int p[102] = {0};
    int i = 0, j;
    for(i = 0; i < n; i++){
        scanf("%d", &j);
        p[j]++;
    }
    for(i = 0; i <= n; i++){
        if(p[x - i] == 0 && x - i >= 0){
           
            printf("%d\n", x - i);
            return 0;
            
        }
        if(p[x + i] == 0 && x + i <= 101){
            
            printf("%d\n", x + i);
            return 0;
            
        }
    }
    printf("%d\n", x);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	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	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	$51, %ecx
	xorl	%eax, %eax
	movq	%rbp, %rdi
	rep stosq
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	movl	8(%rsp), %edi
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, %edi
	jg	.L3
.L2:
	movl	4(%rsp), %r12d
	testl	%edi, %edi
	js	.L4
	movslq	%r12d, %rax
	movl	16(%rsp,%rax,4), %r10d
	testl	%r10d, %r10d
	sete	%dl
	testl	%r12d, %r12d
	js	.L17
	testb	%dl, %dl
	jne	.L15
.L17:
	cmpl	$101, %r12d
	jg	.L9
	testb	%dl, %dl
	jne	.L29
.L9:
	leaq	0(%rbp,%rax,4), %r10
	leal	1(%r12), %edx
	movl	$1, %eax
	leal	-1(%r12), %ecx
	movq	%r10, %rsi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%rsi), %r9d
	movl	%ecx, %r8d
	testl	%r9d, %r9d
	jne	.L10
	testl	%ecx, %ecx
	jns	.L5
.L10:
	movl	(%r10,%rax,4), %r8d
	movl	%edx, %r11d
	testl	%r8d, %r8d
	sete	%r9b
	cmpl	$101, %edx
	setle	%r8b
	addq	$1, %rax
	addl	$1, %edx
	subl	$1, %ecx
	subq	$4, %rsi
	testb	%r8b, %r9b
	jne	.L7
.L12:
	cmpl	%eax, %edi
	jge	.L13
.L4:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	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
.L15:
	.cfi_restore_state
	movl	%r12d, %r8d
.L5:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L29:
	movl	%r12d, %r11d
.L7:
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L30:
	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"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	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	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	$51, %ecx
	xorl	%eax, %eax
	movq	%rbp, %rdi
	rep stosq
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	movl	8(%rsp), %edi
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, %edi
	jg	.L3
.L2:
	movl	4(%rsp), %r12d
	testl	%edi, %edi
	js	.L4
	movslq	%r12d, %rax
	movl	16(%rsp,%rax,4), %r10d
	testl	%r10d, %r10d
	sete	%dl
	testl	%r12d, %r12d
	js	.L17
	testb	%dl, %dl
	jne	.L15
.L17:
	cmpl	$101, %r12d
	jg	.L9
	testb	%dl, %dl
	jne	.L29
.L9:
	leaq	0(%rbp,%rax,4), %r10
	leal	1(%r12), %edx
	movl	$1, %eax
	leal	-1(%r12), %ecx
	movq	%r10, %rsi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%rsi), %r9d
	movl	%ecx, %r8d
	testl	%r9d, %r9d
	jne	.L10
	testl	%ecx, %ecx
	jns	.L5
.L10:
	movl	(%r10,%rax,4), %r8d
	movl	%edx, %r11d
	testl	%r8d, %r8d
	sete	%r9b
	cmpl	$101, %edx
	setle	%r8b
	addq	$1, %rax
	addl	$1, %edx
	subl	$1, %ecx
	subq	$4, %rsi
	testb	%r8b, %r9b
	jne	.L7
.L12:
	cmpl	%eax, %edi
	jge	.L13
.L4:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	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
.L15:
	.cfi_restore_state
	movl	%r12d, %r8d
.L5:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L29:
	movl	%r12d, %r11d
.L7:
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L30:
	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"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	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	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	$51, %ecx
	xorl	%eax, %eax
	movq	%rbp, %rdi
	rep stosq
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	movl	8(%rsp), %edi
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, %edi
	jg	.L3
.L2:
	movl	4(%rsp), %r12d
	testl	%edi, %edi
	js	.L4
	movslq	%r12d, %rax
	movl	16(%rsp,%rax,4), %r10d
	testl	%r10d, %r10d
	sete	%dl
	testl	%r12d, %r12d
	js	.L17
	testb	%dl, %dl
	jne	.L15
.L17:
	cmpl	$101, %r12d
	jg	.L9
	testb	%dl, %dl
	jne	.L29
.L9:
	leaq	0(%rbp,%rax,4), %r10
	leal	1(%r12), %edx
	movl	$1, %eax
	leal	-1(%r12), %ecx
	movq	%r10, %rsi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%rsi), %r9d
	movl	%ecx, %r8d
	testl	%r9d, %r9d
	jne	.L10
	testl	%ecx, %ecx
	jns	.L5
.L10:
	movl	(%r10,%rax,4), %r8d
	movl	%edx, %r11d
	testl	%r8d, %r8d
	sete	%r9b
	cmpl	$101, %edx
	setle	%r8b
	addq	$1, %rax
	addl	$1, %edx
	subl	$1, %ecx
	subq	$4, %rsi
	testb	%r8b, %r9b
	jne	.L7
.L12:
	cmpl	%eax, %edi
	jge	.L13
.L4:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	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
.L15:
	.cfi_restore_state
	movl	%r12d, %r8d
.L5:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L29:
	movl	%r12d, %r11d
.L7:
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L30:
	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(){
    int x, n;
    scanf("%d%d", &x, &n);
    int p[102] = {0};
    int i = 0, j;
    for(i = 0; i < n; i++){
        scanf("%d", &j);
        p[j]++;
    }
    for(i = 0; i <= n; i++){
        if(p[x - i] == 0 && x - i >= 0){
           
            printf("%d\n", x - i);
            return 0;
            
        }
        if(p[x + i] == 0 && x + i <= 101){
            
            printf("%d\n", x + i);
            return 0;
            
        }
    }
    printf("%d\n", x);
    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(){
    int x, n;
    scanf("%d%d", &x, &n);
    int p[102] = {0};
    int i = 0, j;
    for(i = 0; i < n; i++){
        scanf("%d", &j);
        p[j]++;
    }
    for(i = 0; i <= n; i++){
        if(p[x - i] == 0 && x - i >= 0){
           
            printf("%d\n", x - i);
            return 0;
            
        }
        if(p[x + i] == 0 && x + i <= 101){
            
            printf("%d\n", x + i);
            return 0;
            
        }
    }
    printf("%d\n", x);
    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(){
    int x, n;
    scanf("%d%d", &x, &n);
    int p[102] = {0};
    int i = 0, j;
    for(i = 0; i < n; i++){
        scanf("%d", &j);
        p[j]++;
    }
    for(i = 0; i <= n; i++){
        if(p[x - i] == 0 && x - i >= 0){
           
            printf("%d\n", x - i);
            return 0;
            
        }
        if(p[x + i] == 0 && x + i <= 101){
            
            printf("%d\n", x + i);
            return 0;
            
        }
    }
    printf("%d\n", x);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	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	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	$51, %ecx
	xorl	%eax, %eax
	movq	%rbp, %rdi
	rep stosq
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	movl	8(%rsp), %edi
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, %edi
	jg	.L3
.L2:
	movl	4(%rsp), %r12d
	testl	%edi, %edi
	js	.L4
	movslq	%r12d, %rax
	movl	16(%rsp,%rax,4), %r10d
	testl	%r10d, %r10d
	sete	%dl
	testl	%r12d, %r12d
	js	.L17
	testb	%dl, %dl
	jne	.L15
.L17:
	cmpl	$101, %r12d
	jg	.L9
	testb	%dl, %dl
	jne	.L29
.L9:
	leaq	0(%rbp,%rax,4), %r10
	leal	1(%r12), %edx
	movl	$1, %eax
	leal	-1(%r12), %ecx
	movq	%r10, %rsi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%rsi), %r9d
	movl	%ecx, %r8d
	testl	%r9d, %r9d
	jne	.L10
	testl	%ecx, %ecx
	jns	.L5
.L10:
	movl	(%r10,%rax,4), %r8d
	movl	%edx, %r11d
	testl	%r8d, %r8d
	sete	%r9b
	cmpl	$101, %edx
	setle	%r8b
	addq	$1, %rax
	addl	$1, %edx
	subl	$1, %ecx
	subq	$4, %rsi
	testb	%r8b, %r9b
	jne	.L7
.L12:
	cmpl	%eax, %edi
	jge	.L13
.L4:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	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
.L15:
	.cfi_restore_state
	movl	%r12d, %r8d
.L5:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L29:
	movl	%r12d, %r11d
.L7:
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L30:
	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"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC0(%rip), %rdi
	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	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	$51, %ecx
	xorl	%eax, %eax
	movq	%rbp, %rdi
	rep stosq
	movl	8(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rax
	movl	8(%rsp), %edi
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, %edi
	jg	.L3
.L2:
	movl	4(%rsp), %r12d
	testl	%edi, %edi
	js	.L4
	movslq	%r12d, %rax
	movl	16(%rsp,%rax,4), %r10d
	testl	%r10d, %r10d
	sete	%dl
	testl	%r12d, %r12d
	js	.L17
	testb	%dl, %dl
	jne	.L15
.L17:
	cmpl	$101, %r12d
	jg	.L9
	testb	%dl, %dl
	jne	.L29
.L9:
	leaq	0(%rbp,%rax,4), %r10
	leal	1(%r12), %edx
	movl	$1, %eax
	leal	-1(%r12), %ecx
	movq	%r10, %rsi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%rsi), %r9d
	movl	%ecx, %r8d
	testl	%r9d, %r9d
	jne	.L10
	testl	%ecx, %ecx
	jns	.L5
.L10:
	movl	(%r10,%rax,4), %r8d
	movl	%edx, %r11d
	testl	%r8d, %r8d
	sete	%r9b
	cmpl	$101, %edx
	setle	%r8b
	addq	$1, %rax
	addl	$1, %edx
	subl	$1, %ecx
	subq	$4, %rsi
	testb	%r8b, %r9b
	jne	.L7
.L12:
	cmpl	%eax, %edi
	jge	.L13
.L4:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	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
.L15:
	.cfi_restore_state
	movl	%r12d, %r8d
.L5:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L29:
	movl	%r12d, %r11d
.L7:
	movl	%r11d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L30:
	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:
```