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>
typedef long long ll;
#define rep(i,n) for(ll i=0; i<(ll)(n); i++)
#define max(l,r) ((l)>(r)?l:r)

int dp[105][10101] = {0};
int main(){
    int N, W;
    scanf("%d%d", &N, &W);
    int v[105], w[105];
    rep(i, N) scanf("%d%d", v+i, w+i);

    rep(i, N){
        rep(j, W+1){
            dp[i+1][j] = dp[i][j];
            if(j - w[i] >= 0){
                dp[i+1][j] = max(dp[i+1][j], dp[i][j-w[i]] + v[i]);
                dp[i+1][j] = max(dp[i+1][j], dp[i+1][j-w[i]] + v[i]);
            }
        }
    }

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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 4242420
dp:
	.zero	4242420
	.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
	subq	$896, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-892(%rbp), %rdx
	leaq	-896(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -888(%rbp)
	jmp	.L2
.L3:
	movq	-888(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	-432(%rbp), %rax
	addq	%rax, %rdx
	movq	-888(%rbp), %rax
	leaq	0(,%rax,4), %rcx
	leaq	-864(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -888(%rbp)
.L2:
	movl	-896(%rbp), %eax
	cltq
	cmpq	%rax, -888(%rbp)
	jl	.L3
	movq	$0, -880(%rbp)
	jmp	.L4
.L8:
	movq	$0, -872(%rbp)
	jmp	.L5
.L7:
	movq	-880(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-880(%rbp), %rax
	imulq	$10101, %rax, %rdx
	movq	-872(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-872(%rbp), %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	js	.L6
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-872(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-880(%rbp), %rax
	imulq	$10101, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-880(%rbp), %rax
	movl	-864(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movq	-880(%rbp), %rax
	addq	$1, %rax
	imulq	$10101, %rax, %rcx
	movq	-872(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	(%rcx,%rax), %eax
	movq	-880(%rbp), %rcx
	addq	$1, %rcx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-880(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-872(%rbp), %rax
	subq	%rcx, %rax
	movq	%rax, %rsi
	imulq	$10101, %rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-880(%rbp), %rax
	movl	-864(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movq	-880(%rbp), %rax
	addq	$1, %rax
	imulq	$10101, %rax, %rcx
	movq	-872(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	(%rcx,%rax), %eax
	movq	-880(%rbp), %rcx
	addq	$1, %rcx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L6:
	addq	$1, -872(%rbp)
.L5:
	movl	-892(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -872(%rbp)
	jl	.L7
	addq	$1, -880(%rbp)
.L4:
	movl	-896(%rbp), %eax
	cltq
	cmpq	%rax, -880(%rbp)
	jl	.L8
	movl	-896(%rbp), %eax
	movl	-892(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$10101, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$920, %rsp
	.cfi_def_cfa_offset 976
	movq	%fs:40, %rax
	movq	%rax, 904(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %r14
	testl	%r14d, %r14d
	jle	.L2
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	480(%rsp), %r14
	movq	%rbx, %r15
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%r12,4), %rdx
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$1, %r12
	movq	%r14, %rbp
	addq	$4, %r15
	movslq	40(%rsp), %rax
	cmpq	%r12, %rax
	jg	.L3
	movq	%rax, %r14
	movslq	44(%rsp), %rax
	testq	%r14, %r14
	jle	.L19
	testl	%eax, %eax
	js	.L19
	leaq	dp(%rip), %rdi
	movq	%rax, 8(%rsp)
	addq	$1, %rax
	xorl	%r9d, %r9d
	movq	%rdi, 16(%rsp)
	leaq	(%rbx,%r14,4), %r15
	movq	%rdi, %r13
	movq	$-40404, %r8
	movq	%r14, 24(%rsp)
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	0(%rbp), %rax
	movq	%r13, %r12
	movq	%r14, %r10
	addq	$40404, %r13
	movq	%rax, %rcx
	subq	%rax, %r10
	movq	%r13, %rax
	negq	%rcx
	leaq	0(,%rcx,4), %r11
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	(%rax,%r8), %rdx
	movl	(%rdx,%r9), %edi
	movl	%edi, (%rax)
	testq	%rcx, %rcx
	js	.L7
	movl	(%r12,%rcx,4), %esi
	movl	(%rbx), %edx
	addl	%edx, %esi
	cmpl	%edi, %esi
	cmovl	%edi, %esi
	movl	%esi, (%rax)
	addl	(%rax,%r11), %edx
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	movl	%edx, (%rax)
.L7:
	addq	$1, %rcx
	addq	$4, %rax
	cmpq	%r10, %rcx
	jne	.L8
	addq	$4, %rbx
	addq	$4, %rbp
	subq	$40404, %r8
	addq	$40404, %r9
	cmpq	%r15, %rbx
	jne	.L6
	movq	24(%rsp), %r14
.L4:
	movq	16(%rsp), %rbx
	imulq	$10101, %r14, %rax
	addq	8(%rsp), %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	904(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$920, %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
.L2:
	.cfi_restore_state
	leaq	dp(%rip), %rax
	movq	%rax, 16(%rsp)
	movslq	44(%rsp), %rax
	movq	%rax, 8(%rsp)
	jmp	.L4
.L19:
	leaq	dp(%rip), %rbx
	movq	%rax, 8(%rsp)
	movq	%rbx, 16(%rsp)
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 4242420
dp:
	.zero	4242420
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$920, %rsp
	.cfi_def_cfa_offset 976
	movq	%fs:40, %rax
	movq	%rax, 904(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	40(%rsp), %r14
	testl	%r14d, %r14d
	jle	.L2
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	480(%rsp), %r14
	movq	%rbx, %r15
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%r12,4), %rdx
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$1, %r12
	movq	%r14, %rbp
	addq	$4, %r15
	movslq	40(%rsp), %rax
	cmpq	%r12, %rax
	jg	.L3
	movq	%rax, %r14
	movslq	44(%rsp), %rax
	testq	%r14, %r14
	jle	.L19
	testl	%eax, %eax
	js	.L19
	leaq	dp(%rip), %rdi
	movq	%rax, 8(%rsp)
	addq	$1, %rax
	xorl	%r9d, %r9d
	movq	%rdi, 16(%rsp)
	leaq	(%rbx,%r14,4), %r15
	movq	%rdi, %r13
	movq	$-40404, %r8
	movq	%r14, 24(%rsp)
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	0(%rbp), %rax
	movq	%r13, %r12
	movq	%r14, %r10
	addq	$40404, %r13
	movq	%rax, %rcx
	subq	%rax, %r10
	movq	%r13, %rax
	negq	%rcx
	leaq	0(,%rcx,4), %r11
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	(%rax,%r8), %rdx
	movl	(%rdx,%r9), %edi
	movl	%edi, (%rax)
	testq	%rcx, %rcx
	js	.L7
	movl	(%r12,%rcx,4), %esi
	movl	(%rbx), %edx
	addl	%edx, %esi
	cmpl	%edi, %esi
	cmovl	%edi, %esi
	movl	%esi, (%rax)
	addl	(%rax,%r11), %edx
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	movl	%edx, (%rax)
.L7:
	addq	$1, %rcx
	addq	$4, %rax
	cmpq	%r10, %rcx
	jne	.L8
	addq	$4, %rbx
	addq	$4, %rbp
	subq	$40404, %r8
	addq	$40404, %r9
	cmpq	%r15, %rbx
	jne	.L6
	movq	24(%rsp), %r14
.L4:
	movq	16(%rsp), %rbx
	imulq	$10101, %r14, %rax
	addq	8(%rsp), %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	904(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$920, %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
.L2:
	.cfi_restore_state
	leaq	dp(%rip), %rax
	movq	%rax, 16(%rsp)
	movslq	44(%rsp), %rax
	movq	%rax, 8(%rsp)
	jmp	.L4
.L19:
	leaq	dp(%rip), %rbx
	movq	%rax, 8(%rsp)
	movq	%rbx, 16(%rsp)
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 4242420
dp:
	.zero	4242420
	.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>
typedef long long ll;
#define rep(i,n) for(ll i=0; i<(ll)(n); i++)
#define max(l,r) ((l)>(r)?l:r)

int dp[105][10101] = {0};
int main(){
    int N, W;
    scanf("%d%d", &N, &W);
    int v[105], w[105];
    rep(i, N) scanf("%d%d", v+i, w+i);

    rep(i, N){
        rep(j, W+1){
            dp[i+1][j] = dp[i][j];
            if(j - w[i] >= 0){
                dp[i+1][j] = max(dp[i+1][j], dp[i][j-w[i]] + v[i]);
                dp[i+1][j] = max(dp[i+1][j], dp[i+1][j-w[i]] + v[i]);
            }
        }
    }

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

4 8
4 2
5 2
2 1
8 3

21

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>
typedef long long ll;
#define rep(i,n) for(ll i=0; i<(ll)(n); i++)
#define max(l,r) ((l)>(r)?l:r)

int dp[105][10101] = {0};
int main(){
    int N, W;
    scanf("%d%d", &N, &W);
    int v[105], w[105];
    rep(i, N) scanf("%d%d", v+i, w+i);

    rep(i, N){
        rep(j, W+1){
            dp[i+1][j] = dp[i][j];
            if(j - w[i] >= 0){
                dp[i+1][j] = max(dp[i+1][j], dp[i][j-w[i]] + v[i]);
                dp[i+1][j] = max(dp[i+1][j], dp[i+1][j-w[i]] + v[i]);
            }
        }
    }

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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 4242420
dp:
	.zero	4242420
	.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
	subq	$896, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-892(%rbp), %rdx
	leaq	-896(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -888(%rbp)
	jmp	.L2
.L3:
	movq	-888(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	-432(%rbp), %rax
	addq	%rax, %rdx
	movq	-888(%rbp), %rax
	leaq	0(,%rax,4), %rcx
	leaq	-864(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -888(%rbp)
.L2:
	movl	-896(%rbp), %eax
	cltq
	cmpq	%rax, -888(%rbp)
	jl	.L3
	movq	$0, -880(%rbp)
	jmp	.L4
.L8:
	movq	$0, -872(%rbp)
	jmp	.L5
.L7:
	movq	-880(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-880(%rbp), %rax
	imulq	$10101, %rax, %rdx
	movq	-872(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-872(%rbp), %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	js	.L6
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-872(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-880(%rbp), %rax
	imulq	$10101, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-880(%rbp), %rax
	movl	-864(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movq	-880(%rbp), %rax
	addq	$1, %rax
	imulq	$10101, %rax, %rcx
	movq	-872(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	(%rcx,%rax), %eax
	movq	-880(%rbp), %rcx
	addq	$1, %rcx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-880(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-872(%rbp), %rax
	subq	%rcx, %rax
	movq	%rax, %rsi
	imulq	$10101, %rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-880(%rbp), %rax
	movl	-864(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movq	-880(%rbp), %rax
	addq	$1, %rax
	imulq	$10101, %rax, %rcx
	movq	-872(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	(%rcx,%rax), %eax
	movq	-880(%rbp), %rcx
	addq	$1, %rcx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L6:
	addq	$1, -872(%rbp)
.L5:
	movl	-892(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -872(%rbp)
	jl	.L7
	addq	$1, -880(%rbp)
.L4:
	movl	-896(%rbp), %eax
	cltq
	cmpq	%rax, -880(%rbp)
	jl	.L8
	movl	-896(%rbp), %eax
	movl	-892(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$10101, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 4242420
dp:
	.zero	4242420
	.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
	subq	$896, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-892(%rbp), %rdx
	leaq	-896(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -888(%rbp)
	jmp	.L2
.L3:
	movq	-888(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	-432(%rbp), %rax
	addq	%rax, %rdx
	movq	-888(%rbp), %rax
	leaq	0(,%rax,4), %rcx
	leaq	-864(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -888(%rbp)
.L2:
	movl	-896(%rbp), %eax
	cltq
	cmpq	%rax, -888(%rbp)
	jl	.L3
	movq	$0, -880(%rbp)
	jmp	.L4
.L8:
	movq	$0, -872(%rbp)
	jmp	.L5
.L7:
	movq	-880(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-880(%rbp), %rax
	imulq	$10101, %rax, %rdx
	movq	-872(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-872(%rbp), %rax
	subq	%rdx, %rax
	testq	%rax, %rax
	js	.L6
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-872(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-880(%rbp), %rax
	imulq	$10101, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-880(%rbp), %rax
	movl	-864(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movq	-880(%rbp), %rax
	addq	$1, %rax
	imulq	$10101, %rax, %rcx
	movq	-872(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	(%rcx,%rax), %eax
	movq	-880(%rbp), %rcx
	addq	$1, %rcx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movq	-880(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-880(%rbp), %rax
	movl	-432(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movq	-872(%rbp), %rax
	subq	%rcx, %rax
	movq	%rax, %rsi
	imulq	$10101, %rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-880(%rbp), %rax
	movl	-864(%rbp,%rax,4), %eax
	addl	%eax, %edx
	movq	-880(%rbp), %rax
	addq	$1, %rax
	imulq	$10101, %rax, %rcx
	movq	-872(%rbp), %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	(%rcx,%rax), %eax
	movq	-880(%rbp), %rcx
	addq	$1, %rcx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	imulq	$10101, %rcx, %rcx
	movq	-872(%rbp), %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L6:
	addq	$1, -872(%rbp)
.L5:
	movl	-892(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -872(%rbp)
	jl	.L7
	addq	$1, -880(%rbp)
.L4:
	movl	-896(%rbp), %eax
	cltq
	cmpq	%rax, -880(%rbp)
	jl	.L8
	movl	-896(%rbp), %eax
	movl	-892(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$10101, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
