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 n;
  long h[100005];
  int i;
  int count = 0;
  int answer = 0;
  
  scanf("%d", &n);
  for(i = 0; i < n; i++)
    scanf("%ld", &h[i]);
  
  for(i = 0; i < n - 1; i++){
    if(h[i] >= h[i + 1]){
      count++;
    }
    else{
      if(count > answer){
        answer = count;
      }
      count = 0;
    }
  }
    
    if(count > answer){
      answer = count;
    }
  
  printf("%d\n", answer);
  
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1344, %rsp
	.cfi_def_cfa_offset 800096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$8, %rbp
	cmpl	%ebx, %edx
	jg	.L3
	cmpl	$1, %edx
	jle	.L9
	subl	$2, %edx
	movq	16(%rsp), %rcx
	leaq	24(%rsp), %rax
	xorl	%edi, %edi
	leaq	32(%rsp,%rdx,8), %r8
	xorl	%edx, %edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$8, %rax
	addl	$1, %edx
	cmpq	%r8, %rax
	je	.L2
.L6:
	movq	%rcx, %rsi
	movq	(%rax), %rcx
	cmpq	%rcx, %rsi
	jge	.L14
	cmpl	%edx, %edi
	cmovl	%edx, %edi
	addq	$8, %rax
	xorl	%edx, %edx
	cmpq	%r8, %rax
	jne	.L6
.L2:
	cmpl	%edi, %edx
	leaq	.LC2(%rip), %rsi
	cmovl	%edi, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$800064, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L2
.L15:
	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"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1344, %rsp
	.cfi_def_cfa_offset 800096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$8, %rbp
	cmpl	%ebx, %edx
	jg	.L3
	cmpl	$1, %edx
	jle	.L9
	subl	$2, %edx
	movq	16(%rsp), %rcx
	leaq	24(%rsp), %rax
	xorl	%edi, %edi
	leaq	32(%rsp,%rdx,8), %r8
	xorl	%edx, %edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$8, %rax
	addl	$1, %edx
	cmpq	%r8, %rax
	je	.L2
.L6:
	movq	%rcx, %rsi
	movq	(%rax), %rcx
	cmpq	%rcx, %rsi
	jge	.L14
	cmpl	%edx, %edi
	cmovl	%edx, %edi
	addq	$8, %rax
	xorl	%edx, %edx
	cmpq	%r8, %rax
	jne	.L6
.L2:
	cmpl	%edi, %edx
	leaq	.LC2(%rip), %rsi
	cmovl	%edi, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$800064, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L2
.L15:
	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"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1344, %rsp
	.cfi_def_cfa_offset 800096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$8, %rbp
	cmpl	%ebx, %edx
	jg	.L3
	cmpl	$1, %edx
	jle	.L9
	subl	$2, %edx
	movq	16(%rsp), %rcx
	leaq	24(%rsp), %rax
	xorl	%edi, %edi
	leaq	32(%rsp,%rdx,8), %r8
	xorl	%edx, %edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$8, %rax
	addl	$1, %edx
	cmpq	%r8, %rax
	je	.L2
.L6:
	movq	%rcx, %rsi
	movq	(%rax), %rcx
	cmpq	%rcx, %rsi
	jge	.L14
	cmpl	%edx, %edi
	cmovl	%edx, %edi
	addq	$8, %rax
	xorl	%edx, %edx
	cmpq	%r8, %rax
	jne	.L6
.L2:
	cmpl	%edi, %edx
	leaq	.LC2(%rip), %rsi
	cmovl	%edi, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$800064, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L2
.L15:
	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 n;
  long h[100005];
  int i;
  int count = 0;
  int answer = 0;
  
  scanf("%d", &n);
  for(i = 0; i < n; i++)
    scanf("%ld", &h[i]);
  
  for(i = 0; i < n - 1; i++){
    if(h[i] >= h[i + 1]){
      count++;
    }
    else{
      if(count > answer){
        answer = count;
      }
      count = 0;
    }
  }
    
    if(count > answer){
      answer = count;
    }
  
  printf("%d\n", answer);
  
  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 n;
  long h[100005];
  int i;
  int count = 0;
  int answer = 0;
  
  scanf("%d", &n);
  for(i = 0; i < n; i++)
    scanf("%ld", &h[i]);
  
  for(i = 0; i < n - 1; i++){
    if(h[i] >= h[i + 1]){
      count++;
    }
    else{
      if(count > answer){
        answer = count;
      }
      count = 0;
    }
  }
    
    if(count > answer){
      answer = count;
    }
  
  printf("%d\n", answer);
  
  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(){
  int n;
  long h[100005];
  int i;
  int count = 0;
  int answer = 0;
  
  scanf("%d", &n);
  for(i = 0; i < n; i++)
    scanf("%ld", &h[i]);
  
  for(i = 0; i < n - 1; i++){
    if(h[i] >= h[i + 1]){
      count++;
    }
    else{
      if(count > answer){
        answer = count;
      }
      count = 0;
    }
  }
    
    if(count > answer){
      answer = count;
    }
  
  printf("%d\n", answer);
  
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1344, %rsp
	.cfi_def_cfa_offset 800096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$8, %rbp
	cmpl	%ebx, %edx
	jg	.L3
	cmpl	$1, %edx
	jle	.L9
	subl	$2, %edx
	movq	16(%rsp), %rcx
	leaq	24(%rsp), %rax
	xorl	%edi, %edi
	leaq	32(%rsp,%rdx,8), %r8
	xorl	%edx, %edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$8, %rax
	addl	$1, %edx
	cmpq	%r8, %rax
	je	.L2
.L6:
	movq	%rcx, %rsi
	movq	(%rax), %rcx
	cmpq	%rcx, %rsi
	jge	.L14
	cmpl	%edx, %edi
	cmovl	%edx, %edi
	addq	$8, %rax
	xorl	%edx, %edx
	cmpq	%r8, %rax
	jne	.L6
.L2:
	cmpl	%edi, %edx
	leaq	.LC2(%rip), %rsi
	cmovl	%edi, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$800064, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L2
.L15:
	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"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1344, %rsp
	.cfi_def_cfa_offset 800096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L9
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$8, %rbp
	cmpl	%ebx, %edx
	jg	.L3
	cmpl	$1, %edx
	jle	.L9
	subl	$2, %edx
	movq	16(%rsp), %rcx
	leaq	24(%rsp), %rax
	xorl	%edi, %edi
	leaq	32(%rsp,%rdx,8), %r8
	xorl	%edx, %edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$8, %rax
	addl	$1, %edx
	cmpq	%r8, %rax
	je	.L2
.L6:
	movq	%rcx, %rsi
	movq	(%rax), %rcx
	cmpq	%rcx, %rsi
	jge	.L14
	cmpl	%edx, %edi
	cmovl	%edx, %edi
	addq	$8, %rax
	xorl	%edx, %edx
	cmpq	%r8, %rax
	jne	.L6
.L2:
	cmpl	%edi, %edx
	leaq	.LC2(%rip), %rsi
	cmovl	%edi, %edx
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$800064, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L2
.L15:
	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:
```