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

```c
n,i,a[100009];main(){
	scanf("%d",&n);for(i=0;i<n;i++)scanf("%d",&a[i]);
	for(i=n-1;i>=1;i--){
    	if(a[i]<a[i-1])a[i-1]--;
    	if(a[i]<a[i-1]){printf("No");return 0;}
	}
	printf("Yes");
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	n(%rip), %rcx
	movl	$0, i(%rip)
	testl	%ecx, %ecx
	jle	.L2
	xorl	%eax, %eax
	leaq	a(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	cltq
	movq	%rbp, %rdi
	leaq	(%r12,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movslq	n(%rip), %rcx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%ecx, %eax
	jl	.L3
.L2:
	leal	-1(%rcx), %edx
	movl	%edx, i(%rip)
	testl	%edx, %edx
	jle	.L4
	leaq	a(%rip), %rax
	xorl	%edi, %edi
	leaq	(%rax,%rcx,4), %rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$4, %rax
	movl	$1, %edi
	testl	%edx, %edx
	je	.L16
	movl	%edx, %ebx
.L8:
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	subl	$1, %edx
	cmpl	%ecx, %esi
	jge	.L5
	subl	$1, %ecx
	movl	%ecx, -8(%rax)
	cmpl	%ecx, %esi
	jge	.L5
	testb	%dil, %dil
	je	.L6
	movl	%ebx, i(%rip)
.L6:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L7
.L16:
	movl	$0, i(%rip)
.L4:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L7:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400036
a:
	.zero	400036
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	n(%rip), %rcx
	movl	$0, i(%rip)
	testl	%ecx, %ecx
	jle	.L2
	xorl	%eax, %eax
	leaq	a(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	cltq
	movq	%rbp, %rdi
	leaq	(%r12,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movslq	n(%rip), %rcx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%ecx, %eax
	jl	.L3
.L2:
	leal	-1(%rcx), %edx
	movl	%edx, i(%rip)
	testl	%edx, %edx
	jle	.L4
	leaq	a(%rip), %rax
	xorl	%edi, %edi
	leaq	(%rax,%rcx,4), %rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$4, %rax
	movl	$1, %edi
	testl	%edx, %edx
	je	.L16
	movl	%edx, %ebx
.L8:
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	subl	$1, %edx
	cmpl	%ecx, %esi
	jge	.L5
	subl	$1, %ecx
	movl	%ecx, -8(%rax)
	cmpl	%ecx, %esi
	jge	.L5
	testb	%dil, %dil
	je	.L6
	movl	%ebx, i(%rip)
.L6:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L7
.L16:
	movl	$0, i(%rip)
.L4:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L7:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400036
a:
	.zero	400036
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	n(%rip), %rcx
	movl	$0, i(%rip)
	testl	%ecx, %ecx
	jle	.L2
	xorl	%eax, %eax
	leaq	a(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	cltq
	movq	%rbp, %rdi
	leaq	(%r12,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movslq	n(%rip), %rcx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%ecx, %eax
	jl	.L3
.L2:
	leal	-1(%rcx), %edx
	movl	%edx, i(%rip)
	testl	%edx, %edx
	jle	.L4
	leaq	a(%rip), %rax
	xorl	%edi, %edi
	leaq	(%rax,%rcx,4), %rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$4, %rax
	movl	$1, %edi
	testl	%edx, %edx
	je	.L16
	movl	%edx, %ebx
.L8:
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	subl	$1, %edx
	cmpl	%ecx, %esi
	jge	.L5
	subl	$1, %ecx
	movl	%ecx, -8(%rax)
	cmpl	%ecx, %esi
	jge	.L5
	testb	%dil, %dil
	je	.L6
	movl	%ebx, i(%rip)
.L6:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L7
.L16:
	movl	$0, i(%rip)
.L4:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L7:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400036
a:
	.zero	400036
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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
n,i,a[100009];main(){
	scanf("%d",&n);for(i=0;i<n;i++)scanf("%d",&a[i]);
	for(i=n-1;i>=1;i--){
    	if(a[i]<a[i-1])a[i-1]--;
    	if(a[i]<a[i-1]){printf("No");return 0;}
	}
	printf("Yes");
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
n,i,a[100009];main(){
	scanf("%d",&n);for(i=0;i<n;i++)scanf("%d",&a[i]);
	for(i=n-1;i>=1;i--){
    	if(a[i]<a[i-1])a[i-1]--;
    	if(a[i]<a[i-1]){printf("No");return 0;}
	}
	printf("Yes");
}```

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:

1
1000010000
 4
1 5 2 1
 5
1 2 3 6 5
 5
1 2 0 1 3
 1
1000011000
 4
1 5 2 2
 5
1 2 0 6 5
 5
0 2 0 1 3
 1
1000011100
 4
0 5 2 2

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

```c
n,i,a[100009];main(){
	scanf("%d",&n);for(i=0;i<n;i++)scanf("%d",&a[i]);
	for(i=n-1;i>=1;i--){
    	if(a[i]<a[i-1])a[i-1]--;
    	if(a[i]<a[i-1]){printf("No");return 0;}
	}
	printf("Yes");
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	n(%rip), %rcx
	movl	$0, i(%rip)
	testl	%ecx, %ecx
	jle	.L2
	xorl	%eax, %eax
	leaq	a(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	cltq
	movq	%rbp, %rdi
	leaq	(%r12,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movslq	n(%rip), %rcx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%ecx, %eax
	jl	.L3
.L2:
	leal	-1(%rcx), %edx
	movl	%edx, i(%rip)
	testl	%edx, %edx
	jle	.L4
	leaq	a(%rip), %rax
	xorl	%edi, %edi
	leaq	(%rax,%rcx,4), %rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$4, %rax
	movl	$1, %edi
	testl	%edx, %edx
	je	.L16
	movl	%edx, %ebx
.L8:
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	subl	$1, %edx
	cmpl	%ecx, %esi
	jge	.L5
	subl	$1, %ecx
	movl	%ecx, -8(%rax)
	cmpl	%ecx, %esi
	jge	.L5
	testb	%dil, %dil
	je	.L6
	movl	%ebx, i(%rip)
.L6:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L7
.L16:
	movl	$0, i(%rip)
.L4:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L7:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400036
a:
	.zero	400036
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	call	scanf@PLT
	movslq	n(%rip), %rcx
	movl	$0, i(%rip)
	testl	%ecx, %ecx
	jle	.L2
	xorl	%eax, %eax
	leaq	a(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	cltq
	movq	%rbp, %rdi
	leaq	(%r12,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movslq	n(%rip), %rcx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%ecx, %eax
	jl	.L3
.L2:
	leal	-1(%rcx), %edx
	movl	%edx, i(%rip)
	testl	%edx, %edx
	jle	.L4
	leaq	a(%rip), %rax
	xorl	%edi, %edi
	leaq	(%rax,%rcx,4), %rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$4, %rax
	movl	$1, %edi
	testl	%edx, %edx
	je	.L16
	movl	%edx, %ebx
.L8:
	movl	-4(%rax), %esi
	movl	-8(%rax), %ecx
	subl	$1, %edx
	cmpl	%ecx, %esi
	jge	.L5
	subl	$1, %ecx
	movl	%ecx, -8(%rax)
	cmpl	%ecx, %esi
	jge	.L5
	testb	%dil, %dil
	je	.L6
	movl	%ebx, i(%rip)
.L6:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L7
.L16:
	movl	$0, i(%rip)
.L4:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L7:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400036
a:
	.zero	400036
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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:
```