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>

int main(){
	int N,A,B,C,D[100],a,b,c[100],d,i,j;
	
	scanf("%d",&N);
	scanf("%d %d",&A,&B);
	scanf("%d",&D[0]);
	for(i=1;i<=N;i++){
		scanf("%d",&D[i]);
	}
	for(i=0;i<100;i++){
		for(j=1;j<N;j++){
			if(D[j]<=D[j+1]){
			a=D[j];
			D[j]=D[j+1];
			D[j+1]=a;
			}
		}
	}
	b=0;
	d=0;
	for(i=0;i<=N;i++){
		b+=D[i];
		d=A+B*i;
		c[i]=b/d;
	}
	for(i=0;i<100;i++){
		for(j=0;j<N;j++){
			if(c[j]<=c[j+1]){
				a=c[j];
				c[j]=c[j+1];
				c[j+1]=a;
			}
		}
	}
	printf("%d\n",c[0]);
	return 0;
}
		```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-840(%rbp), %rdx
	leaq	-844(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-816(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -832(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-832(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -832(%rbp)
.L2:
	movl	-848(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jle	.L3
	movl	$0, -832(%rbp)
	jmp	.L4
.L8:
	movl	$1, -828(%rbp)
	jmp	.L5
.L7:
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L6
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -820(%rbp)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-820(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,4)
.L6:
	addl	$1, -828(%rbp)
.L5:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L7
	addl	$1, -832(%rbp)
.L4:
	cmpl	$99, -832(%rbp)
	jle	.L8
	movl	$0, -836(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -832(%rbp)
	jmp	.L9
.L10:
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	movl	-840(%rbp), %eax
	imull	-832(%rbp), %eax
	movl	%eax, %edx
	movl	-844(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -824(%rbp)
	movl	-836(%rbp), %eax
	cltd
	idivl	-824(%rbp)
	movl	%eax, %edx
	movl	-832(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -832(%rbp)
.L9:
	movl	-848(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jle	.L10
	movl	$0, -832(%rbp)
	jmp	.L11
.L15:
	movl	$0, -828(%rbp)
	jmp	.L12
.L14:
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L13
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -820(%rbp)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-820(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
.L13:
	addl	$1, -828(%rbp)
.L12:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L14
	addl	$1, -832(%rbp)
.L11:
	cmpl	$99, -832(%rbp)
	jle	.L15
	movl	-416(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$832, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %r12d
	movq	%rbp, %r13
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r9d
	addq	$4, %r13
	cmpl	%r12d, %r9d
	jge	.L3
	cmpl	$1, %r9d
	jle	.L2
	leal	-2(%r9), %eax
	movl	$100, %edi
	leaq	24(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rdx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jg	.L5
	movq	%xmm1, (%rdx)
.L5:
	addq	$4, %rdx
	cmpq	%rsi, %rdx
	jne	.L6
	subl	$1, %edi
	jne	.L7
.L8:
	leal	1(%r9), %r8d
	movl	12(%rsp), %r11d
	movl	8(%rsp), %edi
	xorl	%ecx, %ecx
	salq	$2, %r8
	xorl	%esi, %esi
	leaq	416(%rsp), %r10
.L11:
	addl	(%rbx,%rcx), %esi
	movl	%esi, %eax
	cltd
	idivl	%edi
	addl	%r11d, %edi
	movl	%eax, (%r10,%rcx)
	addq	$4, %rcx
	cmpq	%r8, %rcx
	jne	.L11
.L12:
	testl	%r9d, %r9d
	jle	.L9
	leal	-1(%r9), %eax
	leaq	416(%rsp), %r8
	movl	$100, %edi
	leaq	420(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r8, %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	(%rdx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %ecx
	movd	%xmm3, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jg	.L13
	movq	%xmm1, (%rdx)
.L13:
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	.L14
	subl	$1, %edi
	jne	.L10
.L9:
	movl	416(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$832, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testl	%r9d, %r9d
	js	.L12
	jmp	.L8
.L27:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$832, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %r12d
	movq	%rbp, %r13
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r9d
	addq	$4, %r13
	cmpl	%r12d, %r9d
	jge	.L3
	cmpl	$1, %r9d
	jle	.L2
	leal	-2(%r9), %eax
	movl	$100, %edi
	leaq	24(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rdx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jg	.L5
	movq	%xmm1, (%rdx)
.L5:
	addq	$4, %rdx
	cmpq	%rsi, %rdx
	jne	.L6
	subl	$1, %edi
	jne	.L7
.L8:
	leal	1(%r9), %r8d
	movl	12(%rsp), %r11d
	movl	8(%rsp), %edi
	xorl	%ecx, %ecx
	salq	$2, %r8
	xorl	%esi, %esi
	leaq	416(%rsp), %r10
.L11:
	addl	(%rbx,%rcx), %esi
	movl	%esi, %eax
	cltd
	idivl	%edi
	addl	%r11d, %edi
	movl	%eax, (%r10,%rcx)
	addq	$4, %rcx
	cmpq	%r8, %rcx
	jne	.L11
.L12:
	testl	%r9d, %r9d
	jle	.L9
	leal	-1(%r9), %eax
	leaq	416(%rsp), %r8
	movl	$100, %edi
	leaq	420(%rsp,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r8, %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	(%rdx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %ecx
	movd	%xmm3, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jg	.L13
	movq	%xmm1, (%rdx)
.L13:
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	.L14
	subl	$1, %edi
	jne	.L10
.L9:
	movl	416(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$832, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testl	%r9d, %r9d
	js	.L12
	jmp	.L8
.L27:
	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:

#include <stdio.h>

int main(){
	int N,A,B,C,D[100],a,b,c[100],d,i,j;
	
	scanf("%d",&N);
	scanf("%d %d",&A,&B);
	scanf("%d",&D[0]);
	for(i=1;i<=N;i++){
		scanf("%d",&D[i]);
	}
	for(i=0;i<100;i++){
		for(j=1;j<N;j++){
			if(D[j]<=D[j+1]){
			a=D[j];
			D[j]=D[j+1];
			D[j+1]=a;
			}
		}
	}
	b=0;
	d=0;
	for(i=0;i<=N;i++){
		b+=D[i];
		d=A+B*i;
		c[i]=b/d;
	}
	for(i=0;i<100;i++){
		for(j=0;j<N;j++){
			if(c[j]<=c[j+1]){
				a=c[j];
				c[j]=c[j+1];
				c[j+1]=a;
			}
		}
	}
	printf("%d\n",c[0]);
	return 0;
}
		
3
12 2
200
50
300
110
 3
17 2
200
73
300
110
 3
12 2
200
50
599
100
 3
12 2
200
73
575
110
 3
17 2
200
50
300
010
 3
17 2
63
50
300
010
 3
12 2
200
54
506
110
 3
17 2
38
50
300
010
 3
12 2
358
87
575
010
 3
12 2
200
54
383
110

38
 29
 57
 55
 26
 19
 51
 18
 66
 43

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>

int main(){
	int N,A,B,C,D[100],a,b,c[100],d,i,j;
	
	scanf("%d",&N);
	scanf("%d %d",&A,&B);
	scanf("%d",&D[0]);
	for(i=1;i<=N;i++){
		scanf("%d",&D[i]);
	}
	for(i=0;i<100;i++){
		for(j=1;j<N;j++){
			if(D[j]<=D[j+1]){
			a=D[j];
			D[j]=D[j+1];
			D[j+1]=a;
			}
		}
	}
	b=0;
	d=0;
	for(i=0;i<=N;i++){
		b+=D[i];
		d=A+B*i;
		c[i]=b/d;
	}
	for(i=0;i<100;i++){
		for(j=0;j<N;j++){
			if(c[j]<=c[j+1]){
				a=c[j];
				c[j]=c[j+1];
				c[j+1]=a;
			}
		}
	}
	printf("%d\n",c[0]);
	return 0;
}
		```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-840(%rbp), %rdx
	leaq	-844(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-816(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -832(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-832(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -832(%rbp)
.L2:
	movl	-848(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jle	.L3
	movl	$0, -832(%rbp)
	jmp	.L4
.L8:
	movl	$1, -828(%rbp)
	jmp	.L5
.L7:
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L6
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -820(%rbp)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-820(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,4)
.L6:
	addl	$1, -828(%rbp)
.L5:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L7
	addl	$1, -832(%rbp)
.L4:
	cmpl	$99, -832(%rbp)
	jle	.L8
	movl	$0, -836(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -832(%rbp)
	jmp	.L9
.L10:
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	movl	-840(%rbp), %eax
	imull	-832(%rbp), %eax
	movl	%eax, %edx
	movl	-844(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -824(%rbp)
	movl	-836(%rbp), %eax
	cltd
	idivl	-824(%rbp)
	movl	%eax, %edx
	movl	-832(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -832(%rbp)
.L9:
	movl	-848(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jle	.L10
	movl	$0, -832(%rbp)
	jmp	.L11
.L15:
	movl	$0, -828(%rbp)
	jmp	.L12
.L14:
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L13
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -820(%rbp)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-820(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
.L13:
	addl	$1, -828(%rbp)
.L12:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L14
	addl	$1, -832(%rbp)
.L11:
	cmpl	$99, -832(%rbp)
	jle	.L15
	movl	-416(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-840(%rbp), %rdx
	leaq	-844(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-816(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -832(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-832(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -832(%rbp)
.L2:
	movl	-848(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jle	.L3
	movl	$0, -832(%rbp)
	jmp	.L4
.L8:
	movl	$1, -828(%rbp)
	jmp	.L5
.L7:
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L6
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -820(%rbp)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-820(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,4)
.L6:
	addl	$1, -828(%rbp)
.L5:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L7
	addl	$1, -832(%rbp)
.L4:
	cmpl	$99, -832(%rbp)
	jle	.L8
	movl	$0, -836(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -832(%rbp)
	jmp	.L9
.L10:
	movl	-832(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	addl	%eax, -836(%rbp)
	movl	-840(%rbp), %eax
	imull	-832(%rbp), %eax
	movl	%eax, %edx
	movl	-844(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -824(%rbp)
	movl	-836(%rbp), %eax
	cltd
	idivl	-824(%rbp)
	movl	%eax, %edx
	movl	-832(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	addl	$1, -832(%rbp)
.L9:
	movl	-848(%rbp), %eax
	cmpl	%eax, -832(%rbp)
	jle	.L10
	movl	$0, -832(%rbp)
	jmp	.L11
.L15:
	movl	$0, -828(%rbp)
	jmp	.L12
.L14:
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jg	.L13
	movl	-828(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -820(%rbp)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-828(%rbp), %eax
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	movl	-828(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-820(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
.L13:
	addl	$1, -828(%rbp)
.L12:
	movl	-848(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L14
	addl	$1, -832(%rbp)
.L11:
	cmpl	$99, -832(%rbp)
	jle	.L15
	movl	-416(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
