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(void)
{
    int N, i, j, t=0, t2=9999999;
    scanf("%d", &N);
    int X[N];
    
    for(i=0; i<N; i++) {
        scanf("%d", &X[i]);
    }

    for(i=1; i<100; i++) {
        t = 0;
        for(j=0; j<N; j++) {
            t += (i-X[j])*(i-X[j]);
        }
        if(t2 > t) {
            t2 = t;
        }
    }

    printf("%d\n", t2);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rdx
	movq	%rax, %r8
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L24
.L4:
	movq	%rsp, %rbx
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L6
.L5:
	movl	%r8d, %eax
	movl	%r8d, %r10d
	leal	-1(%r8), %r11d
	movl	$9999999, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	movl	$1, %edx
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	testl	%r8d, %r8d
	jle	.L13
	cmpl	$2, %r11d
	jbe	.L15
	movd	%edx, %xmm5
	movq	%rbx, %rax
	pxor	%xmm2, %xmm2
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L9:
	movdqu	(%rax), %xmm4
	movdqa	%xmm3, %xmm0
	addq	$16, %rax
	psubd	%xmm4, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rcx, %rax
	jne	.L9
	movdqa	%xmm2, %xmm0
	movl	%r10d, %esi
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r10d, %r8d
	je	.L13
.L8:
	movslq	%esi, %rdi
	leaq	(%rbx,%rdi,4), %r12
	movl	%edx, %edi
	subl	(%r12), %edi
	imull	%edi, %edi
	addl	%edi, %eax
	leal	1(%rsi), %edi
	cmpl	%edi, %r8d
	jle	.L13
	movl	%edx, %edi
	subl	4(%r12), %edi
	addl	$2, %esi
	imull	%edi, %edi
	addl	%edi, %eax
	cmpl	%esi, %r8d
	jle	.L13
	movl	%edx, %esi
	subl	8(%r12), %esi
	imull	%esi, %esi
	addl	%esi, %eax
.L13:
	cmpl	%eax, %r9d
	cmovg	%eax, %r9d
	addl	$1, %edx
	cmpl	$100, %edx
	jne	.L7
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	.L8
.L24:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L25:
	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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rdx
	movq	%rax, %r8
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L24
.L4:
	movq	%rsp, %rbx
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L6
.L5:
	movl	%r8d, %eax
	movl	%r8d, %r10d
	leal	-1(%r8), %r11d
	movl	$9999999, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	movl	$1, %edx
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	testl	%r8d, %r8d
	jle	.L13
	cmpl	$2, %r11d
	jbe	.L15
	movd	%edx, %xmm5
	movq	%rbx, %rax
	pxor	%xmm2, %xmm2
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L9:
	movdqu	(%rax), %xmm4
	movdqa	%xmm3, %xmm0
	addq	$16, %rax
	psubd	%xmm4, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rcx, %rax
	jne	.L9
	movdqa	%xmm2, %xmm0
	movl	%r10d, %esi
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r10d, %r8d
	je	.L13
.L8:
	movslq	%esi, %rdi
	leaq	(%rbx,%rdi,4), %r12
	movl	%edx, %edi
	subl	(%r12), %edi
	imull	%edi, %edi
	addl	%edi, %eax
	leal	1(%rsi), %edi
	cmpl	%edi, %r8d
	jle	.L13
	movl	%edx, %edi
	subl	4(%r12), %edi
	addl	$2, %esi
	imull	%edi, %edi
	addl	%edi, %eax
	cmpl	%esi, %r8d
	jle	.L13
	movl	%edx, %esi
	subl	8(%r12), %esi
	imull	%esi, %esi
	addl	%esi, %eax
.L13:
	cmpl	%eax, %r9d
	cmovg	%eax, %r9d
	addl	$1, %edx
	cmpl	$100, %edx
	jne	.L7
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	.L8
.L24:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L25:
	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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rdx
	movq	%rax, %r8
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L24
.L4:
	movq	%rsp, %rbx
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L6
.L5:
	movl	%r8d, %eax
	movl	%r8d, %r10d
	leal	-1(%r8), %r11d
	movl	$9999999, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	movl	$1, %edx
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	testl	%r8d, %r8d
	jle	.L13
	cmpl	$2, %r11d
	jbe	.L15
	movd	%edx, %xmm5
	movq	%rbx, %rax
	pxor	%xmm2, %xmm2
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L9:
	movdqu	(%rax), %xmm4
	movdqa	%xmm3, %xmm0
	addq	$16, %rax
	psubd	%xmm4, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rcx, %rax
	jne	.L9
	movdqa	%xmm2, %xmm0
	movl	%r10d, %esi
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r10d, %r8d
	je	.L13
.L8:
	movslq	%esi, %rdi
	leaq	(%rbx,%rdi,4), %r12
	movl	%edx, %edi
	subl	(%r12), %edi
	imull	%edi, %edi
	addl	%edi, %eax
	leal	1(%rsi), %edi
	cmpl	%edi, %r8d
	jle	.L13
	movl	%edx, %edi
	subl	4(%r12), %edi
	addl	$2, %esi
	imull	%edi, %edi
	addl	%edi, %eax
	cmpl	%esi, %r8d
	jle	.L13
	movl	%edx, %esi
	subl	8(%r12), %esi
	imull	%esi, %esi
	addl	%esi, %eax
.L13:
	cmpl	%eax, %r9d
	cmovg	%eax, %r9d
	addl	$1, %edx
	cmpl	$100, %edx
	jne	.L7
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	.L8
.L24:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L25:
	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(void)
{
    int N, i, j, t=0, t2=9999999;
    scanf("%d", &N);
    int X[N];
    
    for(i=0; i<N; i++) {
        scanf("%d", &X[i]);
    }

    for(i=1; i<100; i++) {
        t = 0;
        for(j=0; j<N; j++) {
            t += (i-X[j])*(i-X[j]);
        }
        if(t2 > t) {
            t2 = t;
        }
    }

    printf("%d\n", t2);

    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(void)
{
    int N, i, j, t=0, t2=9999999;
    scanf("%d", &N);
    int X[N];
    
    for(i=0; i<N; i++) {
        scanf("%d", &X[i]);
    }

    for(i=1; i<100; i++) {
        t = 0;
        for(j=0; j<N; j++) {
            t += (i-X[j])*(i-X[j]);
        }
        if(t2 > t) {
            t2 = t;
        }
    }

    printf("%d\n", t2);

    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:

7
14 14 3 13 56 2 37
 2
0 4
 7
14 14 3 13 56 2 0
 2
0 1
 7
14 14 3 12 56 2 0
 7
19 14 3 12 56 2 0
 7
19 14 3 24 56 2 0
 7
11 14 3 24 56 2 0
 7
11 14 3 24 56 1 0
 7
11 14 3 33 56 1 0

2319
 8
 2225
 1
 2229
 2245
 2293
 2314
 2343
 2563

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(void)
{
    int N, i, j, t=0, t2=9999999;
    scanf("%d", &N);
    int X[N];
    
    for(i=0; i<N; i++) {
        scanf("%d", &X[i]);
    }

    for(i=1; i<100; i++) {
        t = 0;
        for(j=0; j<N; j++) {
            t += (i-X[j])*(i-X[j]);
        }
        if(t2 > t) {
            t2 = t;
        }
    }

    printf("%d\n", t2);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rdx
	movq	%rax, %r8
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L24
.L4:
	movq	%rsp, %rbx
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L6
.L5:
	movl	%r8d, %eax
	movl	%r8d, %r10d
	leal	-1(%r8), %r11d
	movl	$9999999, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	movl	$1, %edx
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	testl	%r8d, %r8d
	jle	.L13
	cmpl	$2, %r11d
	jbe	.L15
	movd	%edx, %xmm5
	movq	%rbx, %rax
	pxor	%xmm2, %xmm2
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L9:
	movdqu	(%rax), %xmm4
	movdqa	%xmm3, %xmm0
	addq	$16, %rax
	psubd	%xmm4, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rcx, %rax
	jne	.L9
	movdqa	%xmm2, %xmm0
	movl	%r10d, %esi
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r10d, %r8d
	je	.L13
.L8:
	movslq	%esi, %rdi
	leaq	(%rbx,%rdi,4), %r12
	movl	%edx, %edi
	subl	(%r12), %edi
	imull	%edi, %edi
	addl	%edi, %eax
	leal	1(%rsi), %edi
	cmpl	%edi, %r8d
	jle	.L13
	movl	%edx, %edi
	subl	4(%r12), %edi
	addl	$2, %esi
	imull	%edi, %edi
	addl	%edi, %eax
	cmpl	%esi, %r8d
	jle	.L13
	movl	%edx, %esi
	subl	8(%r12), %esi
	imull	%esi, %esi
	addl	%esi, %eax
.L13:
	cmpl	%eax, %r9d
	cmovg	%eax, %r9d
	addl	$1, %edx
	cmpl	$100, %edx
	jne	.L7
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	.L8
.L24:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L25:
	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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rdx
	movq	%rax, %r8
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L24
.L4:
	movq	%rsp, %rbx
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L6
.L5:
	movl	%r8d, %eax
	movl	%r8d, %r10d
	leal	-1(%r8), %r11d
	movl	$9999999, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	movl	$1, %edx
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbx,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	testl	%r8d, %r8d
	jle	.L13
	cmpl	$2, %r11d
	jbe	.L15
	movd	%edx, %xmm5
	movq	%rbx, %rax
	pxor	%xmm2, %xmm2
	pshufd	$0, %xmm5, %xmm3
	.p2align 4,,10
	.p2align 3
.L9:
	movdqu	(%rax), %xmm4
	movdqa	%xmm3, %xmm0
	addq	$16, %rax
	psubd	%xmm4, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rcx, %rax
	jne	.L9
	movdqa	%xmm2, %xmm0
	movl	%r10d, %esi
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r10d, %r8d
	je	.L13
.L8:
	movslq	%esi, %rdi
	leaq	(%rbx,%rdi,4), %r12
	movl	%edx, %edi
	subl	(%r12), %edi
	imull	%edi, %edi
	addl	%edi, %eax
	leal	1(%rsi), %edi
	cmpl	%edi, %r8d
	jle	.L13
	movl	%edx, %edi
	subl	4(%r12), %edi
	addl	$2, %esi
	imull	%edi, %edi
	addl	%edi, %eax
	cmpl	%esi, %r8d
	jle	.L13
	movl	%edx, %esi
	subl	8(%r12), %esi
	imull	%esi, %esi
	addl	%esi, %eax
.L13:
	cmpl	%eax, %r9d
	cmovg	%eax, %r9d
	addl	$1, %edx
	cmpl	$100, %edx
	jne	.L7
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	.L8
.L24:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L25:
	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:
```