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 lot[100000];

int main(void) {
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) scanf("%d", &lot[i]);

	long long max = 0;
	for (long long c = 1; c < n-1; c++) {
		long long sum = 0;
		for (long long k = 1; (k+1)*c < n-1; k++) {
			if ((n-1)%c == 0 && n-1 <= 2*k*c) break;
			sum += lot[n-1 - k*c] + lot[k*c];
			if (max < sum) max = sum;
		}
	}
	printf("%lld\n", max);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	lot
	.bss
	.align 32
	.type	lot, @object
	.size	lot, 400000
lot:
	.zero	400000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L3
	movq	$0, -40(%rbp)
	movq	$1, -32(%rbp)
	jmp	.L4
.L10:
	movq	$0, -24(%rbp)
	movq	$1, -16(%rbp)
	jmp	.L5
.L9:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L6
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	addq	%rax, %rax
	cmpq	%rax, %rdx
	jle	.L13
.L6:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cltq
	addq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jge	.L8
	movq	-24(%rbp), %rax
	movq	%rax, -40(%rbp)
.L8:
	addq	$1, -16(%rbp)
.L5:
	movq	-16(%rbp), %rax
	addq	$1, %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rdx
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, %rdx
	jl	.L9
	jmp	.L7
.L13:
	nop
.L7:
	addq	$1, -32(%rbp)
.L4:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L10
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	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	.L12
	call	__stack_chk_fail@PLT
.L12:
	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"
.LC1:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	testl	%eax, %eax
	jle	.L2
	leaq	lot(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
.L2:
	leal	-1(%rax), %edx
	movslq	%edx, %rcx
	cmpl	$1, %edx
	jle	.L16
	leaq	-1(%rax), %rsi
	leaq	-1(%rcx), %r9
	movl	$2, %ebp
	xorl	%r8d, %r8d
	leaq	-8+lot(%rip), %rbx
	shrq	%r9
	movq	%rsi, (%rsp)
	movl	$3, %r12d
	leaq	8(%rbx), %rdx
	addq	$2, %r9
	movq	$-4, %r11
	movl	$1, %edi
	leaq	-8(%rdx,%rax,4), %r13
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, 8(%rsp)
	leaq	4(%rbx), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	cmpq	%rbp, %rcx
	jle	.L13
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	testq	%rdx, %rdx
	je	.L6
	cmpq	$1, %rdi
	jne	.L31
	movq	8(%rsp), %r14
	movl	$2, %r10d
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rsi,%r10,4), %eax
	addl	-8(%r14), %eax
	cltq
	addq	%rax, %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$1, %r10
	subq	$4, %r14
	cmpq	%r10, %rcx
	jg	.L7
.L13:
	addq	$1, %rdi
	addq	$2, %rbp
	subq	$8, %rbx
	subq	$4, %r11
	subq	$4, %r13
	addq	$3, %r12
	cmpq	(%rsp), %rdi
	jne	.L5
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$40, %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
.L6:
	.cfi_restore_state
	movq	8(%rsp), %r14
	movl	$2, %r10d
	cmpq	$1, %rdi
	je	.L10
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L34:
	movl	(%rsi,%r10,4), %eax
	addl	-8(%r14), %eax
	cltq
	addq	%rax, %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$1, %r10
	subq	$4, %r14
	cmpq	%r10, %rcx
	jle	.L13
.L10:
	cmpq	%r9, %r10
	jne	.L34
	jmp	.L13
.L31:
	movq	%r12, %r10
	movq	%r13, %r14
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r14), %eax
	addl	(%rbx,%r10,4), %eax
	cltq
	addq	%rax, %rdx
	movq	%r10, %rax
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	%r11, %r14
	addq	%rdi, %r10
	cmpq	%rax, %rcx
	jg	.L8
	jmp	.L13
.L33:
	movq	%r12, %r10
	movq	%r13, %r15
	movq	%rbp, %r14
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L35:
	movl	(%rbx,%r10,4), %eax
	addl	(%r15), %eax
	cltq
	addq	%rax, %rdx
	leaq	(%r10,%rdi), %rax
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	%rbp, %r14
	addq	%r11, %r15
	cmpq	%r10, %rcx
	jle	.L13
	movq	%rax, %r10
.L12:
	cmpq	%r14, %rcx
	jg	.L35
	jmp	.L13
.L16:
	xorl	%r8d, %r8d
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	lot
	.bss
	.align 32
	.type	lot, @object
	.size	lot, 400000
lot:
	.zero	400000
	.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"
.LC1:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	testl	%eax, %eax
	jle	.L2
	leaq	lot(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	20(%rsp), %rax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
.L2:
	leal	-1(%rax), %edx
	movslq	%edx, %rcx
	cmpl	$1, %edx
	jle	.L16
	leaq	-1(%rax), %rsi
	leaq	-1(%rcx), %r9
	movl	$2, %ebp
	xorl	%r8d, %r8d
	leaq	-8+lot(%rip), %rbx
	shrq	%r9
	movq	%rsi, (%rsp)
	movl	$3, %r12d
	leaq	8(%rbx), %rdx
	addq	$2, %r9
	movq	$-4, %r11
	movl	$1, %edi
	leaq	-8(%rdx,%rax,4), %r13
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, 8(%rsp)
	leaq	4(%rbx), %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	cmpq	%rbp, %rcx
	jle	.L13
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	testq	%rdx, %rdx
	je	.L6
	cmpq	$1, %rdi
	jne	.L31
	movq	8(%rsp), %r14
	movl	$2, %r10d
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rsi,%r10,4), %eax
	addl	-8(%r14), %eax
	cltq
	addq	%rax, %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$1, %r10
	subq	$4, %r14
	cmpq	%r10, %rcx
	jg	.L7
.L13:
	addq	$1, %rdi
	addq	$2, %rbp
	subq	$8, %rbx
	subq	$4, %r11
	subq	$4, %r13
	addq	$3, %r12
	cmpq	(%rsp), %rdi
	jne	.L5
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$40, %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
.L6:
	.cfi_restore_state
	movq	8(%rsp), %r14
	movl	$2, %r10d
	cmpq	$1, %rdi
	je	.L10
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L34:
	movl	(%rsi,%r10,4), %eax
	addl	-8(%r14), %eax
	cltq
	addq	%rax, %rdx
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$1, %r10
	subq	$4, %r14
	cmpq	%r10, %rcx
	jle	.L13
.L10:
	cmpq	%r9, %r10
	jne	.L34
	jmp	.L13
.L31:
	movq	%r12, %r10
	movq	%r13, %r14
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r14), %eax
	addl	(%rbx,%r10,4), %eax
	cltq
	addq	%rax, %rdx
	movq	%r10, %rax
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	%r11, %r14
	addq	%rdi, %r10
	cmpq	%rax, %rcx
	jg	.L8
	jmp	.L13
.L33:
	movq	%r12, %r10
	movq	%r13, %r15
	movq	%rbp, %r14
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L35:
	movl	(%rbx,%r10,4), %eax
	addl	(%r15), %eax
	cltq
	addq	%rax, %rdx
	leaq	(%r10,%rdi), %rax
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	%rbp, %r14
	addq	%r11, %r15
	cmpq	%r10, %rcx
	jle	.L13
	movq	%rax, %r10
.L12:
	cmpq	%r14, %rcx
	jg	.L35
	jmp	.L13
.L16:
	xorl	%r8d, %r8d
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	lot
	.bss
	.align 32
	.type	lot, @object
	.size	lot, 400000
lot:
	.zero	400000
	.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 lot[100000];

int main(void) {
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) scanf("%d", &lot[i]);

	long long max = 0;
	for (long long c = 1; c < n-1; c++) {
		long long sum = 0;
		for (long long k = 1; (k+1)*c < n-1; k++) {
			if ((n-1)%c == 0 && n-1 <= 2*k*c) break;
			sum += lot[n-1 - k*c] + lot[k*c];
			if (max < sum) max = sum;
		}
	}
	printf("%lld\n", max);
}

6
0 10 -7 -4 -5 0
 5
0 2 5 0 0
 11
0 -4 0 -99 31 14 -15 -39 43 24 0
 6
0 2 -7 -1 -5 0
 11
0 -4 0 -99 31 13 -15 -39 64 24 0
 6
0 4 -7 -1 -3 0
 6
0 4 -7 -1 -1 0
 6
0 5 -7 -2 -1 0
 11
0 -4 0 -99 31 14 -24 -39 43 18 0
 6
0 10 -7 -4 0 0

5
 2
 63
 0
 84
 1
 3
 4
 57
 10

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 lot[100000];

int main(void) {
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) scanf("%d", &lot[i]);

	long long max = 0;
	for (long long c = 1; c < n-1; c++) {
		long long sum = 0;
		for (long long k = 1; (k+1)*c < n-1; k++) {
			if ((n-1)%c == 0 && n-1 <= 2*k*c) break;
			sum += lot[n-1 - k*c] + lot[k*c];
			if (max < sum) max = sum;
		}
	}
	printf("%lld\n", max);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	lot
	.bss
	.align 32
	.type	lot, @object
	.size	lot, 400000
lot:
	.zero	400000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L3
	movq	$0, -40(%rbp)
	movq	$1, -32(%rbp)
	jmp	.L4
.L10:
	movq	$0, -24(%rbp)
	movq	$1, -16(%rbp)
	jmp	.L5
.L9:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L6
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	addq	%rax, %rax
	cmpq	%rax, %rdx
	jle	.L13
.L6:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cltq
	addq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jge	.L8
	movq	-24(%rbp), %rax
	movq	%rax, -40(%rbp)
.L8:
	addq	$1, -16(%rbp)
.L5:
	movq	-16(%rbp), %rax
	addq	$1, %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rdx
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, %rdx
	jl	.L9
	jmp	.L7
.L13:
	nop
.L7:
	addq	$1, -32(%rbp)
.L4:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L10
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	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	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	lot
	.bss
	.align 32
	.type	lot, @object
	.size	lot, 400000
lot:
	.zero	400000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -44(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L3
	movq	$0, -40(%rbp)
	movq	$1, -32(%rbp)
	jmp	.L4
.L10:
	movq	$0, -24(%rbp)
	movq	$1, -16(%rbp)
	jmp	.L5
.L9:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cqto
	idivq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L6
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	addq	%rax, %rax
	cmpq	%rax, %rdx
	jle	.L13
.L6:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-16(%rbp), %rax
	imulq	-32(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	leaq	lot(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cltq
	addq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jge	.L8
	movq	-24(%rbp), %rax
	movq	%rax, -40(%rbp)
.L8:
	addq	$1, -16(%rbp)
.L5:
	movq	-16(%rbp), %rax
	addq	$1, %rax
	imulq	-32(%rbp), %rax
	movq	%rax, %rdx
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, %rdx
	jl	.L9
	jmp	.L7
.L13:
	nop
.L7:
	addq	$1, -32(%rbp)
.L4:
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L10
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	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	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
