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 n;
	scanf("%d",&n);
	
	int v[n+1];
	for(int i = 0;i < n;i ++){
		scanf("%d",&v[i]);
	}
	v[n+1] = 1000000001;
	int count = 0 , ans = 0;

	for(int i = 0;i < n;i ++){
		if(v[i] >= v[i+1] && i < n-1){
			count ++;
		}
		else{
			if(count > ans){
				ans = count;
				}
			count = 0;
        }
	}
	printf("%d\n",ans);

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	movq	%rsp, %rsi
	leal	1(%rdi), %edx
	movslq	%edx, %rdx
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L30
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L4:
	leaq	3(%rsp), %rsi
	movq	%rsi, %r14
	movq	%rsi, %rbx
	shrq	$2, %r14
	andq	$-4, %rbx
	testl	%edi, %edi
	jle	.L5
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	cmpl	%r12d, %ecx
	jg	.L6
	leal	1(%rcx), %eax
	cltq
	movl	$1000000001, (%rbx,%rax,4)
	testl	%ecx, %ecx
	jle	.L16
	movl	%ecx, %r10d
	subl	$1, %r10d
	je	.L17
	cmpl	%r10d, %ecx
	movl	0(,%r14,4), %edi
	leaq	4(%rbx), %rsi
	cmovle	%ecx, %r10d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
.L11:
	addq	$4, %rsi
	cmpl	%r10d, %edx
	jge	.L28
.L9:
	movl	%edi, %r9d
	movl	(%rsi), %edi
	addl	$1, %edx
	cmpl	%edi, %r9d
	jge	.L32
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
.L28:
	cmpl	%edx, %ecx
	jg	.L13
.L7:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	movl	$1000000001, (%rbx,%rdx,4)
	xorl	%r8d, %r8d
	jmp	.L7
.L33:
	call	__stack_chk_fail@PLT
.L16:
	xorl	%r8d, %r8d
	jmp	.L7
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	movq	%rsp, %rsi
	leal	1(%rdi), %edx
	movslq	%edx, %rdx
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L30
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L4:
	leaq	3(%rsp), %rsi
	movq	%rsi, %r14
	movq	%rsi, %rbx
	shrq	$2, %r14
	andq	$-4, %rbx
	testl	%edi, %edi
	jle	.L5
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	cmpl	%r12d, %ecx
	jg	.L6
	leal	1(%rcx), %eax
	cltq
	movl	$1000000001, (%rbx,%rax,4)
	testl	%ecx, %ecx
	jle	.L16
	movl	%ecx, %r10d
	subl	$1, %r10d
	je	.L17
	cmpl	%r10d, %ecx
	movl	0(,%r14,4), %edi
	leaq	4(%rbx), %rsi
	cmovle	%ecx, %r10d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
.L11:
	addq	$4, %rsi
	cmpl	%r10d, %edx
	jge	.L28
.L9:
	movl	%edi, %r9d
	movl	(%rsi), %edi
	addl	$1, %edx
	cmpl	%edi, %r9d
	jge	.L32
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
.L28:
	cmpl	%edx, %ecx
	jg	.L13
.L7:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	movl	$1000000001, (%rbx,%rdx,4)
	xorl	%r8d, %r8d
	jmp	.L7
.L33:
	call	__stack_chk_fail@PLT
.L16:
	xorl	%r8d, %r8d
	jmp	.L7
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	movq	%rsp, %rsi
	leal	1(%rdi), %edx
	movslq	%edx, %rdx
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L30
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L4:
	leaq	3(%rsp), %rsi
	movq	%rsi, %r14
	movq	%rsi, %rbx
	shrq	$2, %r14
	andq	$-4, %rbx
	testl	%edi, %edi
	jle	.L5
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	cmpl	%r12d, %ecx
	jg	.L6
	leal	1(%rcx), %eax
	cltq
	movl	$1000000001, (%rbx,%rax,4)
	testl	%ecx, %ecx
	jle	.L16
	movl	%ecx, %r10d
	subl	$1, %r10d
	je	.L17
	cmpl	%r10d, %ecx
	movl	0(,%r14,4), %edi
	leaq	4(%rbx), %rsi
	cmovle	%ecx, %r10d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
.L11:
	addq	$4, %rsi
	cmpl	%r10d, %edx
	jge	.L28
.L9:
	movl	%edi, %r9d
	movl	(%rsi), %edi
	addl	$1, %edx
	cmpl	%edi, %r9d
	jge	.L32
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
.L28:
	cmpl	%edx, %ecx
	jg	.L13
.L7:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	movl	$1000000001, (%rbx,%rdx,4)
	xorl	%r8d, %r8d
	jmp	.L7
.L33:
	call	__stack_chk_fail@PLT
.L16:
	xorl	%r8d, %r8d
	jmp	.L7
	.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 n;
	scanf("%d",&n);
	
	int v[n+1];
	for(int i = 0;i < n;i ++){
		scanf("%d",&v[i]);
	}
	v[n+1] = 1000000001;
	int count = 0 , ans = 0;

	for(int i = 0;i < n;i ++){
		if(v[i] >= v[i+1] && i < n-1){
			count ++;
		}
		else{
			if(count > ans){
				ans = count;
				}
			count = 0;
        }
	}
	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 n;
	scanf("%d",&n);
	
	int v[n+1];
	for(int i = 0;i < n;i ++){
		scanf("%d",&v[i]);
	}
	v[n+1] = 1000000001;
	int count = 0 , ans = 0;

	for(int i = 0;i < n;i ++){
		if(v[i] >= v[i+1] && i < n-1){
			count ++;
		}
		else{
			if(count > ans){
				ans = count;
				}
			count = 0;
        }
	}
	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:

5
10 4 8 13 3
 4
1 2 3 6
 7
4 4 8 6 6 5 5
 7
7 4 8 6 6 5 8
 5
12 4 8 4 3
 5
10 4 8 12 3
 4
1 2 6 6
 7
7 4 8 6 6 5 5
 5
12 4 8 12 3
 4
1 4 3 6

1
 0
 4
 3
 2
 1
 1
 4
 1
 1

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 n;
	scanf("%d",&n);
	
	int v[n+1];
	for(int i = 0;i < n;i ++){
		scanf("%d",&v[i]);
	}
	v[n+1] = 1000000001;
	int count = 0 , ans = 0;

	for(int i = 0;i < n;i ++){
		if(v[i] >= v[i+1] && i < n-1){
			count ++;
		}
		else{
			if(count > ans){
				ans = count;
				}
			count = 0;
        }
	}
	printf("%d\n",ans);

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	movq	%rsp, %rsi
	leal	1(%rdi), %edx
	movslq	%edx, %rdx
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L30
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L4:
	leaq	3(%rsp), %rsi
	movq	%rsi, %r14
	movq	%rsi, %rbx
	shrq	$2, %r14
	andq	$-4, %rbx
	testl	%edi, %edi
	jle	.L5
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	cmpl	%r12d, %ecx
	jg	.L6
	leal	1(%rcx), %eax
	cltq
	movl	$1000000001, (%rbx,%rax,4)
	testl	%ecx, %ecx
	jle	.L16
	movl	%ecx, %r10d
	subl	$1, %r10d
	je	.L17
	cmpl	%r10d, %ecx
	movl	0(,%r14,4), %edi
	leaq	4(%rbx), %rsi
	cmovle	%ecx, %r10d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
.L11:
	addq	$4, %rsi
	cmpl	%r10d, %edx
	jge	.L28
.L9:
	movl	%edi, %r9d
	movl	(%rsi), %edi
	addl	$1, %edx
	cmpl	%edi, %r9d
	jge	.L32
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
.L28:
	cmpl	%edx, %ecx
	jg	.L13
.L7:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	movl	$1000000001, (%rbx,%rdx,4)
	xorl	%r8d, %r8d
	jmp	.L7
.L33:
	call	__stack_chk_fail@PLT
.L16:
	xorl	%r8d, %r8d
	jmp	.L7
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	movq	%rsp, %rsi
	leal	1(%rdi), %edx
	movslq	%edx, %rdx
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L30
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L4:
	leaq	3(%rsp), %rsi
	movq	%rsi, %r14
	movq	%rsi, %rbx
	shrq	$2, %r14
	andq	$-4, %rbx
	testl	%edi, %edi
	jle	.L5
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	addq	$4, %r15
	cmpl	%r12d, %ecx
	jg	.L6
	leal	1(%rcx), %eax
	cltq
	movl	$1000000001, (%rbx,%rax,4)
	testl	%ecx, %ecx
	jle	.L16
	movl	%ecx, %r10d
	subl	$1, %r10d
	je	.L17
	cmpl	%r10d, %ecx
	movl	0(,%r14,4), %edi
	leaq	4(%rbx), %rsi
	cmovle	%ecx, %r10d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
.L11:
	addq	$4, %rsi
	cmpl	%r10d, %edx
	jge	.L28
.L9:
	movl	%edi, %r9d
	movl	(%rsi), %edi
	addl	$1, %edx
	cmpl	%edi, %r9d
	jge	.L32
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	xorl	%eax, %eax
.L28:
	cmpl	%edx, %ecx
	jg	.L13
.L7:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L31:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	movl	$1000000001, (%rbx,%rdx,4)
	xorl	%r8d, %r8d
	jmp	.L7
.L33:
	call	__stack_chk_fail@PLT
.L16:
	xorl	%r8d, %r8d
	jmp	.L7
	.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:
```