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 i, N, W, w[101], v[101];
	scanf("%d %d", &N, &W);
	for (i = 1; i <= N; i++) scanf("%d %d", &(w[i]), &(v[i]));
	
	int j, k, l, dp[2][101][301] = {};
	for (i = 1; i <= N; i++) {
		l = w[i] - w[1];
		for (j = l; j <= i * 3; j++) {
			for (k = 0; k < i; k++) if (dp[0][k][j-l] + v[i] > dp[1][k+1][j]) dp[1][k+1][j] = dp[0][k][j-l] + v[i];
		}
		for (j = 0; j <= i * 3; j++) {
			for (k = 0; k <= i; k++) dp[0][k][j] = dp[1][k][j];
		}
	}
	
	int max = 0;
	for (k = 0; k <= 100 && w[1] * k <= W; k++) {
		for (j = 0; j <= k * 3 && w[1] * k + j <= W; j++) if (dp[0][k][j] > max) max = dp[0][k][j];
	}
	printf("%d\n", max);
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.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	-241664(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2416, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-244072(%rbp), %rdx
	leaq	-244076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -244068(%rbp)
	jmp	.L2
.L3:
	leaq	-243632(%rbp), %rdx
	movl	-244068(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-244048(%rbp), %rcx
	movl	-244068(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -244068(%rbp)
.L2:
	movl	-244076(%rbp), %eax
	cmpl	%eax, -244068(%rbp)
	jle	.L3
	leaq	-243216(%rbp), %rax
	movl	$243208, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -244068(%rbp)
	jmp	.L4
.L14:
	movl	-244068(%rbp), %eax
	cltq
	movl	-244048(%rbp,%rax,4), %eax
	movl	-244044(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -244052(%rbp)
	movl	-244052(%rbp), %eax
	movl	%eax, -244064(%rbp)
	jmp	.L5
.L9:
	movl	$0, -244060(%rbp)
	jmp	.L6
.L8:
	movl	-244064(%rbp), %eax
	subl	-244052(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %edx
	movl	-244068(%rbp), %eax
	cltq
	movl	-243632(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-244060(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-244064(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$301, %rax, %rax
	addq	%rsi, %rax
	addq	$30401, %rax
	movl	-243216(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	-244064(%rbp), %eax
	subl	-244052(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %esi
	movl	-244068(%rbp), %eax
	cltq
	movl	-243632(%rbp,%rax,4), %edx
	movl	-244060(%rbp), %eax
	leal	1(%rax), %ecx
	addl	%esi, %edx
	movl	-244064(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$301, %rax, %rax
	addq	%rsi, %rax
	addq	$30401, %rax
	movl	%edx, -243216(%rbp,%rax,4)
.L7:
	addl	$1, -244060(%rbp)
.L6:
	movl	-244060(%rbp), %eax
	cmpl	-244068(%rbp), %eax
	jl	.L8
	addl	$1, -244064(%rbp)
.L5:
	movl	-244068(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jle	.L9
	movl	$0, -244064(%rbp)
	jmp	.L10
.L13:
	movl	$0, -244060(%rbp)
	jmp	.L11
.L12:
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	addq	$30401, %rax
	movl	-243216(%rbp,%rax,4), %eax
	movl	-244064(%rbp), %edx
	movslq	%edx, %rcx
	movl	-244060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$301, %rdx, %rdx
	addq	%rcx, %rdx
	movl	%eax, -243216(%rbp,%rdx,4)
	addl	$1, -244060(%rbp)
.L11:
	movl	-244060(%rbp), %eax
	cmpl	-244068(%rbp), %eax
	jle	.L12
	addl	$1, -244064(%rbp)
.L10:
	movl	-244068(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jle	.L13
	addl	$1, -244068(%rbp)
.L4:
	movl	-244076(%rbp), %eax
	cmpl	%eax, -244068(%rbp)
	jle	.L14
	movl	$0, -244056(%rbp)
	movl	$0, -244060(%rbp)
	jmp	.L15
.L21:
	movl	$0, -244064(%rbp)
	jmp	.L16
.L19:
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %eax
	cmpl	%eax, -244056(%rbp)
	jge	.L17
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %eax
	movl	%eax, -244056(%rbp)
.L17:
	addl	$1, -244064(%rbp)
.L16:
	movl	-244060(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jg	.L18
	movl	-244044(%rbp), %eax
	imull	-244060(%rbp), %eax
	movl	%eax, %edx
	movl	-244064(%rbp), %eax
	addl	%eax, %edx
	movl	-244072(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L19
.L18:
	addl	$1, -244060(%rbp)
.L15:
	cmpl	$100, -244060(%rbp)
	jg	.L20
	movl	-244044(%rbp), %eax
	imull	-244060(%rbp), %eax
	movl	%eax, %edx
	movl	-244072(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L21
.L20:
	movl	-244056(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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 %d"
.LC1:
	.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	-241664(%rsp), %r11
	.cfi_def_cfa 11, 241720
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2488, %rsp
	.cfi_def_cfa_offset 244208
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 244136(%rsp)
	xorl	%eax, %eax
	leaq	92(%rsp), %rdx
	leaq	88(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	96(%rsp), %r15
	movl	$4, %ebx
	movl	$1, %ebp
	leaq	512(%rsp), %r14
	movq	%r15, 48(%rsp)
	movq	%r14, 56(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx), %rdx
	leaq	(%r15,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %r12d
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r12d
	jge	.L3
	leaq	928(%rsp), %rax
	movl	$243208, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	memset@PLT
	movl	100(%rsp), %eax
	movl	%eax, 28(%rsp)
	testl	%r12d, %r12d
	jle	.L49
	leal	2(%r12), %eax
	movl	$30702, %edx
	movl	$1204, %edi
	movq	$0, 8(%rsp)
	movq	%rax, 40(%rsp)
	leaq	122532(%rsp), %rax
	movl	$4, %r10d
	movl	$3, %r11d
	movq	%rax, 32(%rsp)
	leaq	2132(%rsp), %rax
	movl	$2, %r9d
	movq	%rax, 72(%rsp)
	movslq	28(%rsp), %rax
	subq	%rax, %rdx
	movq	%rdx, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movq	48(%rsp), %rax
	movslq	-4(%rax,%r9,4), %rax
	movl	%eax, %r8d
	subl	28(%rsp), %r8d
	cmpl	%r11d, %r8d
	jg	.L11
	movq	56(%rsp), %rbx
	movl	%r11d, %edx
	leal	1(%r11), %r12d
	subl	%r8d, %edx
	subl	%r8d, %r12d
	movl	-4(%rbx,%r9,4), %ebx
	cmpl	$2, %edx
	jbe	.L26
	movq	16(%rsp), %rdx
	movl	%r12d, %ebp
	addq	64(%rsp), %rax
	movd	%ebx, %xmm6
	shrl	$2, %ebp
	pshufd	$0, %xmm6, %xmm2
	leaq	(%rdx,%rax,4), %rcx
	salq	$4, %rbp
	addq	%rdx, %rbp
	movq	%rcx, %rsi
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rdx,%rax), %xmm1
	movdqu	(%rcx,%rax), %xmm4
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm4, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rsi,%rax)
	addq	$1204, %rax
	cmpq	%rdi, %rax
	jne	.L8
	addq	$16, %rdx
	addq	$16, %rcx
	addq	$16, %rsi
	cmpq	%rbp, %rdx
	jne	.L9
	movl	%r12d, %eax
	andl	$-4, %eax
	leal	(%rax,%r8), %r14d
	cmpl	%eax, %r12d
	je	.L11
.L7:
	movq	8(%rsp), %rax
	movslq	%r14d, %rbp
	movq	72(%rsp), %rsi
	movslq	%r8d, %r8
	movq	%rbp, %r12
	subl	%ebp, %r14d
	addq	%rbp, %rax
	subq	%r8, %r12
	leaq	(%rsi,%rax,4), %rsi
	movq	16(%rsp), %rax
	leaq	(%rax,%rbp,4), %r13
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r12, %r8
	movq	%r13, %rax
	subq	%rbp, %r8
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%rax,%r8,4), %edx
	movl	122808(%rax), %ecx
	addl	%ebx, %edx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	addq	$1204, %rax
	movl	%edx, 121604(%rax)
	cmpq	%rsi, %rax
	jne	.L13
	addq	$1, %rbp
	addq	$4, %rsi
	addq	$4, %r13
	addq	$1, %r12
	leal	(%r14,%rbp), %eax
	cmpl	%r11d, %eax
	jle	.L14
.L11:
	movl	%r10d, %esi
	movl	%r10d, %ebx
	movl	%r10d, %r13d
	movq	32(%rsp), %rdx
	shrl	$2, %esi
	andl	$-4, %ebx
	andl	$3, %r13d
	xorl	%r8d, %r8d
	salq	$4, %rsi
	leal	1(%rbx), %ebp
	leal	2(%rbx), %r12d
	movslq	%ebx, %r15
	movq	%rsi, (%rsp)
	leal	-1(%r13), %r14d
	movslq	%ebp, %rbp
	movslq	%r12d, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rsp), %rsi
	leaq	-121604(%rdx), %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L17:
	movdqu	(%rdx,%rax), %xmm3
	movups	%xmm3, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L17
	movq	%rsi, (%rsp)
	cmpl	%r10d, %ebx
	je	.L16
	movslq	%r8d, %rax
	imulq	$301, %rax, %rax
	leaq	(%rax,%r15), %rcx
	movl	122532(%rsp,%rcx,4), %esi
	movl	%esi, 928(%rsp,%rcx,4)
	testl	%r14d, %r14d
	je	.L16
	leaq	(%rax,%rbp), %rcx
	movl	122532(%rsp,%rcx,4), %esi
	movl	%esi, 928(%rsp,%rcx,4)
	cmpl	$2, %r13d
	je	.L16
	addq	%r12, %rax
	movl	122532(%rsp,%rax,4), %ecx
	movl	%ecx, 928(%rsp,%rax,4)
.L16:
	addl	$1, %r8d
	addq	$1204, %rdx
	cmpl	%r9d, %r8d
	jne	.L6
	addq	$1, %r9
	addl	$3, %r11d
	addl	$3, %r10d
	addq	$301, 8(%rsp)
	addq	$1204, %rdi
	cmpq	40(%rsp), %r9
	jne	.L20
.L4:
	movl	28(%rsp), %ebx
	movl	92(%rsp), %r8d
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	movq	16(%rsp), %r10
	movq	32(%rsp), %rbp
	xorl	%edx, %edx
	leal	3(%rbx), %r11d
	.p2align 4,,10
	.p2align 3
.L21:
	cmpl	%r8d, %r9d
	jg	.L24
	movl	%r9d, %eax
	movq	%r10, %rcx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, %eax
	addq	$4, %rcx
	cmpl	%eax, %r8d
	jl	.L22
.L23:
	movl	(%rcx), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	%edi, %eax
	jne	.L51
.L22:
	addq	$1204, %r10
	addl	%ebx, %r9d
	addl	%r11d, %edi
	cmpq	%r10, %rbp
	jne	.L21
.L24:
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	244136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$244152, %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
.L26:
	.cfi_restore_state
	movl	%r8d, %r14d
	jmp	.L7
.L2:
	leaq	928(%rsp), %rax
	movl	$243208, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	memset@PLT
	movl	100(%rsp), %eax
	movl	%eax, 28(%rsp)
.L49:
	leaq	122532(%rsp), %rax
	movq	%rax, 32(%rsp)
	jmp	.L4
.L52:
	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 %d"
.LC1:
	.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	-241664(%rsp), %r11
	.cfi_def_cfa 11, 241720
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2488, %rsp
	.cfi_def_cfa_offset 244208
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 244136(%rsp)
	xorl	%eax, %eax
	leaq	92(%rsp), %rdx
	leaq	88(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	96(%rsp), %r15
	movl	$4, %ebx
	movl	$1, %ebp
	leaq	512(%rsp), %r14
	movq	%r15, 48(%rsp)
	movq	%r14, 56(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx), %rdx
	leaq	(%r15,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %r12d
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r12d
	jge	.L3
	leaq	928(%rsp), %rax
	movl	$243208, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	memset@PLT
	movl	100(%rsp), %eax
	movl	%eax, 28(%rsp)
	testl	%r12d, %r12d
	jle	.L49
	leal	2(%r12), %eax
	movl	$30702, %edx
	movl	$1204, %edi
	movq	$0, 8(%rsp)
	movq	%rax, 40(%rsp)
	leaq	122532(%rsp), %rax
	movl	$4, %r10d
	movl	$3, %r11d
	movq	%rax, 32(%rsp)
	leaq	2132(%rsp), %rax
	movl	$2, %r9d
	movq	%rax, 72(%rsp)
	movslq	28(%rsp), %rax
	subq	%rax, %rdx
	movq	%rdx, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movq	48(%rsp), %rax
	movslq	-4(%rax,%r9,4), %rax
	movl	%eax, %r8d
	subl	28(%rsp), %r8d
	cmpl	%r11d, %r8d
	jg	.L11
	movq	56(%rsp), %rbx
	movl	%r11d, %edx
	leal	1(%r11), %r12d
	subl	%r8d, %edx
	subl	%r8d, %r12d
	movl	-4(%rbx,%r9,4), %ebx
	cmpl	$2, %edx
	jbe	.L26
	movq	16(%rsp), %rdx
	movl	%r12d, %ebp
	addq	64(%rsp), %rax
	movd	%ebx, %xmm6
	shrl	$2, %ebp
	pshufd	$0, %xmm6, %xmm2
	leaq	(%rdx,%rax,4), %rcx
	salq	$4, %rbp
	addq	%rdx, %rbp
	movq	%rcx, %rsi
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rdx,%rax), %xmm1
	movdqu	(%rcx,%rax), %xmm4
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm4, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rsi,%rax)
	addq	$1204, %rax
	cmpq	%rdi, %rax
	jne	.L8
	addq	$16, %rdx
	addq	$16, %rcx
	addq	$16, %rsi
	cmpq	%rbp, %rdx
	jne	.L9
	movl	%r12d, %eax
	andl	$-4, %eax
	leal	(%rax,%r8), %r14d
	cmpl	%eax, %r12d
	je	.L11
.L7:
	movq	8(%rsp), %rax
	movslq	%r14d, %rbp
	movq	72(%rsp), %rsi
	movslq	%r8d, %r8
	movq	%rbp, %r12
	subl	%ebp, %r14d
	addq	%rbp, %rax
	subq	%r8, %r12
	leaq	(%rsi,%rax,4), %rsi
	movq	16(%rsp), %rax
	leaq	(%rax,%rbp,4), %r13
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r12, %r8
	movq	%r13, %rax
	subq	%rbp, %r8
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%rax,%r8,4), %edx
	movl	122808(%rax), %ecx
	addl	%ebx, %edx
	cmpl	%ecx, %edx
	cmovl	%ecx, %edx
	addq	$1204, %rax
	movl	%edx, 121604(%rax)
	cmpq	%rsi, %rax
	jne	.L13
	addq	$1, %rbp
	addq	$4, %rsi
	addq	$4, %r13
	addq	$1, %r12
	leal	(%r14,%rbp), %eax
	cmpl	%r11d, %eax
	jle	.L14
.L11:
	movl	%r10d, %esi
	movl	%r10d, %ebx
	movl	%r10d, %r13d
	movq	32(%rsp), %rdx
	shrl	$2, %esi
	andl	$-4, %ebx
	andl	$3, %r13d
	xorl	%r8d, %r8d
	salq	$4, %rsi
	leal	1(%rbx), %ebp
	leal	2(%rbx), %r12d
	movslq	%ebx, %r15
	movq	%rsi, (%rsp)
	leal	-1(%r13), %r14d
	movslq	%ebp, %rbp
	movslq	%r12d, %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	(%rsp), %rsi
	leaq	-121604(%rdx), %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L17:
	movdqu	(%rdx,%rax), %xmm3
	movups	%xmm3, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L17
	movq	%rsi, (%rsp)
	cmpl	%r10d, %ebx
	je	.L16
	movslq	%r8d, %rax
	imulq	$301, %rax, %rax
	leaq	(%rax,%r15), %rcx
	movl	122532(%rsp,%rcx,4), %esi
	movl	%esi, 928(%rsp,%rcx,4)
	testl	%r14d, %r14d
	je	.L16
	leaq	(%rax,%rbp), %rcx
	movl	122532(%rsp,%rcx,4), %esi
	movl	%esi, 928(%rsp,%rcx,4)
	cmpl	$2, %r13d
	je	.L16
	addq	%r12, %rax
	movl	122532(%rsp,%rax,4), %ecx
	movl	%ecx, 928(%rsp,%rax,4)
.L16:
	addl	$1, %r8d
	addq	$1204, %rdx
	cmpl	%r9d, %r8d
	jne	.L6
	addq	$1, %r9
	addl	$3, %r11d
	addl	$3, %r10d
	addq	$301, 8(%rsp)
	addq	$1204, %rdi
	cmpq	40(%rsp), %r9
	jne	.L20
.L4:
	movl	28(%rsp), %ebx
	movl	92(%rsp), %r8d
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	movq	16(%rsp), %r10
	movq	32(%rsp), %rbp
	xorl	%edx, %edx
	leal	3(%rbx), %r11d
	.p2align 4,,10
	.p2align 3
.L21:
	cmpl	%r8d, %r9d
	jg	.L24
	movl	%r9d, %eax
	movq	%r10, %rcx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, %eax
	addq	$4, %rcx
	cmpl	%eax, %r8d
	jl	.L22
.L23:
	movl	(%rcx), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	cmpl	%edi, %eax
	jne	.L51
.L22:
	addq	$1204, %r10
	addl	%ebx, %r9d
	addl	%r11d, %edi
	cmpq	%r10, %rbp
	jne	.L21
.L24:
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	244136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$244152, %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
.L26:
	.cfi_restore_state
	movl	%r8d, %r14d
	jmp	.L7
.L2:
	leaq	928(%rsp), %rax
	movl	$243208, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
	call	memset@PLT
	movl	100(%rsp), %eax
	movl	%eax, 28(%rsp)
.L49:
	leaq	122532(%rsp), %rax
	movq	%rax, 32(%rsp)
	jmp	.L4
.L52:
	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 i, N, W, w[101], v[101];
	scanf("%d %d", &N, &W);
	for (i = 1; i <= N; i++) scanf("%d %d", &(w[i]), &(v[i]));
	
	int j, k, l, dp[2][101][301] = {};
	for (i = 1; i <= N; i++) {
		l = w[i] - w[1];
		for (j = l; j <= i * 3; j++) {
			for (k = 0; k < i; k++) if (dp[0][k][j-l] + v[i] > dp[1][k+1][j]) dp[1][k+1][j] = dp[0][k][j-l] + v[i];
		}
		for (j = 0; j <= i * 3; j++) {
			for (k = 0; k <= i; k++) dp[0][k][j] = dp[1][k][j];
		}
	}
	
	int max = 0;
	for (k = 0; k <= 100 && w[1] * k <= W; k++) {
		for (j = 0; j <= k * 3 && w[1] * k + j <= W; j++) if (dp[0][k][j] > max) max = dp[0][k][j];
	}
	printf("%d\n", max);
	fflush(stdout);
	return 0;
}
4 10
1 100
2 100
1 100
1 100
 4 1
10 100
10 100
10 101
10 100
 4 6
2 1
3 6
4 10
3 4
 4 10
1 000
1 100
1 100
1 100
 4 6
2 1
3 7
4 10
3 9
 4 12
2 1
3 4
4 10
3 4
 4 6
2 1
3 6
4 8
3 4
 4 6
2 1
3 6
4 10
3 9
 4 10
1 100
4 100
1 101
1 100
 4 6
2 1
3 6
2 8
3 4

400
 0
 11
 300
 16
 19
 10
 15
 401
 14

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 i, N, W, w[101], v[101];
	scanf("%d %d", &N, &W);
	for (i = 1; i <= N; i++) scanf("%d %d", &(w[i]), &(v[i]));
	
	int j, k, l, dp[2][101][301] = {};
	for (i = 1; i <= N; i++) {
		l = w[i] - w[1];
		for (j = l; j <= i * 3; j++) {
			for (k = 0; k < i; k++) if (dp[0][k][j-l] + v[i] > dp[1][k+1][j]) dp[1][k+1][j] = dp[0][k][j-l] + v[i];
		}
		for (j = 0; j <= i * 3; j++) {
			for (k = 0; k <= i; k++) dp[0][k][j] = dp[1][k][j];
		}
	}
	
	int max = 0;
	for (k = 0; k <= 100 && w[1] * k <= W; k++) {
		for (j = 0; j <= k * 3 && w[1] * k + j <= W; j++) if (dp[0][k][j] > max) max = dp[0][k][j];
	}
	printf("%d\n", max);
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.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	-241664(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2416, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-244072(%rbp), %rdx
	leaq	-244076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -244068(%rbp)
	jmp	.L2
.L3:
	leaq	-243632(%rbp), %rdx
	movl	-244068(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-244048(%rbp), %rcx
	movl	-244068(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -244068(%rbp)
.L2:
	movl	-244076(%rbp), %eax
	cmpl	%eax, -244068(%rbp)
	jle	.L3
	leaq	-243216(%rbp), %rax
	movl	$243208, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -244068(%rbp)
	jmp	.L4
.L14:
	movl	-244068(%rbp), %eax
	cltq
	movl	-244048(%rbp,%rax,4), %eax
	movl	-244044(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -244052(%rbp)
	movl	-244052(%rbp), %eax
	movl	%eax, -244064(%rbp)
	jmp	.L5
.L9:
	movl	$0, -244060(%rbp)
	jmp	.L6
.L8:
	movl	-244064(%rbp), %eax
	subl	-244052(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %edx
	movl	-244068(%rbp), %eax
	cltq
	movl	-243632(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-244060(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-244064(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$301, %rax, %rax
	addq	%rsi, %rax
	addq	$30401, %rax
	movl	-243216(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	-244064(%rbp), %eax
	subl	-244052(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %esi
	movl	-244068(%rbp), %eax
	cltq
	movl	-243632(%rbp,%rax,4), %edx
	movl	-244060(%rbp), %eax
	leal	1(%rax), %ecx
	addl	%esi, %edx
	movl	-244064(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$301, %rax, %rax
	addq	%rsi, %rax
	addq	$30401, %rax
	movl	%edx, -243216(%rbp,%rax,4)
.L7:
	addl	$1, -244060(%rbp)
.L6:
	movl	-244060(%rbp), %eax
	cmpl	-244068(%rbp), %eax
	jl	.L8
	addl	$1, -244064(%rbp)
.L5:
	movl	-244068(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jle	.L9
	movl	$0, -244064(%rbp)
	jmp	.L10
.L13:
	movl	$0, -244060(%rbp)
	jmp	.L11
.L12:
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	addq	$30401, %rax
	movl	-243216(%rbp,%rax,4), %eax
	movl	-244064(%rbp), %edx
	movslq	%edx, %rcx
	movl	-244060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$301, %rdx, %rdx
	addq	%rcx, %rdx
	movl	%eax, -243216(%rbp,%rdx,4)
	addl	$1, -244060(%rbp)
.L11:
	movl	-244060(%rbp), %eax
	cmpl	-244068(%rbp), %eax
	jle	.L12
	addl	$1, -244064(%rbp)
.L10:
	movl	-244068(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jle	.L13
	addl	$1, -244068(%rbp)
.L4:
	movl	-244076(%rbp), %eax
	cmpl	%eax, -244068(%rbp)
	jle	.L14
	movl	$0, -244056(%rbp)
	movl	$0, -244060(%rbp)
	jmp	.L15
.L21:
	movl	$0, -244064(%rbp)
	jmp	.L16
.L19:
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %eax
	cmpl	%eax, -244056(%rbp)
	jge	.L17
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %eax
	movl	%eax, -244056(%rbp)
.L17:
	addl	$1, -244064(%rbp)
.L16:
	movl	-244060(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jg	.L18
	movl	-244044(%rbp), %eax
	imull	-244060(%rbp), %eax
	movl	%eax, %edx
	movl	-244064(%rbp), %eax
	addl	%eax, %edx
	movl	-244072(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L19
.L18:
	addl	$1, -244060(%rbp)
.L15:
	cmpl	$100, -244060(%rbp)
	jg	.L20
	movl	-244044(%rbp), %eax
	imull	-244060(%rbp), %eax
	movl	%eax, %edx
	movl	-244072(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L21
.L20:
	movl	-244056(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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 %d"
.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	-241664(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2416, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-244072(%rbp), %rdx
	leaq	-244076(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -244068(%rbp)
	jmp	.L2
.L3:
	leaq	-243632(%rbp), %rdx
	movl	-244068(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-244048(%rbp), %rcx
	movl	-244068(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -244068(%rbp)
.L2:
	movl	-244076(%rbp), %eax
	cmpl	%eax, -244068(%rbp)
	jle	.L3
	leaq	-243216(%rbp), %rax
	movl	$243208, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -244068(%rbp)
	jmp	.L4
.L14:
	movl	-244068(%rbp), %eax
	cltq
	movl	-244048(%rbp,%rax,4), %eax
	movl	-244044(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -244052(%rbp)
	movl	-244052(%rbp), %eax
	movl	%eax, -244064(%rbp)
	jmp	.L5
.L9:
	movl	$0, -244060(%rbp)
	jmp	.L6
.L8:
	movl	-244064(%rbp), %eax
	subl	-244052(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %edx
	movl	-244068(%rbp), %eax
	cltq
	movl	-243632(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movl	-244060(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-244064(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$301, %rax, %rax
	addq	%rsi, %rax
	addq	$30401, %rax
	movl	-243216(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	-244064(%rbp), %eax
	subl	-244052(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %esi
	movl	-244068(%rbp), %eax
	cltq
	movl	-243632(%rbp,%rax,4), %edx
	movl	-244060(%rbp), %eax
	leal	1(%rax), %ecx
	addl	%esi, %edx
	movl	-244064(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$301, %rax, %rax
	addq	%rsi, %rax
	addq	$30401, %rax
	movl	%edx, -243216(%rbp,%rax,4)
.L7:
	addl	$1, -244060(%rbp)
.L6:
	movl	-244060(%rbp), %eax
	cmpl	-244068(%rbp), %eax
	jl	.L8
	addl	$1, -244064(%rbp)
.L5:
	movl	-244068(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jle	.L9
	movl	$0, -244064(%rbp)
	jmp	.L10
.L13:
	movl	$0, -244060(%rbp)
	jmp	.L11
.L12:
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	addq	$30401, %rax
	movl	-243216(%rbp,%rax,4), %eax
	movl	-244064(%rbp), %edx
	movslq	%edx, %rcx
	movl	-244060(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$301, %rdx, %rdx
	addq	%rcx, %rdx
	movl	%eax, -243216(%rbp,%rdx,4)
	addl	$1, -244060(%rbp)
.L11:
	movl	-244060(%rbp), %eax
	cmpl	-244068(%rbp), %eax
	jle	.L12
	addl	$1, -244064(%rbp)
.L10:
	movl	-244068(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jle	.L13
	addl	$1, -244068(%rbp)
.L4:
	movl	-244076(%rbp), %eax
	cmpl	%eax, -244068(%rbp)
	jle	.L14
	movl	$0, -244056(%rbp)
	movl	$0, -244060(%rbp)
	jmp	.L15
.L21:
	movl	$0, -244064(%rbp)
	jmp	.L16
.L19:
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %eax
	cmpl	%eax, -244056(%rbp)
	jge	.L17
	movl	-244064(%rbp), %eax
	movslq	%eax, %rdx
	movl	-244060(%rbp), %eax
	cltq
	imulq	$301, %rax, %rax
	addq	%rdx, %rax
	movl	-243216(%rbp,%rax,4), %eax
	movl	%eax, -244056(%rbp)
.L17:
	addl	$1, -244064(%rbp)
.L16:
	movl	-244060(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -244064(%rbp)
	jg	.L18
	movl	-244044(%rbp), %eax
	imull	-244060(%rbp), %eax
	movl	%eax, %edx
	movl	-244064(%rbp), %eax
	addl	%eax, %edx
	movl	-244072(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L19
.L18:
	addl	$1, -244060(%rbp)
.L15:
	cmpl	$100, -244060(%rbp)
	jg	.L20
	movl	-244044(%rbp), %eax
	imull	-244060(%rbp), %eax
	movl	%eax, %edx
	movl	-244072(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L21
.L20:
	movl	-244056(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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:
