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)
const ll MOD = 1000000007;

ll scr[5050][5050];
int cnt[5050];
int main(){
    int n, k;
    scanf("%d%d", &n, &k);
    int p[5050];
    ll c[5050];
    rep(i, n) scanf("%d", &p[i]);
    rep(i, n) p[i]--;
    rep(i, n) scanf("%lld", &c[i]);
    rep(i, n+1) rep(j, n+1) scr[i][j] = -(MOD*MOD);
    
    rep(i, n){
        int idx = i;
        cnt[i] = 0;
        scr[idx][cnt[i]] = c[p[idx]];
        while(p[idx] != i) {
            idx = p[idx];
            cnt[i]++;
            scr[i][cnt[i]] = c[p[idx]];
            scr[i][cnt[i]] += scr[i][cnt[i]-1];
        }
    }
    ll ans = -(MOD*MOD);
    rep(i, n){
        if(cnt[i]+1 >= k){
            rep(j, k)
                ans = max(ans, scr[i][j]);
        }else{
            if(scr[i][cnt[i]] <= 0){
                rep(j, cnt[i]+1)
                    ans = max(ans, scr[i][j]);
            }else{
                ll tmp = scr[i][cnt[i]] * (k/(cnt[i]+1));
                int tmpk = k % (cnt[i]+1);
                rep(j, cnt[i]+1)
                    ans = max(ans, tmp - scr[i][cnt[i]] + scr[i][j]);
                rep(j, tmpk)
                    ans = max(ans, tmp + scr[i][j]);
            }
        }
    }

    printf("%lld\n", ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MOD
	.section	.rodata
	.align 8
	.type	MOD, @object
	.size	MOD, 8
MOD:
	.quad	1000000007
	.globl	scr
	.bss
	.align 32
	.type	scr, @object
	.size	scr, 204020000
scr:
	.zero	204020000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 20200
cnt:
	.zero	20200
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld\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	-57344(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3408, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-60740(%rbp), %rdx
	leaq	-60744(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -60728(%rbp)
	jmp	.L2
.L3:
	leaq	-60624(%rbp), %rdx
	movq	-60728(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -60728(%rbp)
.L2:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60728(%rbp)
	jl	.L3
	movq	$0, -60720(%rbp)
	jmp	.L4
.L5:
	movq	-60720(%rbp), %rax
	movl	-60624(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movq	-60720(%rbp), %rax
	movl	%edx, -60624(%rbp,%rax,4)
	addq	$1, -60720(%rbp)
.L4:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60720(%rbp)
	jl	.L5
	movq	$0, -60712(%rbp)
	jmp	.L6
.L7:
	leaq	-40416(%rbp), %rdx
	movq	-60712(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -60712(%rbp)
.L6:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60712(%rbp)
	jl	.L7
	movq	$0, -60704(%rbp)
	jmp	.L8
.L11:
	movq	$0, -60696(%rbp)
	jmp	.L9
.L10:
	movl	$1000000007, %edx
	movl	$1000000007, %eax
	imulq	%rdx, %rax
	negq	%rax
	movq	%rax, %rcx
	movq	-60704(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60696(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -60696(%rbp)
.L9:
	movl	-60744(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60696(%rbp)
	jl	.L10
	addq	$1, -60704(%rbp)
.L8:
	movl	-60744(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60704(%rbp)
	jl	.L11
	movq	$0, -60688(%rbp)
	jmp	.L12
.L15:
	movq	-60688(%rbp), %rax
	movl	%eax, -60736(%rbp)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movq	-60688(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	movq	-40416(%rbp,%rax,8), %rax
	movslq	%edx, %rcx
	movl	-60736(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5050, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	scr(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L13
.L14:
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movl	%eax, -60736(%rbp)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movq	-60688(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	movq	-40416(%rbp,%rax,8), %rax
	movslq	%edx, %rcx
	movq	-60688(%rbp), %rdx
	imulq	$5050, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	scr(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addq	%rsi, %rcx
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L13:
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	cltq
	cmpq	%rax, -60688(%rbp)
	jne	.L14
	addq	$1, -60688(%rbp)
.L12:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60688(%rbp)
	jl	.L15
	movl	$1000000007, %edx
	movl	$1000000007, %eax
	imulq	%rdx, %rax
	negq	%rax
	movq	%rax, -60680(%rbp)
	movq	$0, -60672(%rbp)
	jmp	.L16
.L28:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-60740(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L17
	movq	$0, -60664(%rbp)
	jmp	.L18
.L19:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60664(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-60680(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60664(%rbp)
.L18:
	movl	-60740(%rbp), %eax
	cltq
	cmpq	%rax, -60664(%rbp)
	jl	.L19
	jmp	.L20
.L17:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jg	.L21
	movq	$0, -60656(%rbp)
	jmp	.L22
.L23:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60656(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-60680(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60656(%rbp)
.L22:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60656(%rbp)
	jl	.L23
	jmp	.L20
.L21:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-60740(%rbp), %eax
	movq	-60672(%rbp), %rdx
	leaq	0(,%rdx,4), %rsi
	leaq	cnt(%rip), %rdx
	movl	(%rsi,%rdx), %edx
	leal	1(%rdx), %edi
	cltd
	idivl	%edi
	cltq
	imulq	%rcx, %rax
	movq	%rax, -60632(%rbp)
	movl	-60740(%rbp), %eax
	movq	-60672(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, -60732(%rbp)
	movq	$0, -60648(%rbp)
	jmp	.L24
.L25:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-60632(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60648(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-60680(%rbp), %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60648(%rbp)
.L24:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60648(%rbp)
	jl	.L25
	movq	$0, -60640(%rbp)
	jmp	.L26
.L27:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60640(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-60632(%rbp), %rax
	addq	%rax, %rdx
	movq	-60680(%rbp), %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60640(%rbp)
.L26:
	movl	-60732(%rbp), %eax
	cltq
	cmpq	%rax, -60640(%rbp)
	jl	.L27
.L20:
	addq	$1, -60672(%rbp)
.L16:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60672(%rbp)
	jl	.L28
	movq	-60680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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"
.LC2:
	.string	"%lld"
.LC4:
	.string	"%lld\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	-57344(%rsp), %r11
	.cfi_def_cfa 11, 57400
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3304, %rsp
	.cfi_def_cfa_offset 60704
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 60632(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%rbp, %r14
	movq	%rbp, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rdi
	addq	$4, %r12
	movq	%rdi, %r8
	cmpq	%rbx, %rdi
	jg	.L3
	testq	%rdi, %rdi
	jle	.L4
	leaq	-1(%rdi), %rax
	cmpq	$2, %rax
	jbe	.L31
	movq	%rdi, %rax
	pcmpeqd	%xmm1, %xmm1
	shrq	$2, %rax
	salq	$4, %rax
	addq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	(%r14), %xmm0
	addq	$16, %r14
	paddd	%xmm1, %xmm0
	movaps	%xmm0, -16(%r14)
	cmpq	%rax, %r14
	jne	.L6
	movq	%rdi, %rax
	andq	$-4, %rax
	testb	$3, %dil
	je	.L9
.L5:
	leaq	1(%rax), %rdx
	subl	$1, 16(%rsp,%rax,4)
	cmpq	%rdx, %rdi
	jle	.L9
	addq	$2, %rax
	subl	$1, 16(%rsp,%rdx,4)
	cmpq	%rax, %rdi
	jle	.L9
	subl	$1, 16(%rsp,%rax,4)
.L9:
	leaq	20224(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rdi
	addq	$8, %rbp
	movq	%rdi, %r8
	cmpq	%rbx, %rdi
	jg	.L8
	testl	%edi, %edi
	js	.L17
.L10:
	leaq	1(%rdi), %r11
	leaq	scr(%rip), %r9
	movdqa	.LC3(%rip), %xmm0
	xorl	%edx, %edx
	movq	%r11, %rbp
	movq	%r11, %rbx
	movq	%r9, %r10
	movabsq	$-1000000014000000049, %rsi
	shrq	%rbp
	andq	$-2, %rbx
	salq	$4, %rbp
	.p2align 4,,10
	.p2align 3
.L16:
	testl	%r8d, %r8d
	je	.L32
	leaq	0(%rbp,%r10), %rcx
	movq	%r10, %rax
	.p2align 4,,10
	.p2align 3
.L14:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L14
	movq	%rbx, %rcx
	cmpq	%r11, %rbx
	je	.L15
.L13:
	imulq	$5050, %rdx, %rax
	addq	%rcx, %rax
	movq	%rsi, (%r9,%rax,8)
.L15:
	addq	$1, %rdx
	addq	$40400, %r10
	cmpq	%r11, %rdx
	jne	.L16
.L17:
	testq	%rdi, %rdi
	jle	.L48
	leaq	scr(%rip), %r9
	xorl	%esi, %esi
	leaq	16(%rsp), %rbp
	movq	%r9, %r8
	leaq	cnt(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	0(%rbp,%rsi,4), %rax
	movl	$0, (%rbx,%rsi,4)
	movq	20224(%rsp,%rax,8), %rcx
	movq	%rcx, (%r8)
	cmpq	%rsi, %rax
	je	.L18
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	16(%rsp,%rax,4), %rax
	movl	%edx, %r10d
	addq	20224(%rsp,%rax,8), %rcx
	movq	%rcx, (%r8,%rdx,8)
	addq	$1, %rdx
	cmpq	%rsi, %rax
	jne	.L19
	movl	%r10d, (%rbx,%rsi,4)
.L18:
	addq	$1, %rsi
	addq	$40400, %r8
	cmpq	%rsi, %rdi
	jne	.L20
	movslq	12(%rsp), %rax
	leaq	scr(%rip), %rsi
	xorl	%ebp, %ebp
	xorl	%r10d, %r10d
	movabsq	$-1000000014000000049, %r8
	movq	%rax, %r12
	leaq	(%rsi,%rax,8), %r11
	.p2align 4,,10
	.p2align 3
.L29:
	movslq	(%rbx,%r10,4), %rcx
	leal	1(%rcx), %r13d
	cmpl	%r12d, %r13d
	jge	.L50
	imulq	$5050, %r10, %rax
	movslq	%r13d, %r15
	addq	%rcx, %rax
	movq	(%r9,%rax,8), %r14
	testq	%r14, %r14
	jle	.L51
	movl	%r12d, %eax
	cltd
	idivl	%r13d
	movslq	%eax, %r13
	imulq	%r14, %r13
	testq	%r15, %r15
	jle	.L26
	movq	%r13, %r15
	addq	$1, %rcx
	xorl	%eax, %eax
	subq	%r14, %r15
	.p2align 4,,10
	.p2align 3
.L27:
	movq	(%rsi,%rax,8), %r14
	addq	%r15, %r14
	cmpq	%r14, %r8
	cmovl	%r14, %r8
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L27
.L26:
	testl	%edx, %edx
	jle	.L22
	movslq	%edx, %rdx
	leaq	scr(%rip), %rax
	addq	%rbp, %rdx
	leaq	(%rax,%rdx,8), %rcx
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L28:
	movq	(%rax), %rdx
	addq	%r13, %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$8, %rax
	cmpq	%rcx, %rax
	jne	.L28
.L22:
	addq	$1, %r10
	addq	$40400, %rsi
	addq	$5050, %rbp
	addq	$40400, %r11
	cmpq	%r10, %rdi
	jne	.L29
.L12:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	60632(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$60648, %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
	.p2align 4,,10
	.p2align 3
.L51:
	.cfi_restore_state
	testq	%r15, %r15
	jle	.L22
	addq	$1, %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L25:
	movq	(%rsi,%rax,8), %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L25
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L50:
	testl	%r12d, %r12d
	jle	.L22
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L23:
	movq	(%rax), %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$8, %rax
	cmpq	%r11, %rax
	jne	.L23
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L32:
	xorl	%ecx, %ecx
	jmp	.L13
.L2:
	movslq	%r8d, %rdi
.L4:
	testl	%r8d, %r8d
	jns	.L10
.L48:
	movabsq	$-1000000014000000049, %r8
	jmp	.L12
.L31:
	xorl	%eax, %eax
	jmp	.L5
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 20200
cnt:
	.zero	20200
	.globl	scr
	.align 32
	.type	scr, @object
	.size	scr, 204020000
scr:
	.zero	204020000
	.globl	MOD
	.section	.rodata
	.align 8
	.type	MOD, @object
	.size	MOD, 8
MOD:
	.quad	1000000007
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	-1000000014000000049
	.quad	-1000000014000000049
	.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"
.LC2:
	.string	"%lld"
.LC4:
	.string	"%lld\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	-57344(%rsp), %r11
	.cfi_def_cfa 11, 57400
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3304, %rsp
	.cfi_def_cfa_offset 60704
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 60632(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%rbp, %r14
	movq	%rbp, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rdi
	addq	$4, %r12
	movq	%rdi, %r8
	cmpq	%rbx, %rdi
	jg	.L3
	testq	%rdi, %rdi
	jle	.L4
	leaq	-1(%rdi), %rax
	cmpq	$2, %rax
	jbe	.L31
	movq	%rdi, %rax
	pcmpeqd	%xmm1, %xmm1
	shrq	$2, %rax
	salq	$4, %rax
	addq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	(%r14), %xmm0
	addq	$16, %r14
	paddd	%xmm1, %xmm0
	movaps	%xmm0, -16(%r14)
	cmpq	%rax, %r14
	jne	.L6
	movq	%rdi, %rax
	andq	$-4, %rax
	testb	$3, %dil
	je	.L9
.L5:
	leaq	1(%rax), %rdx
	subl	$1, 16(%rsp,%rax,4)
	cmpq	%rdx, %rdi
	jle	.L9
	addq	$2, %rax
	subl	$1, 16(%rsp,%rdx,4)
	cmpq	%rax, %rdi
	jle	.L9
	subl	$1, 16(%rsp,%rax,4)
.L9:
	leaq	20224(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rdi
	addq	$8, %rbp
	movq	%rdi, %r8
	cmpq	%rbx, %rdi
	jg	.L8
	testl	%edi, %edi
	js	.L17
.L10:
	leaq	1(%rdi), %r11
	leaq	scr(%rip), %r9
	movdqa	.LC3(%rip), %xmm0
	xorl	%edx, %edx
	movq	%r11, %rbp
	movq	%r11, %rbx
	movq	%r9, %r10
	movabsq	$-1000000014000000049, %rsi
	shrq	%rbp
	andq	$-2, %rbx
	salq	$4, %rbp
	.p2align 4,,10
	.p2align 3
.L16:
	testl	%r8d, %r8d
	je	.L32
	leaq	0(%rbp,%r10), %rcx
	movq	%r10, %rax
	.p2align 4,,10
	.p2align 3
.L14:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L14
	movq	%rbx, %rcx
	cmpq	%r11, %rbx
	je	.L15
.L13:
	imulq	$5050, %rdx, %rax
	addq	%rcx, %rax
	movq	%rsi, (%r9,%rax,8)
.L15:
	addq	$1, %rdx
	addq	$40400, %r10
	cmpq	%r11, %rdx
	jne	.L16
.L17:
	testq	%rdi, %rdi
	jle	.L48
	leaq	scr(%rip), %r9
	xorl	%esi, %esi
	leaq	16(%rsp), %rbp
	movq	%r9, %r8
	leaq	cnt(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	0(%rbp,%rsi,4), %rax
	movl	$0, (%rbx,%rsi,4)
	movq	20224(%rsp,%rax,8), %rcx
	movq	%rcx, (%r8)
	cmpq	%rsi, %rax
	je	.L18
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	16(%rsp,%rax,4), %rax
	movl	%edx, %r10d
	addq	20224(%rsp,%rax,8), %rcx
	movq	%rcx, (%r8,%rdx,8)
	addq	$1, %rdx
	cmpq	%rsi, %rax
	jne	.L19
	movl	%r10d, (%rbx,%rsi,4)
.L18:
	addq	$1, %rsi
	addq	$40400, %r8
	cmpq	%rsi, %rdi
	jne	.L20
	movslq	12(%rsp), %rax
	leaq	scr(%rip), %rsi
	xorl	%ebp, %ebp
	xorl	%r10d, %r10d
	movabsq	$-1000000014000000049, %r8
	movq	%rax, %r12
	leaq	(%rsi,%rax,8), %r11
	.p2align 4,,10
	.p2align 3
.L29:
	movslq	(%rbx,%r10,4), %rcx
	leal	1(%rcx), %r13d
	cmpl	%r12d, %r13d
	jge	.L50
	imulq	$5050, %r10, %rax
	movslq	%r13d, %r15
	addq	%rcx, %rax
	movq	(%r9,%rax,8), %r14
	testq	%r14, %r14
	jle	.L51
	movl	%r12d, %eax
	cltd
	idivl	%r13d
	movslq	%eax, %r13
	imulq	%r14, %r13
	testq	%r15, %r15
	jle	.L26
	movq	%r13, %r15
	addq	$1, %rcx
	xorl	%eax, %eax
	subq	%r14, %r15
	.p2align 4,,10
	.p2align 3
.L27:
	movq	(%rsi,%rax,8), %r14
	addq	%r15, %r14
	cmpq	%r14, %r8
	cmovl	%r14, %r8
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L27
.L26:
	testl	%edx, %edx
	jle	.L22
	movslq	%edx, %rdx
	leaq	scr(%rip), %rax
	addq	%rbp, %rdx
	leaq	(%rax,%rdx,8), %rcx
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L28:
	movq	(%rax), %rdx
	addq	%r13, %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$8, %rax
	cmpq	%rcx, %rax
	jne	.L28
.L22:
	addq	$1, %r10
	addq	$40400, %rsi
	addq	$5050, %rbp
	addq	$40400, %r11
	cmpq	%r10, %rdi
	jne	.L29
.L12:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	60632(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$60648, %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
	.p2align 4,,10
	.p2align 3
.L51:
	.cfi_restore_state
	testq	%r15, %r15
	jle	.L22
	addq	$1, %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L25:
	movq	(%rsi,%rax,8), %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L25
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L50:
	testl	%r12d, %r12d
	jle	.L22
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L23:
	movq	(%rax), %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$8, %rax
	cmpq	%r11, %rax
	jne	.L23
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L32:
	xorl	%ecx, %ecx
	jmp	.L13
.L2:
	movslq	%r8d, %rdi
.L4:
	testl	%r8d, %r8d
	jns	.L10
.L48:
	movabsq	$-1000000014000000049, %r8
	jmp	.L12
.L31:
	xorl	%eax, %eax
	jmp	.L5
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 20200
cnt:
	.zero	20200
	.globl	scr
	.align 32
	.type	scr, @object
	.size	scr, 204020000
scr:
	.zero	204020000
	.globl	MOD
	.section	.rodata
	.align 8
	.type	MOD, @object
	.size	MOD, 8
MOD:
	.quad	1000000007
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	-1000000014000000049
	.quad	-1000000014000000049
	.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)
const ll MOD = 1000000007;

ll scr[5050][5050];
int cnt[5050];
int main(){
    int n, k;
    scanf("%d%d", &n, &k);
    int p[5050];
    ll c[5050];
    rep(i, n) scanf("%d", &p[i]);
    rep(i, n) p[i]--;
    rep(i, n) scanf("%lld", &c[i]);
    rep(i, n+1) rep(j, n+1) scr[i][j] = -(MOD*MOD);
    
    rep(i, n){
        int idx = i;
        cnt[i] = 0;
        scr[idx][cnt[i]] = c[p[idx]];
        while(p[idx] != i) {
            idx = p[idx];
            cnt[i]++;
            scr[i][cnt[i]] = c[p[idx]];
            scr[i][cnt[i]] += scr[i][cnt[i]-1];
        }
    }
    ll ans = -(MOD*MOD);
    rep(i, n){
        if(cnt[i]+1 >= k){
            rep(j, k)
                ans = max(ans, scr[i][j]);
        }else{
            if(scr[i][cnt[i]] <= 0){
                rep(j, cnt[i]+1)
                    ans = max(ans, scr[i][j]);
            }else{
                ll tmp = scr[i][cnt[i]] * (k/(cnt[i]+1));
                int tmpk = k % (cnt[i]+1);
                rep(j, cnt[i]+1)
                    ans = max(ans, tmp - scr[i][cnt[i]] + scr[i][j]);
                rep(j, tmpk)
                    ans = max(ans, tmp + scr[i][j]);
            }
        }
    }

    printf("%lld\n", ans);
}
10 58
9 1 6 7 8 4 3 2 10 5
695279662 988782657 -119067776 382975538 -151885171 -243968758 -169777795 37619092 389386780 980092719
 10 58
9 1 6 7 8 4 3 2 10 5
1020768626 988782657 -119067776 382975538 -151885171 -177220596 -169777795 37619092 389386780 980092719
 3 3
3 1 2
-1000 -2000 -3052
 10 58
9 1 6 7 8 4 3 2 10 5
695279662 903489508 -119067776 382975538 -151885171 -243968758 -169777795 37619092 389386780 980092719
 10 58
9 1 6 7 8 4 3 2 10 5
97711577 988782657 -119067776 382975538 -151885171 -269784707 -169777795 37619092 389386780 980092719
 10 58
9 1 6 7 8 4 3 2 10 5
1020768626 988782657 -119067776 382975538 -151885171 -177220596 -169777795 37619092 333701688 980092719
 10 58
9 1 6 7 8 4 3 2 10 5
97711577 988782657 -119067776 382975538 -151885171 -269784707 -169777795 37619092 389386780 607177473
 3 3
3 1 2
-653 -2000 -3000
 2 3
2 1
10 -13
 10 58
9 1 6 7 8 4 3 2 10 5
695279662 988782657 -119067776 382975538 -151885171 -243968758 -169777795 37619092 737953331 980092719

29507023469
 32761913109
 -1000
 28654091979
 23531342619
 32205062189
 19802190159
 -653
 10
 32992688979

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)
const ll MOD = 1000000007;

ll scr[5050][5050];
int cnt[5050];
int main(){
    int n, k;
    scanf("%d%d", &n, &k);
    int p[5050];
    ll c[5050];
    rep(i, n) scanf("%d", &p[i]);
    rep(i, n) p[i]--;
    rep(i, n) scanf("%lld", &c[i]);
    rep(i, n+1) rep(j, n+1) scr[i][j] = -(MOD*MOD);
    
    rep(i, n){
        int idx = i;
        cnt[i] = 0;
        scr[idx][cnt[i]] = c[p[idx]];
        while(p[idx] != i) {
            idx = p[idx];
            cnt[i]++;
            scr[i][cnt[i]] = c[p[idx]];
            scr[i][cnt[i]] += scr[i][cnt[i]-1];
        }
    }
    ll ans = -(MOD*MOD);
    rep(i, n){
        if(cnt[i]+1 >= k){
            rep(j, k)
                ans = max(ans, scr[i][j]);
        }else{
            if(scr[i][cnt[i]] <= 0){
                rep(j, cnt[i]+1)
                    ans = max(ans, scr[i][j]);
            }else{
                ll tmp = scr[i][cnt[i]] * (k/(cnt[i]+1));
                int tmpk = k % (cnt[i]+1);
                rep(j, cnt[i]+1)
                    ans = max(ans, tmp - scr[i][cnt[i]] + scr[i][j]);
                rep(j, tmpk)
                    ans = max(ans, tmp + scr[i][j]);
            }
        }
    }

    printf("%lld\n", ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MOD
	.section	.rodata
	.align 8
	.type	MOD, @object
	.size	MOD, 8
MOD:
	.quad	1000000007
	.globl	scr
	.bss
	.align 32
	.type	scr, @object
	.size	scr, 204020000
scr:
	.zero	204020000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 20200
cnt:
	.zero	20200
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld\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	-57344(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3408, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-60740(%rbp), %rdx
	leaq	-60744(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -60728(%rbp)
	jmp	.L2
.L3:
	leaq	-60624(%rbp), %rdx
	movq	-60728(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -60728(%rbp)
.L2:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60728(%rbp)
	jl	.L3
	movq	$0, -60720(%rbp)
	jmp	.L4
.L5:
	movq	-60720(%rbp), %rax
	movl	-60624(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movq	-60720(%rbp), %rax
	movl	%edx, -60624(%rbp,%rax,4)
	addq	$1, -60720(%rbp)
.L4:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60720(%rbp)
	jl	.L5
	movq	$0, -60712(%rbp)
	jmp	.L6
.L7:
	leaq	-40416(%rbp), %rdx
	movq	-60712(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -60712(%rbp)
.L6:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60712(%rbp)
	jl	.L7
	movq	$0, -60704(%rbp)
	jmp	.L8
.L11:
	movq	$0, -60696(%rbp)
	jmp	.L9
.L10:
	movl	$1000000007, %edx
	movl	$1000000007, %eax
	imulq	%rdx, %rax
	negq	%rax
	movq	%rax, %rcx
	movq	-60704(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60696(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -60696(%rbp)
.L9:
	movl	-60744(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60696(%rbp)
	jl	.L10
	addq	$1, -60704(%rbp)
.L8:
	movl	-60744(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60704(%rbp)
	jl	.L11
	movq	$0, -60688(%rbp)
	jmp	.L12
.L15:
	movq	-60688(%rbp), %rax
	movl	%eax, -60736(%rbp)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movq	-60688(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	movq	-40416(%rbp,%rax,8), %rax
	movslq	%edx, %rcx
	movl	-60736(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5050, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	scr(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L13
.L14:
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movl	%eax, -60736(%rbp)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movq	-60688(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	movq	-40416(%rbp,%rax,8), %rax
	movslq	%edx, %rcx
	movq	-60688(%rbp), %rdx
	imulq	$5050, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	scr(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addq	%rsi, %rcx
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L13:
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	cltq
	cmpq	%rax, -60688(%rbp)
	jne	.L14
	addq	$1, -60688(%rbp)
.L12:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60688(%rbp)
	jl	.L15
	movl	$1000000007, %edx
	movl	$1000000007, %eax
	imulq	%rdx, %rax
	negq	%rax
	movq	%rax, -60680(%rbp)
	movq	$0, -60672(%rbp)
	jmp	.L16
.L28:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-60740(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L17
	movq	$0, -60664(%rbp)
	jmp	.L18
.L19:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60664(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-60680(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60664(%rbp)
.L18:
	movl	-60740(%rbp), %eax
	cltq
	cmpq	%rax, -60664(%rbp)
	jl	.L19
	jmp	.L20
.L17:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jg	.L21
	movq	$0, -60656(%rbp)
	jmp	.L22
.L23:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60656(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-60680(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60656(%rbp)
.L22:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60656(%rbp)
	jl	.L23
	jmp	.L20
.L21:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-60740(%rbp), %eax
	movq	-60672(%rbp), %rdx
	leaq	0(,%rdx,4), %rsi
	leaq	cnt(%rip), %rdx
	movl	(%rsi,%rdx), %edx
	leal	1(%rdx), %edi
	cltd
	idivl	%edi
	cltq
	imulq	%rcx, %rax
	movq	%rax, -60632(%rbp)
	movl	-60740(%rbp), %eax
	movq	-60672(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, -60732(%rbp)
	movq	$0, -60648(%rbp)
	jmp	.L24
.L25:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-60632(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60648(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-60680(%rbp), %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60648(%rbp)
.L24:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60648(%rbp)
	jl	.L25
	movq	$0, -60640(%rbp)
	jmp	.L26
.L27:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60640(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-60632(%rbp), %rax
	addq	%rax, %rdx
	movq	-60680(%rbp), %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60640(%rbp)
.L26:
	movl	-60732(%rbp), %eax
	cltq
	cmpq	%rax, -60640(%rbp)
	jl	.L27
.L20:
	addq	$1, -60672(%rbp)
.L16:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60672(%rbp)
	jl	.L28
	movq	-60680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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	MOD
	.section	.rodata
	.align 8
	.type	MOD, @object
	.size	MOD, 8
MOD:
	.quad	1000000007
	.globl	scr
	.bss
	.align 32
	.type	scr, @object
	.size	scr, 204020000
scr:
	.zero	204020000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 20200
cnt:
	.zero	20200
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld\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	-57344(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3408, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-60740(%rbp), %rdx
	leaq	-60744(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -60728(%rbp)
	jmp	.L2
.L3:
	leaq	-60624(%rbp), %rdx
	movq	-60728(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -60728(%rbp)
.L2:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60728(%rbp)
	jl	.L3
	movq	$0, -60720(%rbp)
	jmp	.L4
.L5:
	movq	-60720(%rbp), %rax
	movl	-60624(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movq	-60720(%rbp), %rax
	movl	%edx, -60624(%rbp,%rax,4)
	addq	$1, -60720(%rbp)
.L4:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60720(%rbp)
	jl	.L5
	movq	$0, -60712(%rbp)
	jmp	.L6
.L7:
	leaq	-40416(%rbp), %rdx
	movq	-60712(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -60712(%rbp)
.L6:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60712(%rbp)
	jl	.L7
	movq	$0, -60704(%rbp)
	jmp	.L8
.L11:
	movq	$0, -60696(%rbp)
	jmp	.L9
.L10:
	movl	$1000000007, %edx
	movl	$1000000007, %eax
	imulq	%rdx, %rax
	negq	%rax
	movq	%rax, %rcx
	movq	-60704(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60696(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -60696(%rbp)
.L9:
	movl	-60744(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60696(%rbp)
	jl	.L10
	addq	$1, -60704(%rbp)
.L8:
	movl	-60744(%rbp), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60704(%rbp)
	jl	.L11
	movq	$0, -60688(%rbp)
	jmp	.L12
.L15:
	movq	-60688(%rbp), %rax
	movl	%eax, -60736(%rbp)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movq	-60688(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	movq	-40416(%rbp,%rax,8), %rax
	movslq	%edx, %rcx
	movl	-60736(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5050, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	scr(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L13
.L14:
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movl	%eax, -60736(%rbp)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	movq	-60688(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	movq	-40416(%rbp,%rax,8), %rax
	movslq	%edx, %rcx
	movq	-60688(%rbp), %rdx
	imulq	$5050, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	scr(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-60688(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addq	%rsi, %rcx
	movslq	%eax, %rdx
	movq	-60688(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L13:
	movl	-60736(%rbp), %eax
	cltq
	movl	-60624(%rbp,%rax,4), %eax
	cltq
	cmpq	%rax, -60688(%rbp)
	jne	.L14
	addq	$1, -60688(%rbp)
.L12:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60688(%rbp)
	jl	.L15
	movl	$1000000007, %edx
	movl	$1000000007, %eax
	imulq	%rdx, %rax
	negq	%rax
	movq	%rax, -60680(%rbp)
	movq	$0, -60672(%rbp)
	jmp	.L16
.L28:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-60740(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L17
	movq	$0, -60664(%rbp)
	jmp	.L18
.L19:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60664(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-60680(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60664(%rbp)
.L18:
	movl	-60740(%rbp), %eax
	cltq
	cmpq	%rax, -60664(%rbp)
	jl	.L19
	jmp	.L20
.L17:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jg	.L21
	movq	$0, -60656(%rbp)
	jmp	.L22
.L23:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60656(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-60680(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60656(%rbp)
.L22:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60656(%rbp)
	jl	.L23
	jmp	.L20
.L21:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-60740(%rbp), %eax
	movq	-60672(%rbp), %rdx
	leaq	0(,%rdx,4), %rsi
	leaq	cnt(%rip), %rdx
	movl	(%rsi,%rdx), %edx
	leal	1(%rdx), %edi
	cltd
	idivl	%edi
	cltq
	imulq	%rcx, %rax
	movq	%rax, -60632(%rbp)
	movl	-60740(%rbp), %eax
	movq	-60672(%rbp), %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cnt(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, -60732(%rbp)
	movq	$0, -60648(%rbp)
	jmp	.L24
.L25:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-60632(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rcx
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60648(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-60680(%rbp), %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60648(%rbp)
.L24:
	movq	-60672(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	cnt(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	cmpq	%rax, -60648(%rbp)
	jl	.L25
	movq	$0, -60640(%rbp)
	jmp	.L26
.L27:
	movq	-60672(%rbp), %rax
	imulq	$5050, %rax, %rdx
	movq	-60640(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	scr(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-60632(%rbp), %rax
	addq	%rax, %rdx
	movq	-60680(%rbp), %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, -60680(%rbp)
	addq	$1, -60640(%rbp)
.L26:
	movl	-60732(%rbp), %eax
	cltq
	cmpq	%rax, -60640(%rbp)
	jl	.L27
.L20:
	addq	$1, -60672(%rbp)
.L16:
	movl	-60744(%rbp), %eax
	cltq
	cmpq	%rax, -60672(%rbp)
	jl	.L28
	movq	-60680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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:
