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<string.h>
int N,S[200],i,j,k,l,f[35000]={0};

int main()
{
	for(i=0;i<183;i++)
		S[i]=i*i;
	for(i=0;i<183;i++)
		for(j=i;j<183;j++)
			for(k=j;k<183;k++)
				for(l=k;l<183;l++)
					if(S[i]+S[j]+S[k]+S[l]<35000)
						f[S[i]+S[j]+S[k]+S[l]]++;

	for(;scanf("%d",&N),N;)
		printf("%d\n",f[N]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 800
S:
	.zero	800
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 140000
f:
	.zero	140000
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.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
	movl	$0, i(%rip)
	jmp	.L2
.L3:
	movl	i(%rip), %ecx
	movl	i(%rip), %eax
	movl	i(%rip), %edx
	imull	%ecx, %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$182, %eax
	jle	.L3
	movl	$0, i(%rip)
	jmp	.L4
.L12:
	movl	i(%rip), %eax
	movl	%eax, j(%rip)
	jmp	.L5
.L11:
	movl	j(%rip), %eax
	movl	%eax, k(%rip)
	jmp	.L6
.L10:
	movl	k(%rip), %eax
	movl	%eax, l(%rip)
	jmp	.L7
.L9:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cmpl	$34999, %eax
	jg	.L8
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	f(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
.L7:
	movl	l(%rip), %eax
	cmpl	$182, %eax
	jle	.L9
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L6:
	movl	k(%rip), %eax
	cmpl	$182, %eax
	jle	.L10
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L5:
	movl	j(%rip), %eax
	cmpl	$182, %eax
	jle	.L11
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L4:
	movl	i(%rip), %eax
	cmpl	$182, %eax
	jle	.L12
	jmp	.L13
.L14:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, %eax
	popq	%rbp
	.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
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	S(%rip), %rcx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rcx, %rax
	leaq	720(%rcx), %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movdqa	.LC0(%rip), %xmm2
	movdqa	.LC1(%rip), %xmm3
.L2:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm2
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	movaps	%xmm1, -16(%rax)
	cmpq	%rax, %rdx
	jne	.L2
	movq	.LC2(%rip), %rax
	xorl	%r11d, %r11d
	xorl	%edx, %edx
	leaq	f(%rip), %rdi
	movl	$33124, 728+S(%rip)
	movq	%rax, 720+S(%rip)
.L8:
	movq	%r11, %r10
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r10d, %eax
	cmpl	$182, %r10d
	jg	.L3
	movl	(%rcx,%r10,4), %r9d
	movq	%r10, %r8
	addl	(%rcx,%r11,4), %r9d
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rcx,%r8,4), %esi
	movq	%r8, %rax
	addl	%r9d, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rcx,%rax,4), %edx
	addl	%esi, %edx
	cmpl	$34999, %edx
	jg	.L4
	movslq	%edx, %rdx
	addl	$1, (%rdi,%rdx,4)
.L4:
	addq	$1, %rax
	cmpl	$182, %eax
	jle	.L5
	addq	$1, %r8
	cmpl	$182, %r8d
	jle	.L6
	movl	$183, %eax
	movl	$1, %edx
.L3:
	addq	$1, %r10
	cmpl	$182, %r10d
	jle	.L7
	addq	$1, %r11
	cmpq	$183, %r11
	jne	.L8
	movl	$183, j(%rip)
	movl	$183, i(%rip)
	movl	%eax, k(%rip)
	testb	%dl, %dl
	je	.L9
	movl	$183, l(%rip)
.L9:
	leaq	N(%rip), %r13
	leaq	.LC4(%rip), %r12
	leaq	f(%rip), %rbp
	leaq	.LC3(%rip), %rbx
	jmp	.L10
.L11:
	movl	0(%rbp,%rax,4), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	N(%rip), %rax
	testl	%eax, %eax
	jne	.L11
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 140000
f:
	.zero	140000
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 800
S:
	.zero	800
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	32400
	.long	32761
	.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
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	S(%rip), %rcx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rcx, %rax
	leaq	720(%rcx), %rdx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movdqa	.LC0(%rip), %xmm2
	movdqa	.LC1(%rip), %xmm3
.L2:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm2
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	movaps	%xmm1, -16(%rax)
	cmpq	%rax, %rdx
	jne	.L2
	movq	.LC2(%rip), %rax
	xorl	%r11d, %r11d
	xorl	%edx, %edx
	leaq	f(%rip), %rdi
	movl	$33124, 728+S(%rip)
	movq	%rax, 720+S(%rip)
.L8:
	movq	%r11, %r10
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r10d, %eax
	cmpl	$182, %r10d
	jg	.L3
	movl	(%rcx,%r10,4), %r9d
	movq	%r10, %r8
	addl	(%rcx,%r11,4), %r9d
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rcx,%r8,4), %esi
	movq	%r8, %rax
	addl	%r9d, %esi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rcx,%rax,4), %edx
	addl	%esi, %edx
	cmpl	$34999, %edx
	jg	.L4
	movslq	%edx, %rdx
	addl	$1, (%rdi,%rdx,4)
.L4:
	addq	$1, %rax
	cmpl	$182, %eax
	jle	.L5
	addq	$1, %r8
	cmpl	$182, %r8d
	jle	.L6
	movl	$183, %eax
	movl	$1, %edx
.L3:
	addq	$1, %r10
	cmpl	$182, %r10d
	jle	.L7
	addq	$1, %r11
	cmpq	$183, %r11
	jne	.L8
	movl	$183, j(%rip)
	movl	$183, i(%rip)
	movl	%eax, k(%rip)
	testb	%dl, %dl
	je	.L9
	movl	$183, l(%rip)
.L9:
	leaq	N(%rip), %r13
	leaq	.LC4(%rip), %r12
	leaq	f(%rip), %rbp
	leaq	.LC3(%rip), %rbx
	jmp	.L10
.L11:
	movl	0(%rbp,%rax,4), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	N(%rip), %rax
	testl	%eax, %eax
	jne	.L11
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 140000
f:
	.zero	140000
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 800
S:
	.zero	800
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	32400
	.long	32761
	.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<string.h>
int N,S[200],i,j,k,l,f[35000]={0};

int main()
{
	for(i=0;i<183;i++)
		S[i]=i*i;
	for(i=0;i<183;i++)
		for(j=i;j<183;j++)
			for(k=j;k<183;k++)
				for(l=k;l<183;l++)
					if(S[i]+S[j]+S[k]+S[l]<35000)
						f[S[i]+S[j]+S[k]+S[l]]++;

	for(;scanf("%d",&N),N;)
		printf("%d\n",f[N]);
	return 0;
}
1
8
2003
211
20007
0
 1
0
2003
211
20007
0
 1
1
762
0
34403
0
 1
25
2003
170
20007
0
 1
8
2003
211
20858
0
 1
1
1704
211
20007
0
 1
14
2003
170
20007
0
 1
8
1621
211
20858
0
 1
1
1704
312
20007
0
 1
12
1621
211
20858
0

1
1
48
7
738
 1
 1
1
41
 1
3
48
11
738
 1
1
48
7
699
 1
1
24
7
738
 1
1
48
11
738
 1
1
42
7
699
 1
1
24
4
738
 1
2
42
7
699

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<string.h>
int N,S[200],i,j,k,l,f[35000]={0};

int main()
{
	for(i=0;i<183;i++)
		S[i]=i*i;
	for(i=0;i<183;i++)
		for(j=i;j<183;j++)
			for(k=j;k<183;k++)
				for(l=k;l<183;l++)
					if(S[i]+S[j]+S[k]+S[l]<35000)
						f[S[i]+S[j]+S[k]+S[l]]++;

	for(;scanf("%d",&N),N;)
		printf("%d\n",f[N]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 800
S:
	.zero	800
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 140000
f:
	.zero	140000
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.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
	movl	$0, i(%rip)
	jmp	.L2
.L3:
	movl	i(%rip), %ecx
	movl	i(%rip), %eax
	movl	i(%rip), %edx
	imull	%ecx, %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$182, %eax
	jle	.L3
	movl	$0, i(%rip)
	jmp	.L4
.L12:
	movl	i(%rip), %eax
	movl	%eax, j(%rip)
	jmp	.L5
.L11:
	movl	j(%rip), %eax
	movl	%eax, k(%rip)
	jmp	.L6
.L10:
	movl	k(%rip), %eax
	movl	%eax, l(%rip)
	jmp	.L7
.L9:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cmpl	$34999, %eax
	jg	.L8
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	f(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
.L7:
	movl	l(%rip), %eax
	cmpl	$182, %eax
	jle	.L9
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L6:
	movl	k(%rip), %eax
	cmpl	$182, %eax
	jle	.L10
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L5:
	movl	j(%rip), %eax
	cmpl	$182, %eax
	jle	.L11
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L4:
	movl	i(%rip), %eax
	cmpl	$182, %eax
	jle	.L12
	jmp	.L13
.L14:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, %eax
	popq	%rbp
	.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
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 800
S:
	.zero	800
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 140000
f:
	.zero	140000
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.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
	movl	$0, i(%rip)
	jmp	.L2
.L3:
	movl	i(%rip), %ecx
	movl	i(%rip), %eax
	movl	i(%rip), %edx
	imull	%ecx, %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	S(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$182, %eax
	jle	.L3
	movl	$0, i(%rip)
	jmp	.L4
.L12:
	movl	i(%rip), %eax
	movl	%eax, j(%rip)
	jmp	.L5
.L11:
	movl	j(%rip), %eax
	movl	%eax, k(%rip)
	jmp	.L6
.L10:
	movl	k(%rip), %eax
	movl	%eax, l(%rip)
	jmp	.L7
.L9:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cmpl	$34999, %eax
	jg	.L8
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	j(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	l(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	S(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	f(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	movl	l(%rip), %eax
	addl	$1, %eax
	movl	%eax, l(%rip)
.L7:
	movl	l(%rip), %eax
	cmpl	$182, %eax
	jle	.L9
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L6:
	movl	k(%rip), %eax
	cmpl	$182, %eax
	jle	.L10
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L5:
	movl	j(%rip), %eax
	cmpl	$182, %eax
	jle	.L11
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L4:
	movl	i(%rip), %eax
	cmpl	$182, %eax
	jle	.L12
	jmp	.L13
.L14:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, %eax
	popq	%rbp
	.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:
