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>

const int MAX = 1000000;

int hamming[2000000];
int sum[2000000];

int main(void)
{
    int m, n;
    int i, j, k;

    for (i = 1; i <= MAX; i *= 2){
        for (j = 1; i * j <= MAX; j *= 3){
            for (k = 1; i * j * k <= MAX; k *= 5){
                hamming[i * j * k] = 1;
            }
        }
    }

    for (i = 1; i <= MAX; i++){
        sum[i] = sum[i - 1] + hamming[i];
    }

    while (scanf("%d %d", &m, &n) == 2){
        printf("%d\n", sum[n] - sum[m - 1]);
    }

    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MAX
	.section	.rodata
	.align 4
	.type	MAX, @object
	.size	MAX, 4
MAX:
	.long	1000000
	.globl	hamming
	.bss
	.align 32
	.type	hamming, @object
	.size	hamming, 8000000
hamming:
	.zero	8000000
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 8000000
sum:
	.zero	8000000
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d %d"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -20(%rbp)
	jmp	.L2
.L7:
	movl	$1, -16(%rbp)
	jmp	.L3
.L6:
	movl	$1, -12(%rbp)
	jmp	.L4
.L5:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	imull	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hamming(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
.L4:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	imull	-12(%rbp), %eax
	movl	$1000000, %edx
	cmpl	%edx, %eax
	jle	.L5
	movl	-16(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
.L3:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	movl	$1000000, %edx
	cmpl	%edx, %eax
	jle	.L6
	sall	-20(%rbp)
.L2:
	movl	$1000000, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L7
	movl	$1, -20(%rbp)
	jmp	.L8
.L9:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hamming(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L8:
	movl	$1000000, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L9
	jmp	.L10
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	sum(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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\n"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$20, %r9d
	movl	$1, %r8d
	leaq	hamming(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%r8d, %ecx
	movl	$1, %edi
	cmpl	$1000000, %r8d
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%ecx, %eax
	movl	$1, %edx
	cmpl	$1000000, %ecx
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	cltq
	leal	(%rdx,%rdx,4), %edx
	movl	$1, (%rsi,%rax,4)
	movl	%edx, %eax
	imull	%ecx, %eax
	cmpl	$1000000, %eax
	jle	.L3
.L5:
	leal	(%rdi,%rdi,2), %edi
	movl	%edi, %ecx
	imull	%r8d, %ecx
	cmpl	$1000000, %ecx
	jle	.L7
.L4:
	addl	%r8d, %r8d
	subl	$1, %r9d
	jne	.L2
	movl	sum(%rip), %edx
	movl	$4, %eax
	leaq	sum(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rsi,%rax), %edx
	movl	%edx, (%rbx,%rax)
	addq	$4, %rax
	cmpq	$4000004, %rax
	jne	.L8
	leaq	4(%rsp), %r13
	movq	%rsp, %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC0(%rip), %r14
	jmp	.L9
.L10:
	movl	(%rsp), %eax
	movslq	4(%rsp), %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	(%rbx,%rdx,4), %edx
	cltq
	subl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L10
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$16, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	sum
	.bss
	.align 32
	.type	sum, @object
	.size	sum, 8000000
sum:
	.zero	8000000
	.globl	hamming
	.align 32
	.type	hamming, @object
	.size	hamming, 8000000
hamming:
	.zero	8000000
	.globl	MAX
	.section	.rodata
	.align 4
	.type	MAX, @object
	.size	MAX, 4
MAX:
	.long	1000000
	.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\n"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$20, %r9d
	movl	$1, %r8d
	leaq	hamming(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%r8d, %ecx
	movl	$1, %edi
	cmpl	$1000000, %r8d
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%ecx, %eax
	movl	$1, %edx
	cmpl	$1000000, %ecx
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	cltq
	leal	(%rdx,%rdx,4), %edx
	movl	$1, (%rsi,%rax,4)
	movl	%edx, %eax
	imull	%ecx, %eax
	cmpl	$1000000, %eax
	jle	.L3
.L5:
	leal	(%rdi,%rdi,2), %edi
	movl	%edi, %ecx
	imull	%r8d, %ecx
	cmpl	$1000000, %ecx
	jle	.L7
.L4:
	addl	%r8d, %r8d
	subl	$1, %r9d
	jne	.L2
	movl	sum(%rip), %edx
	movl	$4, %eax
	leaq	sum(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rsi,%rax), %edx
	movl	%edx, (%rbx,%rax)
	addq	$4, %rax
	cmpq	$4000004, %rax
	jne	.L8
	leaq	4(%rsp), %r13
	movq	%rsp, %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC0(%rip), %r14
	jmp	.L9
.L10:
	movl	(%rsp), %eax
	movslq	4(%rsp), %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	(%rbx,%rdx,4), %edx
	cltq
	subl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L10
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$16, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	sum
	.bss
	.align 32
	.type	sum, @object
	.size	sum, 8000000
sum:
	.zero	8000000
	.globl	hamming
	.align 32
	.type	hamming, @object
	.size	hamming, 8000000
hamming:
	.zero	8000000
	.globl	MAX
	.section	.rodata
	.align 4
	.type	MAX, @object
	.size	MAX, 4
MAX:
	.long	1000000
	.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>

const int MAX = 1000000;

int hamming[2000000];
int sum[2000000];

int main(void)
{
    int m, n;
    int i, j, k;

    for (i = 1; i <= MAX; i *= 2){
        for (j = 1; i * j <= MAX; j *= 3){
            for (k = 1; i * j * k <= MAX; k *= 5){
                hamming[i * j * k] = 1;
            }
        }
    }

    for (i = 1; i <= MAX; i++){
        sum[i] = sum[i - 1] + hamming[i];
    }

    while (scanf("%d %d", &m, &n) == 2){
        printf("%d\n", sum[n] - sum[m - 1]);
    }

    return (0);
}
3 8
2 27
1 86
0
 3 9
2 27
1 86
0
 3 8
1 35
1 86
0
 5 8
2 27
1 86
0
 3 9
4 27
1 86
0
 3 9
6 27
1 86
0
 3 9
6 31
1 86
0
 3 6
6 31
1 86
0
 3 6
6 9
1 86
0
 3 6
8 9
1 86
0

5
16
31
 6
16
31
 5
19
31
 3
16
31
 6
14
31
 6
12
31
 6
13
31
 4
13
31
 4
3
31
 4
2
31

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>

const int MAX = 1000000;

int hamming[2000000];
int sum[2000000];

int main(void)
{
    int m, n;
    int i, j, k;

    for (i = 1; i <= MAX; i *= 2){
        for (j = 1; i * j <= MAX; j *= 3){
            for (k = 1; i * j * k <= MAX; k *= 5){
                hamming[i * j * k] = 1;
            }
        }
    }

    for (i = 1; i <= MAX; i++){
        sum[i] = sum[i - 1] + hamming[i];
    }

    while (scanf("%d %d", &m, &n) == 2){
        printf("%d\n", sum[n] - sum[m - 1]);
    }

    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MAX
	.section	.rodata
	.align 4
	.type	MAX, @object
	.size	MAX, 4
MAX:
	.long	1000000
	.globl	hamming
	.bss
	.align 32
	.type	hamming, @object
	.size	hamming, 8000000
hamming:
	.zero	8000000
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 8000000
sum:
	.zero	8000000
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d %d"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -20(%rbp)
	jmp	.L2
.L7:
	movl	$1, -16(%rbp)
	jmp	.L3
.L6:
	movl	$1, -12(%rbp)
	jmp	.L4
.L5:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	imull	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hamming(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
.L4:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	imull	-12(%rbp), %eax
	movl	$1000000, %edx
	cmpl	%edx, %eax
	jle	.L5
	movl	-16(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
.L3:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	movl	$1000000, %edx
	cmpl	%edx, %eax
	jle	.L6
	sall	-20(%rbp)
.L2:
	movl	$1000000, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L7
	movl	$1, -20(%rbp)
	jmp	.L8
.L9:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hamming(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L8:
	movl	$1000000, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L9
	jmp	.L10
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	sum(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	MAX
	.section	.rodata
	.align 4
	.type	MAX, @object
	.size	MAX, 4
MAX:
	.long	1000000
	.globl	hamming
	.bss
	.align 32
	.type	hamming, @object
	.size	hamming, 8000000
hamming:
	.zero	8000000
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 8000000
sum:
	.zero	8000000
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d %d"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -20(%rbp)
	jmp	.L2
.L7:
	movl	$1, -16(%rbp)
	jmp	.L3
.L6:
	movl	$1, -12(%rbp)
	jmp	.L4
.L5:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	imull	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hamming(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
.L4:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	imull	-12(%rbp), %eax
	movl	$1000000, %edx
	cmpl	%edx, %eax
	jle	.L5
	movl	-16(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -16(%rbp)
.L3:
	movl	-20(%rbp), %eax
	imull	-16(%rbp), %eax
	movl	$1000000, %edx
	cmpl	%edx, %eax
	jle	.L6
	sall	-20(%rbp)
.L2:
	movl	$1000000, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L7
	movl	$1, -20(%rbp)
	jmp	.L8
.L9:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hamming(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L8:
	movl	$1000000, %eax
	cmpl	%eax, -20(%rbp)
	jle	.L9
	jmp	.L10
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	sum(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	sum(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
