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<math.h>
 
int main()
{
long long int N,l;
int a[100001]={0};
scanf("%lld",&N);
for(int i=1;i<=sqrt(N);i++)
{
    for(int j=1;j<=sqrt(N);j++)
    {
        for(int k=1;k<=sqrt(N);k++)
        {
            l=i*i+j*j+k*k+i*j+i*k+j*k;
          a[l]++;
        }
    }
}
for(int i=0;i<N;i++)
{
printf("%d\n",a[i+1]);
}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -400048(%rbp)
	jmp	.L2
.L7:
	movl	$1, -400044(%rbp)
	jmp	.L3
.L6:
	movl	$1, -400040(%rbp)
	jmp	.L4
.L5:
	movl	-400048(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-400044(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-400040(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-400048(%rbp), %eax
	imull	-400044(%rbp), %eax
	addl	%eax, %edx
	movl	-400048(%rbp), %eax
	imull	-400040(%rbp), %eax
	addl	%eax, %edx
	movl	-400044(%rbp), %eax
	imull	-400040(%rbp), %eax
	addl	%edx, %eax
	cltq
	movq	%rax, -400024(%rbp)
	movq	-400024(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movq	-400024(%rbp), %rax
	movl	%edx, -400016(%rbp,%rax,4)
	addl	$1, -400040(%rbp)
.L4:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-400040(%rbp), %xmm1
	movsd	%xmm1, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-400056(%rbp), %xmm3
	jnb	.L5
	addl	$1, -400044(%rbp)
.L3:
	pxor	%xmm4, %xmm4
	cvtsi2sdl	-400044(%rbp), %xmm4
	movsd	%xmm4, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm5, %xmm5
	cvtsi2sdq	%rax, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm6
	comisd	-400056(%rbp), %xmm6
	jnb	.L6
	addl	$1, -400048(%rbp)
.L2:
	pxor	%xmm7, %xmm7
	cvtsi2sdl	-400048(%rbp), %xmm7
	movsd	%xmm7, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-400056(%rbp), %xmm3
	jnb	.L7
	movl	$0, -400036(%rbp)
	jmp	.L8
.L9:
	movl	-400036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400036(%rbp)
.L8:
	movl	-400036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-400032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"%lld"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2760, %rsp
	.cfi_def_cfa_offset 400128
	movl	$400004, %edx
	xorl	%esi, %esi
	movl	$1, %r14d
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	40(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rax
	pxor	%xmm2, %xmm2
	movsd	.LC2(%rip), %xmm5
	pxor	%xmm4, %xmm4
	cvtsi2sdq	%rax, %xmm2
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	ucomisd	%xmm2, %xmm4
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r14d, %xmm1
	ja	.L38
	movapd	%xmm2, %xmm0
	sqrtsd	%xmm0, %xmm0
.L15:
	comisd	%xmm1, %xmm0
	jb	.L39
	movl	%r14d, %ebp
	movl	%r14d, %r15d
	movl	$1, %r12d
	imull	%r14d, %ebp
	.p2align 4,,10
	.p2align 3
.L18:
	ucomisd	%xmm2, %xmm4
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r12d, %xmm3
	ja	.L36
	movapd	%xmm2, %xmm1
	sqrtsd	%xmm1, %xmm1
	comisd	%xmm3, %xmm1
	jb	.L7
	movl	%r12d, %r13d
	imull	%r12d, %r13d
	addl	%ebp, %r13d
.L21:
	comisd	%xmm5, %xmm1
	movl	%r12d, %esi
	movl	%r14d, %ecx
	movl	$1, %edx
	jb	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %eax
	pxor	%xmm0, %xmm0
	imull	%edx, %eax
	addl	$1, %edx
	cvtsi2sdl	%edx, %xmm0
	addl	%r13d, %eax
	addl	%r15d, %eax
	addl	%ecx, %eax
	addl	%r14d, %ecx
	addl	%esi, %eax
	addl	%r12d, %esi
	cltq
	addl	$1, 48(%rsp,%rax,4)
	comisd	%xmm0, %xmm1
	jnb	.L3
.L11:
	addl	$1, %r12d
	addl	%r14d, %r15d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %r14d
	jmp	.L2
.L39:
	xorl	%r12d, %r12d
	cmpq	$0, (%rsp)
	leaq	.LC3(%rip), %r13
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L19:
	movl	4(%rbx,%r12,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpq	%r12, 40(%rsp)
	jg	.L19
.L20:
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$400072, %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
.L36:
	.cfi_restore_state
	movapd	%xmm2, %xmm0
	movsd	%xmm3, 16(%rsp)
	movsd	%xmm2, 8(%rsp)
	call	sqrt@PLT
	movsd	16(%rsp), %xmm3
	movq	.LC2(%rip), %rax
	pxor	%xmm4, %xmm4
	movsd	8(%rsp), %xmm2
	comisd	%xmm3, %xmm0
	movq	%rax, %xmm5
	jb	.L7
	movl	%r12d, %r13d
	imull	%r12d, %r13d
	addl	%ebp, %r13d
	ucomisd	%xmm2, %xmm4
	jbe	.L44
	movl	%r12d, %esi
	movl	%r14d, %ecx
	movl	$1, %edx
	jmp	.L9
.L45:
	movl	%edx, %eax
	movl	24(%rsp), %ecx
	movl	28(%rsp), %esi
	imull	%edx, %eax
	addl	$1, %edx
	addl	%r13d, %eax
	addl	%r15d, %eax
	addl	%ecx, %eax
	addl	%r14d, %ecx
	addl	%esi, %eax
	addl	%r12d, %esi
	cltq
	addl	$1, 48(%rsp,%rax,4)
.L9:
	movapd	%xmm2, %xmm0
	movl	%edx, 16(%rsp)
	movsd	%xmm2, 8(%rsp)
	movl	%esi, 28(%rsp)
	movl	%ecx, 24(%rsp)
	call	sqrt@PLT
	movl	16(%rsp), %edx
	movq	.LC2(%rip), %rax
	pxor	%xmm4, %xmm4
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	movsd	8(%rsp), %xmm2
	cvtsi2sdl	%edx, %xmm0
	movq	%rax, %xmm5
	comisd	%xmm0, %xmm1
	jnb	.L45
	jmp	.L11
.L38:
	movapd	%xmm2, %xmm0
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm2, 8(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movsd	16(%rsp), %xmm1
	pxor	%xmm4, %xmm4
	movsd	8(%rsp), %xmm2
	movq	%rax, %xmm5
	jmp	.L15
.L43:
	call	__stack_chk_fail@PLT
.L44:
	sqrtsd	%xmm2, %xmm1
	jmp	.L21
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.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	"%lld"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2760, %rsp
	.cfi_def_cfa_offset 400128
	movl	$400004, %edx
	xorl	%esi, %esi
	movl	$1, %r14d
	movq	%fs:40, %rax
	movq	%rax, 400056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	40(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rax
	pxor	%xmm2, %xmm2
	movsd	.LC2(%rip), %xmm5
	pxor	%xmm4, %xmm4
	cvtsi2sdq	%rax, %xmm2
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	ucomisd	%xmm2, %xmm4
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r14d, %xmm1
	ja	.L38
	movapd	%xmm2, %xmm0
	sqrtsd	%xmm0, %xmm0
.L15:
	comisd	%xmm1, %xmm0
	jb	.L39
	movl	%r14d, %ebp
	movl	%r14d, %r15d
	movl	$1, %r12d
	imull	%r14d, %ebp
	.p2align 4,,10
	.p2align 3
.L18:
	ucomisd	%xmm2, %xmm4
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%r12d, %xmm3
	ja	.L36
	movapd	%xmm2, %xmm1
	sqrtsd	%xmm1, %xmm1
	comisd	%xmm3, %xmm1
	jb	.L7
	movl	%r12d, %r13d
	imull	%r12d, %r13d
	addl	%ebp, %r13d
.L21:
	comisd	%xmm5, %xmm1
	movl	%r12d, %esi
	movl	%r14d, %ecx
	movl	$1, %edx
	jb	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%edx, %eax
	pxor	%xmm0, %xmm0
	imull	%edx, %eax
	addl	$1, %edx
	cvtsi2sdl	%edx, %xmm0
	addl	%r13d, %eax
	addl	%r15d, %eax
	addl	%ecx, %eax
	addl	%r14d, %ecx
	addl	%esi, %eax
	addl	%r12d, %esi
	cltq
	addl	$1, 48(%rsp,%rax,4)
	comisd	%xmm0, %xmm1
	jnb	.L3
.L11:
	addl	$1, %r12d
	addl	%r14d, %r15d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %r14d
	jmp	.L2
.L39:
	xorl	%r12d, %r12d
	cmpq	$0, (%rsp)
	leaq	.LC3(%rip), %r13
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L19:
	movl	4(%rbx,%r12,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpq	%r12, 40(%rsp)
	jg	.L19
.L20:
	movq	400056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$400072, %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
.L36:
	.cfi_restore_state
	movapd	%xmm2, %xmm0
	movsd	%xmm3, 16(%rsp)
	movsd	%xmm2, 8(%rsp)
	call	sqrt@PLT
	movsd	16(%rsp), %xmm3
	movq	.LC2(%rip), %rax
	pxor	%xmm4, %xmm4
	movsd	8(%rsp), %xmm2
	comisd	%xmm3, %xmm0
	movq	%rax, %xmm5
	jb	.L7
	movl	%r12d, %r13d
	imull	%r12d, %r13d
	addl	%ebp, %r13d
	ucomisd	%xmm2, %xmm4
	jbe	.L44
	movl	%r12d, %esi
	movl	%r14d, %ecx
	movl	$1, %edx
	jmp	.L9
.L45:
	movl	%edx, %eax
	movl	24(%rsp), %ecx
	movl	28(%rsp), %esi
	imull	%edx, %eax
	addl	$1, %edx
	addl	%r13d, %eax
	addl	%r15d, %eax
	addl	%ecx, %eax
	addl	%r14d, %ecx
	addl	%esi, %eax
	addl	%r12d, %esi
	cltq
	addl	$1, 48(%rsp,%rax,4)
.L9:
	movapd	%xmm2, %xmm0
	movl	%edx, 16(%rsp)
	movsd	%xmm2, 8(%rsp)
	movl	%esi, 28(%rsp)
	movl	%ecx, 24(%rsp)
	call	sqrt@PLT
	movl	16(%rsp), %edx
	movq	.LC2(%rip), %rax
	pxor	%xmm4, %xmm4
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	movsd	8(%rsp), %xmm2
	cvtsi2sdl	%edx, %xmm0
	movq	%rax, %xmm5
	comisd	%xmm0, %xmm1
	jnb	.L45
	jmp	.L11
.L38:
	movapd	%xmm2, %xmm0
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm2, 8(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movsd	16(%rsp), %xmm1
	pxor	%xmm4, %xmm4
	movsd	8(%rsp), %xmm2
	movq	%rax, %xmm5
	jmp	.L15
.L43:
	call	__stack_chk_fail@PLT
.L44:
	sqrtsd	%xmm2, %xmm1
	jmp	.L21
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.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<math.h>
 
int main()
{
long long int N,l;
int a[100001]={0};
scanf("%lld",&N);
for(int i=1;i<=sqrt(N);i++)
{
    for(int j=1;j<=sqrt(N);j++)
    {
        for(int k=1;k<=sqrt(N);k++)
        {
            l=i*i+j*j+k*k+i*j+i*k+j*k;
          a[l]++;
        }
    }
}
for(int i=0;i<N;i++)
{
printf("%d\n",a[i+1]);
}
}
27
 13
 3
 2
 4
 8
 14
 1
 31
 53

0
0
0
0
0
1
0
0
0
0
3
0
0
0
0
0
3
3
0
0
0
0
0
1
6
0
3
 0
0
0
0
0
1
0
0
0
0
3
0
0
 0
0
0
 0
0
 0
0
0
0
 0
0
0
0
0
1
0
0
 0
0
0
0
0
1
0
0
0
0
3
0
0
0
 0
 0
0
0
0
0
1
0
0
0
0
3
0
0
0
0
0
3
3
0
0
0
0
0
1
6
0
3
0
0
0
0
 0
0
0
0
0
1
0
0
0
0
3
0
0
0
0
0
3
3
0
0
0
0
0
1
6
0
3
0
0
0
0
0
3
3
6
0
0
3
0
0
0
0
3
3
6
0
6
0
0
0
3
0
0

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<math.h>
 
int main()
{
long long int N,l;
int a[100001]={0};
scanf("%lld",&N);
for(int i=1;i<=sqrt(N);i++)
{
    for(int j=1;j<=sqrt(N);j++)
    {
        for(int k=1;k<=sqrt(N);k++)
        {
            l=i*i+j*j+k*k+i*j+i*k+j*k;
          a[l]++;
        }
    }
}
for(int i=0;i<N;i++)
{
printf("%d\n",a[i+1]);
}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -400048(%rbp)
	jmp	.L2
.L7:
	movl	$1, -400044(%rbp)
	jmp	.L3
.L6:
	movl	$1, -400040(%rbp)
	jmp	.L4
.L5:
	movl	-400048(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-400044(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-400040(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-400048(%rbp), %eax
	imull	-400044(%rbp), %eax
	addl	%eax, %edx
	movl	-400048(%rbp), %eax
	imull	-400040(%rbp), %eax
	addl	%eax, %edx
	movl	-400044(%rbp), %eax
	imull	-400040(%rbp), %eax
	addl	%edx, %eax
	cltq
	movq	%rax, -400024(%rbp)
	movq	-400024(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movq	-400024(%rbp), %rax
	movl	%edx, -400016(%rbp,%rax,4)
	addl	$1, -400040(%rbp)
.L4:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-400040(%rbp), %xmm1
	movsd	%xmm1, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-400056(%rbp), %xmm3
	jnb	.L5
	addl	$1, -400044(%rbp)
.L3:
	pxor	%xmm4, %xmm4
	cvtsi2sdl	-400044(%rbp), %xmm4
	movsd	%xmm4, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm5, %xmm5
	cvtsi2sdq	%rax, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm6
	comisd	-400056(%rbp), %xmm6
	jnb	.L6
	addl	$1, -400048(%rbp)
.L2:
	pxor	%xmm7, %xmm7
	cvtsi2sdl	-400048(%rbp), %xmm7
	movsd	%xmm7, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-400056(%rbp), %xmm3
	jnb	.L7
	movl	$0, -400036(%rbp)
	jmp	.L8
.L9:
	movl	-400036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400036(%rbp)
.L8:
	movl	-400036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-400032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"%lld"
.LC1:
	.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -400048(%rbp)
	jmp	.L2
.L7:
	movl	$1, -400044(%rbp)
	jmp	.L3
.L6:
	movl	$1, -400040(%rbp)
	jmp	.L4
.L5:
	movl	-400048(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-400044(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-400040(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-400048(%rbp), %eax
	imull	-400044(%rbp), %eax
	addl	%eax, %edx
	movl	-400048(%rbp), %eax
	imull	-400040(%rbp), %eax
	addl	%eax, %edx
	movl	-400044(%rbp), %eax
	imull	-400040(%rbp), %eax
	addl	%edx, %eax
	cltq
	movq	%rax, -400024(%rbp)
	movq	-400024(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movq	-400024(%rbp), %rax
	movl	%edx, -400016(%rbp,%rax,4)
	addl	$1, -400040(%rbp)
.L4:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-400040(%rbp), %xmm1
	movsd	%xmm1, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-400056(%rbp), %xmm3
	jnb	.L5
	addl	$1, -400044(%rbp)
.L3:
	pxor	%xmm4, %xmm4
	cvtsi2sdl	-400044(%rbp), %xmm4
	movsd	%xmm4, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm5, %xmm5
	cvtsi2sdq	%rax, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm6
	comisd	-400056(%rbp), %xmm6
	jnb	.L6
	addl	$1, -400048(%rbp)
.L2:
	pxor	%xmm7, %xmm7
	cvtsi2sdl	-400048(%rbp), %xmm7
	movsd	%xmm7, -400056(%rbp)
	movq	-400032(%rbp), %rax
	pxor	%xmm2, %xmm2
	cvtsi2sdq	%rax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, %xmm3
	comisd	-400056(%rbp), %xmm3
	jnb	.L7
	movl	$0, -400036(%rbp)
	jmp	.L8
.L9:
	movl	-400036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -400036(%rbp)
.L8:
	movl	-400036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-400032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
