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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
/********************************************************************************************************************************/
/* main *************************************************************************************************************************/
/********************************************************************************************************************************/
int DEBUG = 1;										/* デバッグプリント 提出時は0 */

int dp[10001] = {0};

int main()
{
	int		N,W,v[101],w[101],i,j;
	//int		*dp;
	scanf("%d %d", &N, &W);
	for(i=1; i<=N; i++) {
		scanf("%d %d",&v[i],&w[i]);
	}
/*
	for(i=1;i<=N;i++) {
		for(j=0;j+w[i]<=W;j++) {
				dp[j+w[i]] = max( dp[j+w[i]] , dp[j]+v[i]);
		}
	}
*/
	for(i=1;i<=N;i++) {
		for(j=w[i];j<=W;j++) {
				dp[j] = max( dp[j] , dp[j-w[i]]+v[i]);
		}
	}

	printf("%d\n",dp[W]);

	return 0;
}

```

Assembly Code:

```assembly
	.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:
.LFB53:
	.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	$848, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$4, %r12d
	movl	$1, %r13d
	leaq	16(%rsp), %rbx
	leaq	432(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	0(%rbp,%r12), %rdx
	leaq	(%rbx,%r12), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	%r13d, %eax
	jge	.L3
	movslq	12(%rsp), %r9
	testl	%eax, %eax
	jle	.L28
	leaq	dp(%rip), %rdx
	leal	1(%rax), %r10d
	movl	$1, %r8d
	leaq	4(%rdx), %r11
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	0(%rbp,%r8,4), %r12
	cmpl	%r9d, %r12d
	jg	.L10
	movl	%r9d, %r13d
	leal	-1(%r12), %eax
	movl	(%rbx,%r8,4), %edi
	subl	%r12d, %r13d
	cmpl	$2, %eax
	jbe	.L7
	cmpl	$2, %r13d
	jbe	.L7
	addl	$1, %r13d
	movslq	%r12d, %rax
	movd	%edi, %xmm5
	movl	%r13d, %esi
	leaq	(%rdx,%rax,4), %rcx
	pshufd	$0, %xmm5, %xmm2
	xorl	%eax, %eax
	shrl	$2, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	(%rdx,%rax), %xmm1
	movdqu	(%rcx,%rax), %xmm3
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L8
	movl	%r13d, %ecx
	andl	$-4, %ecx
	leal	(%r12,%rcx), %eax
	cmpl	%ecx, %r13d
	je	.L10
	movslq	%ecx, %rcx
	movslq	%eax, %rsi
	movl	(%rdx,%rcx,4), %r14d
	movl	(%rdx,%rsi,4), %r13d
	addl	%edi, %r14d
	movl	%r14d, %ecx
	cmpl	%r13d, %r14d
	cmovl	%r13d, %ecx
	movl	%ecx, (%rdx,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%r9d, %ecx
	jg	.L10
	movslq	%ecx, %rsi
	subl	%r12d, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rsi,4), %r13d
	movl	(%rdx,%rcx,4), %r14d
	addl	%edi, %r14d
	cmpl	%r13d, %r14d
	movl	%r14d, %ecx
	cmovl	%r13d, %ecx
	addl	$2, %eax
	movl	%ecx, (%rdx,%rsi,4)
	cmpl	%eax, %r9d
	jl	.L10
	movslq	%eax, %rcx
	subl	%r12d, %eax
	cltq
	addl	(%rdx,%rax,4), %edi
	movl	(%rdx,%rcx,4), %eax
	cmpl	%eax, %edi
	cmovl	%eax, %edi
	movl	%edi, (%rdx,%rcx,4)
.L10:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L6
.L4:
	movl	(%rdx,%r9,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$848, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	leaq	0(,%r12,4), %rcx
	addq	%r12, %r13
	leaq	(%rdx,%rcx), %rax
	negq	%rcx
	leaq	(%r11,%r13,4), %r13
	movq	%rcx, %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rax,%r12), %ecx
	movl	(%rax), %esi
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	cmovl	%esi, %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%r13, %rax
	jne	.L12
	jmp	.L10
.L2:
	movslq	12(%rsp), %r9
.L28:
	leaq	dp(%rip), %rdx
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 40004
dp:
	.zero	40004
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.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 %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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	$848, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$4, %r12d
	movl	$1, %r13d
	leaq	16(%rsp), %rbx
	leaq	432(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	0(%rbp,%r12), %rdx
	leaq	(%rbx,%r12), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	%r13d, %eax
	jge	.L3
	movslq	12(%rsp), %r9
	testl	%eax, %eax
	jle	.L28
	leaq	dp(%rip), %rdx
	leal	1(%rax), %r10d
	movl	$1, %r8d
	leaq	4(%rdx), %r11
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	0(%rbp,%r8,4), %r12
	cmpl	%r9d, %r12d
	jg	.L10
	movl	%r9d, %r13d
	leal	-1(%r12), %eax
	movl	(%rbx,%r8,4), %edi
	subl	%r12d, %r13d
	cmpl	$2, %eax
	jbe	.L7
	cmpl	$2, %r13d
	jbe	.L7
	addl	$1, %r13d
	movslq	%r12d, %rax
	movd	%edi, %xmm5
	movl	%r13d, %esi
	leaq	(%rdx,%rax,4), %rcx
	pshufd	$0, %xmm5, %xmm2
	xorl	%eax, %eax
	shrl	$2, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	(%rdx,%rax), %xmm1
	movdqu	(%rcx,%rax), %xmm3
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L8
	movl	%r13d, %ecx
	andl	$-4, %ecx
	leal	(%r12,%rcx), %eax
	cmpl	%ecx, %r13d
	je	.L10
	movslq	%ecx, %rcx
	movslq	%eax, %rsi
	movl	(%rdx,%rcx,4), %r14d
	movl	(%rdx,%rsi,4), %r13d
	addl	%edi, %r14d
	movl	%r14d, %ecx
	cmpl	%r13d, %r14d
	cmovl	%r13d, %ecx
	movl	%ecx, (%rdx,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%r9d, %ecx
	jg	.L10
	movslq	%ecx, %rsi
	subl	%r12d, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rsi,4), %r13d
	movl	(%rdx,%rcx,4), %r14d
	addl	%edi, %r14d
	cmpl	%r13d, %r14d
	movl	%r14d, %ecx
	cmovl	%r13d, %ecx
	addl	$2, %eax
	movl	%ecx, (%rdx,%rsi,4)
	cmpl	%eax, %r9d
	jl	.L10
	movslq	%eax, %rcx
	subl	%r12d, %eax
	cltq
	addl	(%rdx,%rax,4), %edi
	movl	(%rdx,%rcx,4), %eax
	cmpl	%eax, %edi
	cmovl	%eax, %edi
	movl	%edi, (%rdx,%rcx,4)
.L10:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L6
.L4:
	movl	(%rdx,%r9,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$848, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	leaq	0(,%r12,4), %rcx
	addq	%r12, %r13
	leaq	(%rdx,%rcx), %rax
	negq	%rcx
	leaq	(%r11,%r13,4), %r13
	movq	%rcx, %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rax,%r12), %ecx
	movl	(%rax), %esi
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	cmovl	%esi, %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%r13, %rax
	jne	.L12
	jmp	.L10
.L2:
	movslq	12(%rsp), %r9
.L28:
	leaq	dp(%rip), %rdx
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 40004
dp:
	.zero	40004
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.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 %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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	$848, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$4, %r12d
	movl	$1, %r13d
	leaq	16(%rsp), %rbx
	leaq	432(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	0(%rbp,%r12), %rdx
	leaq	(%rbx,%r12), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	%r13d, %eax
	jge	.L3
	movslq	12(%rsp), %r9
	testl	%eax, %eax
	jle	.L28
	leaq	dp(%rip), %rdx
	leal	1(%rax), %r10d
	movl	$1, %r8d
	leaq	4(%rdx), %r11
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	0(%rbp,%r8,4), %r12
	cmpl	%r9d, %r12d
	jg	.L10
	movl	%r9d, %r13d
	leal	-1(%r12), %eax
	movl	(%rbx,%r8,4), %edi
	subl	%r12d, %r13d
	cmpl	$2, %eax
	jbe	.L7
	cmpl	$2, %r13d
	jbe	.L7
	addl	$1, %r13d
	movslq	%r12d, %rax
	movd	%edi, %xmm5
	movl	%r13d, %esi
	leaq	(%rdx,%rax,4), %rcx
	pshufd	$0, %xmm5, %xmm2
	xorl	%eax, %eax
	shrl	$2, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	(%rdx,%rax), %xmm1
	movdqu	(%rcx,%rax), %xmm3
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L8
	movl	%r13d, %ecx
	andl	$-4, %ecx
	leal	(%r12,%rcx), %eax
	cmpl	%ecx, %r13d
	je	.L10
	movslq	%ecx, %rcx
	movslq	%eax, %rsi
	movl	(%rdx,%rcx,4), %r14d
	movl	(%rdx,%rsi,4), %r13d
	addl	%edi, %r14d
	movl	%r14d, %ecx
	cmpl	%r13d, %r14d
	cmovl	%r13d, %ecx
	movl	%ecx, (%rdx,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%r9d, %ecx
	jg	.L10
	movslq	%ecx, %rsi
	subl	%r12d, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rsi,4), %r13d
	movl	(%rdx,%rcx,4), %r14d
	addl	%edi, %r14d
	cmpl	%r13d, %r14d
	movl	%r14d, %ecx
	cmovl	%r13d, %ecx
	addl	$2, %eax
	movl	%ecx, (%rdx,%rsi,4)
	cmpl	%eax, %r9d
	jl	.L10
	movslq	%eax, %rcx
	subl	%r12d, %eax
	cltq
	addl	(%rdx,%rax,4), %edi
	movl	(%rdx,%rcx,4), %eax
	cmpl	%eax, %edi
	cmovl	%eax, %edi
	movl	%edi, (%rdx,%rcx,4)
.L10:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L6
.L4:
	movl	(%rdx,%r9,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$848, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	leaq	0(,%r12,4), %rcx
	addq	%r12, %r13
	leaq	(%rdx,%rcx), %rax
	negq	%rcx
	leaq	(%r11,%r13,4), %r13
	movq	%rcx, %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rax,%r12), %ecx
	movl	(%rax), %esi
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	cmovl	%esi, %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%r13, %rax
	jne	.L12
	jmp	.L10
.L2:
	movslq	12(%rsp), %r9
.L28:
	leaq	dp(%rip), %rdx
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 40004
dp:
	.zero	40004
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
/********************************************************************************************************************************/
/* main *************************************************************************************************************************/
/********************************************************************************************************************************/
int DEBUG = 1;										/* デバッグプリント 提出時は0 */

int dp[10001] = {0};

int main()
{
	int		N,W,v[101],w[101],i,j;
	//int		*dp;
	scanf("%d %d", &N, &W);
	for(i=1; i<=N; i++) {
		scanf("%d %d",&v[i],&w[i]);
	}
/*
	for(i=1;i<=N;i++) {
		for(j=0;j+w[i]<=W;j++) {
				dp[j+w[i]] = max( dp[j+w[i]] , dp[j]+v[i]);
		}
	}
*/
	for(i=1;i<=N;i++) {
		for(j=w[i];j<=W;j++) {
				dp[j] = max( dp[j] , dp[j-w[i]]+v[i]);
		}
	}

	printf("%d\n",dp[W]);

	return 0;
}

```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
/********************************************************************************************************************************/
/* main *************************************************************************************************************************/
/********************************************************************************************************************************/
int DEBUG = 1;										/* デバッグプリント 提出時は0 */

int dp[10001] = {0};

int main()
{
	int		N,W,v[101],w[101],i,j;
	//int		*dp;
	scanf("%d %d", &N, &W);
	for(i=1; i<=N; i++) {
		scanf("%d %d",&v[i],&w[i]);
	}
/*
	for(i=1;i<=N;i++) {
		for(j=0;j+w[i]<=W;j++) {
				dp[j+w[i]] = max( dp[j+w[i]] , dp[j]+v[i]);
		}
	}
*/
	for(i=1;i<=N;i++) {
		for(j=w[i];j<=W;j++) {
				dp[j] = max( dp[j] , dp[j-w[i]]+v[i]);
		}
	}

	printf("%d\n",dp[W]);

	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:

4 8
4 2
5 2
2 1
8 3

21

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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
/********************************************************************************************************************************/
/* main *************************************************************************************************************************/
/********************************************************************************************************************************/
int DEBUG = 1;										/* デバッグプリント 提出時は0 */

int dp[10001] = {0};

int main()
{
	int		N,W,v[101],w[101],i,j;
	//int		*dp;
	scanf("%d %d", &N, &W);
	for(i=1; i<=N; i++) {
		scanf("%d %d",&v[i],&w[i]);
	}
/*
	for(i=1;i<=N;i++) {
		for(j=0;j+w[i]<=W;j++) {
				dp[j+w[i]] = max( dp[j+w[i]] , dp[j]+v[i]);
		}
	}
*/
	for(i=1;i<=N;i++) {
		for(j=w[i];j<=W;j++) {
				dp[j] = max( dp[j] , dp[j-w[i]]+v[i]);
		}
	}

	printf("%d\n",dp[W]);

	return 0;
}

```

Assembly Code:

```assembly
	.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:
.LFB53:
	.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	$848, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$4, %r12d
	movl	$1, %r13d
	leaq	16(%rsp), %rbx
	leaq	432(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	0(%rbp,%r12), %rdx
	leaq	(%rbx,%r12), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	%r13d, %eax
	jge	.L3
	movslq	12(%rsp), %r9
	testl	%eax, %eax
	jle	.L28
	leaq	dp(%rip), %rdx
	leal	1(%rax), %r10d
	movl	$1, %r8d
	leaq	4(%rdx), %r11
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	0(%rbp,%r8,4), %r12
	cmpl	%r9d, %r12d
	jg	.L10
	movl	%r9d, %r13d
	leal	-1(%r12), %eax
	movl	(%rbx,%r8,4), %edi
	subl	%r12d, %r13d
	cmpl	$2, %eax
	jbe	.L7
	cmpl	$2, %r13d
	jbe	.L7
	addl	$1, %r13d
	movslq	%r12d, %rax
	movd	%edi, %xmm5
	movl	%r13d, %esi
	leaq	(%rdx,%rax,4), %rcx
	pshufd	$0, %xmm5, %xmm2
	xorl	%eax, %eax
	shrl	$2, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	(%rdx,%rax), %xmm1
	movdqu	(%rcx,%rax), %xmm3
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L8
	movl	%r13d, %ecx
	andl	$-4, %ecx
	leal	(%r12,%rcx), %eax
	cmpl	%ecx, %r13d
	je	.L10
	movslq	%ecx, %rcx
	movslq	%eax, %rsi
	movl	(%rdx,%rcx,4), %r14d
	movl	(%rdx,%rsi,4), %r13d
	addl	%edi, %r14d
	movl	%r14d, %ecx
	cmpl	%r13d, %r14d
	cmovl	%r13d, %ecx
	movl	%ecx, (%rdx,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%r9d, %ecx
	jg	.L10
	movslq	%ecx, %rsi
	subl	%r12d, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rsi,4), %r13d
	movl	(%rdx,%rcx,4), %r14d
	addl	%edi, %r14d
	cmpl	%r13d, %r14d
	movl	%r14d, %ecx
	cmovl	%r13d, %ecx
	addl	$2, %eax
	movl	%ecx, (%rdx,%rsi,4)
	cmpl	%eax, %r9d
	jl	.L10
	movslq	%eax, %rcx
	subl	%r12d, %eax
	cltq
	addl	(%rdx,%rax,4), %edi
	movl	(%rdx,%rcx,4), %eax
	cmpl	%eax, %edi
	cmovl	%eax, %edi
	movl	%edi, (%rdx,%rcx,4)
.L10:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L6
.L4:
	movl	(%rdx,%r9,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$848, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	leaq	0(,%r12,4), %rcx
	addq	%r12, %r13
	leaq	(%rdx,%rcx), %rax
	negq	%rcx
	leaq	(%r11,%r13,4), %r13
	movq	%rcx, %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rax,%r12), %ecx
	movl	(%rax), %esi
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	cmovl	%esi, %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%r13, %rax
	jne	.L12
	jmp	.L10
.L2:
	movslq	12(%rsp), %r9
.L28:
	leaq	dp(%rip), %rdx
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 40004
dp:
	.zero	40004
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.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 %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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	$848, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	$4, %r12d
	movl	$1, %r13d
	leaq	16(%rsp), %rbx
	leaq	432(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	0(%rbp,%r12), %rdx
	leaq	(%rbx,%r12), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addl	$1, %r13d
	addq	$4, %r12
	cmpl	%r13d, %eax
	jge	.L3
	movslq	12(%rsp), %r9
	testl	%eax, %eax
	jle	.L28
	leaq	dp(%rip), %rdx
	leal	1(%rax), %r10d
	movl	$1, %r8d
	leaq	4(%rdx), %r11
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	0(%rbp,%r8,4), %r12
	cmpl	%r9d, %r12d
	jg	.L10
	movl	%r9d, %r13d
	leal	-1(%r12), %eax
	movl	(%rbx,%r8,4), %edi
	subl	%r12d, %r13d
	cmpl	$2, %eax
	jbe	.L7
	cmpl	$2, %r13d
	jbe	.L7
	addl	$1, %r13d
	movslq	%r12d, %rax
	movd	%edi, %xmm5
	movl	%r13d, %esi
	leaq	(%rdx,%rax,4), %rcx
	pshufd	$0, %xmm5, %xmm2
	xorl	%eax, %eax
	shrl	$2, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	(%rdx,%rax), %xmm1
	movdqu	(%rcx,%rax), %xmm3
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L8
	movl	%r13d, %ecx
	andl	$-4, %ecx
	leal	(%r12,%rcx), %eax
	cmpl	%ecx, %r13d
	je	.L10
	movslq	%ecx, %rcx
	movslq	%eax, %rsi
	movl	(%rdx,%rcx,4), %r14d
	movl	(%rdx,%rsi,4), %r13d
	addl	%edi, %r14d
	movl	%r14d, %ecx
	cmpl	%r13d, %r14d
	cmovl	%r13d, %ecx
	movl	%ecx, (%rdx,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%r9d, %ecx
	jg	.L10
	movslq	%ecx, %rsi
	subl	%r12d, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rsi,4), %r13d
	movl	(%rdx,%rcx,4), %r14d
	addl	%edi, %r14d
	cmpl	%r13d, %r14d
	movl	%r14d, %ecx
	cmovl	%r13d, %ecx
	addl	$2, %eax
	movl	%ecx, (%rdx,%rsi,4)
	cmpl	%eax, %r9d
	jl	.L10
	movslq	%eax, %rcx
	subl	%r12d, %eax
	cltq
	addl	(%rdx,%rax,4), %edi
	movl	(%rdx,%rcx,4), %eax
	cmpl	%eax, %edi
	cmovl	%eax, %edi
	movl	%edi, (%rdx,%rcx,4)
.L10:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L6
.L4:
	movl	(%rdx,%r9,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$848, %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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	leaq	0(,%r12,4), %rcx
	addq	%r12, %r13
	leaq	(%rdx,%rcx), %rax
	negq	%rcx
	leaq	(%r11,%r13,4), %r13
	movq	%rcx, %r12
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rax,%r12), %ecx
	movl	(%rax), %esi
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	cmovl	%esi, %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%r13, %rax
	jne	.L12
	jmp	.L10
.L2:
	movslq	12(%rsp), %r9
.L28:
	leaq	dp(%rip), %rdx
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 40004
dp:
	.zero	40004
	.globl	DEBUG
	.data
	.align 4
	.type	DEBUG, @object
	.size	DEBUG, 4
DEBUG:
	.long	1
	.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:
```