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>
#include <memory.h>
int main(void){
  int m,na,nb,p[201]={},i,max,ans;
  while(scanf("%d %d %d",&m,&na,&nb),m+na+nb){
    memset(p,0,sizeof(int)*201);
    for(i=1;i<=m;i++)
      scanf("%d",&p[i]);
    max=p[na]-p[na+1];
    ans=na;
    for(i=na;i<=nb;i++){
      if(max<=p[i]-p[i+1]){
	max=p[i]-p[i+1];
	ans=i;
      }
    }
    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"
.LC2:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rbx
	leaq	28(%rsp), %r15
	movq	%rbx, %rdi
	leaq	24(%rsp), %r14
	rep stosq
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
	leal	(%rdx,%r8), %eax
	addl	%esi, %eax
	je	.L18
	movl	$100, %ecx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	36(%rsp), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addq	$4, %r13
	cmpl	%r12d, 20(%rsp)
	jge	.L4
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
.L3:
	cmpl	%esi, %r8d
	jg	.L6
	leal	1(%r8), %edx
	movslq	%r8d, %rcx
	movslq	%edx, %rax
	movl	32(%rsp,%rcx,4), %edi
	subl	32(%rsp,%rax,4), %edi
	cmpl	%esi, %edx
	jg	.L6
	movl	36(%rsp,%rcx,4), %ecx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ecx, %edx
	movl	4(%rbx,%rax,4), %ecx
	subl	%ecx, %edx
	cmpl	%edi, %edx
	jl	.L7
	movl	%eax, %r8d
	movl	%edx, %edi
.L7:
	addq	$1, %rax
	cmpl	%eax, %esi
	jge	.L8
.L6:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC2:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rbx
	leaq	28(%rsp), %r15
	movq	%rbx, %rdi
	leaq	24(%rsp), %r14
	rep stosq
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
	leal	(%rdx,%r8), %eax
	addl	%esi, %eax
	je	.L18
	movl	$100, %ecx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	36(%rsp), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addq	$4, %r13
	cmpl	%r12d, 20(%rsp)
	jge	.L4
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
.L3:
	cmpl	%esi, %r8d
	jg	.L6
	leal	1(%r8), %edx
	movslq	%r8d, %rcx
	movslq	%edx, %rax
	movl	32(%rsp,%rcx,4), %edi
	subl	32(%rsp,%rax,4), %edi
	cmpl	%esi, %edx
	jg	.L6
	movl	36(%rsp,%rcx,4), %ecx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ecx, %edx
	movl	4(%rbx,%rax,4), %ecx
	subl	%ecx, %edx
	cmpl	%edi, %edx
	jl	.L7
	movl	%eax, %r8d
	movl	%edx, %edi
.L7:
	addq	$1, %rax
	cmpl	%eax, %esi
	jge	.L8
.L6:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC2:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rbx
	leaq	28(%rsp), %r15
	movq	%rbx, %rdi
	leaq	24(%rsp), %r14
	rep stosq
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
	leal	(%rdx,%r8), %eax
	addl	%esi, %eax
	je	.L18
	movl	$100, %ecx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	36(%rsp), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addq	$4, %r13
	cmpl	%r12d, 20(%rsp)
	jge	.L4
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
.L3:
	cmpl	%esi, %r8d
	jg	.L6
	leal	1(%r8), %edx
	movslq	%r8d, %rcx
	movslq	%edx, %rax
	movl	32(%rsp,%rcx,4), %edi
	subl	32(%rsp,%rax,4), %edi
	cmpl	%esi, %edx
	jg	.L6
	movl	36(%rsp,%rcx,4), %ecx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ecx, %edx
	movl	4(%rbx,%rax,4), %ecx
	subl	%ecx, %edx
	cmpl	%edi, %edx
	jl	.L7
	movl	%eax, %r8d
	movl	%edx, %edi
.L7:
	addq	$1, %rax
	cmpl	%eax, %esi
	jge	.L8
.L6:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include <memory.h>
int main(void){
  int m,na,nb,p[201]={},i,max,ans;
  while(scanf("%d %d %d",&m,&na,&nb),m+na+nb){
    memset(p,0,sizeof(int)*201);
    for(i=1;i<=m;i++)
      scanf("%d",&p[i]);
    max=p[na]-p[na+1];
    ans=na;
    for(i=na;i<=nb;i++){
      if(max<=p[i]-p[i+1]){
	max=p[i]-p[i+1];
	ans=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>
#include <memory.h>
int main(void){
  int m,na,nb,p[201]={},i,max,ans;
  while(scanf("%d %d %d",&m,&na,&nb),m+na+nb){
    memset(p,0,sizeof(int)*201);
    for(i=1;i<=m;i++)
      scanf("%d",&p[i]);
    max=p[na]-p[na+1];
    ans=na;
    for(i=na;i<=nb;i++){
      if(max<=p[i]-p[i+1]){
	max=p[i]-p[i+1];
	ans=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:

5 2 4
100
90
82
70
65
5 2 4
100
90
80
75
65
3 1 2
5000
6502
3000
4 2 3
10000
10000
8000
8000
4 2 3
10000
10000
10000
8000
5 2 3
100
80
68
60
45
0 0 0
 5 2 4
100
90
82
94
65
5 2 4
100
90
80
144
65
3 1 2
5000
6502
3000
4 2 3
10000
10000
8000
8000
4 1 3
10000
10000
10000
8000
5 2 3
100
80
68
60
45
0 0 0
 5 2 3
100
90
82
70
65
5 2 4
100
90
25
144
65
3 1 2
5000
6502
3000
4 2 3
10000
10000
8000
8000
4 1 3
10000
10000
10000
8000
5 2 3
100
80
68
29
45
0 0 0
 5 2 4
100
90
82
70
65
5 2 4
100
170
80
75
65
3 1 2
5000
6502
3000
4 2 3
10000
10100
8000
8000
4 2 3
10000
10000
10000
8000
5 2 3
100
80
68
60
66
0 0 0
 5 2 3
100
161
82
70
65
5 2 4
100
90
25
144
65
3 1 2
5000
6502
3000
4 2 3
10000
10000
8000
8000
4 1 3
10000
10000
10000
8000
5 2 3
100
80
68
29
12
0 0 0
 5 2 4
100
90
82
70
65
5 2 4
100
90
80
144
65
3 1 2
5000
6502
3000
4 2 3
10000
10000
8000
8000
4 1 3
10000
10000
10000
8000
5 1 3
100
80
68
60
45
0 0 0
 5 2 3
100
90
82
70
65
5 2 4
100
90
25
144
65
3 1 2
5000
6502
3000
4 2 3
10000
10000
8000
4583
4 1 3
10000
10000
10000
8000
5 2 3
100
80
68
60
45
0 0 0
 5 2 4
100
90
82
70
65
5 4 4
100
90
80
115
65
3 1 2
5784
4000
3000
4 2 3
10000
10000
8000
8000
4 2 3
10000
10000
10000
8000
5 2 3
100
80
68
60
45
0 0 0
 5 2 4
100
90
82
70
65
5 2 4
100
170
80
75
65
3 1 2
5000
6502
3000
4 2 3
10000
10100
8000
8000
4 2 3
10000
10000
10000
8000
5 2 3
100
80
136
60
111
0 0 0
 5 2 4
100
90
82
70
13
5 4 4
100
90
80
115
65
3 1 2
5784
4000
3000
4 2 3
10000
10000
8000
8000
4 2 3
10000
10000
10000
8000
5 2 3
100
80
68
60
45
0 0 0

3
4
2
2
3
2
 4
4
2
2
3
2
 3
4
2
2
3
3
 3
2
2
2
3
2
 2
4
2
2
3
3
 3
4
2
2
3
1
 3
4
2
3
3
2
 3
4
1
2
3
2
 3
2
2
2
3
3
 4
4
1
2
3
2

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>
#include <memory.h>
int main(void){
  int m,na,nb,p[201]={},i,max,ans;
  while(scanf("%d %d %d",&m,&na,&nb),m+na+nb){
    memset(p,0,sizeof(int)*201);
    for(i=1;i<=m;i++)
      scanf("%d",&p[i]);
    max=p[na]-p[na+1];
    ans=na;
    for(i=na;i<=nb;i++){
      if(max<=p[i]-p[i+1]){
	max=p[i]-p[i+1];
	ans=i;
      }
    }
    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"
.LC2:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rbx
	leaq	28(%rsp), %r15
	movq	%rbx, %rdi
	leaq	24(%rsp), %r14
	rep stosq
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
	leal	(%rdx,%r8), %eax
	addl	%esi, %eax
	je	.L18
	movl	$100, %ecx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	36(%rsp), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addq	$4, %r13
	cmpl	%r12d, 20(%rsp)
	jge	.L4
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
.L3:
	cmpl	%esi, %r8d
	jg	.L6
	leal	1(%r8), %edx
	movslq	%r8d, %rcx
	movslq	%edx, %rax
	movl	32(%rsp,%rcx,4), %edi
	subl	32(%rsp,%rax,4), %edi
	cmpl	%esi, %edx
	jg	.L6
	movl	36(%rsp,%rcx,4), %ecx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ecx, %edx
	movl	4(%rbx,%rax,4), %ecx
	subl	%ecx, %edx
	cmpl	%edi, %edx
	jl	.L7
	movl	%eax, %r8d
	movl	%edx, %edi
.L7:
	addq	$1, %rax
	cmpl	%eax, %esi
	jge	.L8
.L6:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC2:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rbx
	leaq	28(%rsp), %r15
	movq	%rbx, %rdi
	leaq	24(%rsp), %r14
	rep stosq
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %edx
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
	leal	(%rdx,%r8), %eax
	addl	%esi, %eax
	je	.L18
	movl	$100, %ecx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	36(%rsp), %r13
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addq	$4, %r13
	cmpl	%r12d, 20(%rsp)
	jge	.L4
	movl	24(%rsp), %r8d
	movl	28(%rsp), %esi
.L3:
	cmpl	%esi, %r8d
	jg	.L6
	leal	1(%r8), %edx
	movslq	%r8d, %rcx
	movslq	%edx, %rax
	movl	32(%rsp,%rcx,4), %edi
	subl	32(%rsp,%rax,4), %edi
	cmpl	%esi, %edx
	jg	.L6
	movl	36(%rsp,%rcx,4), %ecx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%ecx, %edx
	movl	4(%rbx,%rax,4), %ecx
	subl	%ecx, %edx
	cmpl	%edi, %edx
	jl	.L7
	movl	%eax, %r8d
	movl	%edx, %edi
.L7:
	addq	$1, %rax
	cmpl	%eax, %esi
	jge	.L8
.L6:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```