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

```c
#include<stdio.h>
#include<stdlib.h>

int main() {

	int m,nmin,nmax;
	int *p;
	int a,n;
	int w=0;
	int answer[1000];
	int i;

	for(;;) {
		scanf("%d %d %d",&m,&nmin,&nmax);
		if(m==0&&nmin==0&&nmax==0)
			break;
		p=(int *)malloc(m * sizeof(int));
		for(i=0;i<m;i++)
			scanf("%d",&p[i]);

		a=0;
		n=0;
		for(i=nmin-1;i<nmax;i++) {
			if(a<=p[i]-p[i+1]) {
				a=p[i]-p[i+1];
				n=i+1;
			}
		}
		answer[w]=n;
		w++;
		free(p);
	}

	for(i=0;i<w;i++)
		printf("%d\n",answer[i]);

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -4032(%rbp)
.L9:
	leaq	-4044(%rbp), %rcx
	leaq	-4048(%rbp), %rdx
	leaq	-4052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4052(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-4048(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-4044(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	-4052(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -4024(%rbp)
	movl	$0, -4028(%rbp)
	jmp	.L4
.L5:
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4028(%rbp)
.L4:
	movl	-4052(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L5
	movl	$0, -4040(%rbp)
	movl	$0, -4036(%rbp)
	movl	-4048(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4028(%rbp)
	jmp	.L6
.L8:
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4028(%rbp), %edx
	movslq	%edx, %rdx
	addq	$1, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-4024(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	%eax, -4040(%rbp)
	jg	.L7
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4028(%rbp), %edx
	movslq	%edx, %rdx
	addq	$1, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-4024(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -4040(%rbp)
	movl	-4028(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4036(%rbp)
.L7:
	addl	$1, -4028(%rbp)
.L6:
	movl	-4044(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L8
	movl	-4032(%rbp), %eax
	cltq
	movl	-4036(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
	addl	$1, -4032(%rbp)
	movq	-4024(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	jmp	.L9
.L15:
	nop
	movl	$0, -4028(%rbp)
	jmp	.L10
.L11:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4028(%rbp)
.L10:
	movl	-4028(%rbp), %eax
	cmpl	-4032(%rbp), %eax
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$4072, %rsp
	.cfi_def_cfa_offset 4128
	movq	%fs:40, %rax
	movq	%rax, 4056(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	leaq	44(%rsp), %r15
	movq	%rax, 16(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r13d
	testl	%r13d, %r13d
	jne	.L2
	movl	40(%rsp), %r8d
	movl	44(%rsp), %edx
	movl	%r8d, %eax
	orl	%edx, %eax
	je	.L22
	xorl	%edi, %edi
	movl	%edx, 28(%rsp)
	movl	%r8d, 24(%rsp)
	call	malloc@PLT
	movl	24(%rsp), %r8d
	movl	28(%rsp), %edx
	movq	%rax, %rbp
	cmpl	%edx, %r8d
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%r8d, %rsi
	movl	%edx, %edi
	xorl	%r9d, %r9d
	subl	%r8d, %edi
	leaq	1(%rsi), %rdx
	movl	-4(%rbp,%rsi,4), %ecx
	xorl	%r8d, %r8d
	addq	%rdx, %rdi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rdx
.L10:
	movl	%ecx, %eax
	movl	0(%rbp,%rsi,4), %ecx
	subl	%ecx, %eax
	cmpl	%r8d, %eax
	jl	.L9
	movl	%esi, %r9d
	movl	%eax, %r8d
.L9:
	movq	%rdx, %rsi
	cmpq	%rdx, %rdi
	jne	.L23
.L8:
	movq	%rbp, %rdi
	movl	%r9d, 48(%rsp,%r12,4)
	addq	$1, %r12
	call	free@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	movslq	%r13d, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	%rax, %rbp
	testl	%r13d, %r13d
	jle	.L5
	movq	%rax, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	addq	$4, %r14
	cmpl	%r13d, 36(%rsp)
	jg	.L6
.L5:
	movl	40(%rsp), %r8d
	movl	44(%rsp), %edx
	cmpl	%edx, %r8d
	jle	.L24
.L15:
	xorl	%r9d, %r9d
	jmp	.L8
.L22:
	testl	%r12d, %r12d
	je	.L13
	leal	-1(%r12), %eax
	leaq	48(%rsp), %rbx
	leaq	52(%rsp,%rax,4), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L12
.L13:
	movq	4056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$4072, %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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$4072, %rsp
	.cfi_def_cfa_offset 4128
	movq	%fs:40, %rax
	movq	%rax, 4056(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	leaq	44(%rsp), %r15
	movq	%rax, 16(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r13d
	testl	%r13d, %r13d
	jne	.L2
	movl	40(%rsp), %r8d
	movl	44(%rsp), %edx
	movl	%r8d, %eax
	orl	%edx, %eax
	je	.L22
	xorl	%edi, %edi
	movl	%edx, 28(%rsp)
	movl	%r8d, 24(%rsp)
	call	malloc@PLT
	movl	24(%rsp), %r8d
	movl	28(%rsp), %edx
	movq	%rax, %rbp
	cmpl	%edx, %r8d
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%r8d, %rsi
	movl	%edx, %edi
	xorl	%r9d, %r9d
	subl	%r8d, %edi
	leaq	1(%rsi), %rdx
	movl	-4(%rbp,%rsi,4), %ecx
	xorl	%r8d, %r8d
	addq	%rdx, %rdi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rdx
.L10:
	movl	%ecx, %eax
	movl	0(%rbp,%rsi,4), %ecx
	subl	%ecx, %eax
	cmpl	%r8d, %eax
	jl	.L9
	movl	%esi, %r9d
	movl	%eax, %r8d
.L9:
	movq	%rdx, %rsi
	cmpq	%rdx, %rdi
	jne	.L23
.L8:
	movq	%rbp, %rdi
	movl	%r9d, 48(%rsp,%r12,4)
	addq	$1, %r12
	call	free@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	movslq	%r13d, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	%rax, %rbp
	testl	%r13d, %r13d
	jle	.L5
	movq	%rax, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	addq	$4, %r14
	cmpl	%r13d, 36(%rsp)
	jg	.L6
.L5:
	movl	40(%rsp), %r8d
	movl	44(%rsp), %edx
	cmpl	%edx, %r8d
	jle	.L24
.L15:
	xorl	%r9d, %r9d
	jmp	.L8
.L22:
	testl	%r12d, %r12d
	je	.L13
	leal	-1(%r12), %eax
	leaq	48(%rsp), %rbx
	leaq	52(%rsp,%rax,4), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L12
.L13:
	movq	4056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$4072, %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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:

#include<stdio.h>
#include<stdlib.h>

int main() {

	int m,nmin,nmax;
	int *p;
	int a,n;
	int w=0;
	int answer[1000];
	int i;

	for(;;) {
		scanf("%d %d %d",&m,&nmin,&nmax);
		if(m==0&&nmin==0&&nmax==0)
			break;
		p=(int *)malloc(m * sizeof(int));
		for(i=0;i<m;i++)
			scanf("%d",&p[i]);

		a=0;
		n=0;
		for(i=nmin-1;i<nmax;i++) {
			if(a<=p[i]-p[i+1]) {
				a=p[i]-p[i+1];
				n=i+1;
			}
		}
		answer[w]=n;
		w++;
		free(p);
	}

	for(i=0;i<w;i++)
		printf("%d\n",answer[i]);

	return 0;
}
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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>

int main() {

	int m,nmin,nmax;
	int *p;
	int a,n;
	int w=0;
	int answer[1000];
	int i;

	for(;;) {
		scanf("%d %d %d",&m,&nmin,&nmax);
		if(m==0&&nmin==0&&nmax==0)
			break;
		p=(int *)malloc(m * sizeof(int));
		for(i=0;i<m;i++)
			scanf("%d",&p[i]);

		a=0;
		n=0;
		for(i=nmin-1;i<nmax;i++) {
			if(a<=p[i]-p[i+1]) {
				a=p[i]-p[i+1];
				n=i+1;
			}
		}
		answer[w]=n;
		w++;
		free(p);
	}

	for(i=0;i<w;i++)
		printf("%d\n",answer[i]);

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -4032(%rbp)
.L9:
	leaq	-4044(%rbp), %rcx
	leaq	-4048(%rbp), %rdx
	leaq	-4052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4052(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-4048(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-4044(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	-4052(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -4024(%rbp)
	movl	$0, -4028(%rbp)
	jmp	.L4
.L5:
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4028(%rbp)
.L4:
	movl	-4052(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L5
	movl	$0, -4040(%rbp)
	movl	$0, -4036(%rbp)
	movl	-4048(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4028(%rbp)
	jmp	.L6
.L8:
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4028(%rbp), %edx
	movslq	%edx, %rdx
	addq	$1, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-4024(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	%eax, -4040(%rbp)
	jg	.L7
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4028(%rbp), %edx
	movslq	%edx, %rdx
	addq	$1, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-4024(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -4040(%rbp)
	movl	-4028(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4036(%rbp)
.L7:
	addl	$1, -4028(%rbp)
.L6:
	movl	-4044(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L8
	movl	-4032(%rbp), %eax
	cltq
	movl	-4036(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
	addl	$1, -4032(%rbp)
	movq	-4024(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	jmp	.L9
.L15:
	nop
	movl	$0, -4028(%rbp)
	jmp	.L10
.L11:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4028(%rbp)
.L10:
	movl	-4028(%rbp), %eax
	cmpl	-4032(%rbp), %eax
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -4032(%rbp)
.L9:
	leaq	-4044(%rbp), %rcx
	leaq	-4048(%rbp), %rdx
	leaq	-4052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4052(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-4048(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-4044(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	-4052(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -4024(%rbp)
	movl	$0, -4028(%rbp)
	jmp	.L4
.L5:
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4028(%rbp)
.L4:
	movl	-4052(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L5
	movl	$0, -4040(%rbp)
	movl	$0, -4036(%rbp)
	movl	-4048(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -4028(%rbp)
	jmp	.L6
.L8:
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4028(%rbp), %edx
	movslq	%edx, %rdx
	addq	$1, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-4024(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cmpl	%eax, -4040(%rbp)
	jg	.L7
	movl	-4028(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-4024(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4028(%rbp), %edx
	movslq	%edx, %rdx
	addq	$1, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-4024(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -4040(%rbp)
	movl	-4028(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4036(%rbp)
.L7:
	addl	$1, -4028(%rbp)
.L6:
	movl	-4044(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L8
	movl	-4032(%rbp), %eax
	cltq
	movl	-4036(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
	addl	$1, -4032(%rbp)
	movq	-4024(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	jmp	.L9
.L15:
	nop
	movl	$0, -4028(%rbp)
	jmp	.L10
.L11:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4028(%rbp)
.L10:
	movl	-4028(%rbp), %eax
	cmpl	-4032(%rbp), %eax
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
