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,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;
}
		```

Assembly Code:

```assembly
	.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:
```

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 %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
```assembly
	.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:
```
```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;
}
		```
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,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;
}
		```

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:

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 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;
}
		```

Assembly Code:

```assembly
	.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:
```

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 %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:
```