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

```c
#include <stdio.h>

int main(void){
    int hamming[1000001] = {0};
    int n, m;
    int i, j;

    hamming[1] = 1;
    for (i = 1; i <= 500000; i++){
        if (hamming[i] == 1){
            hamming[i * 2] = 1;
        }
    }
    for (i = 1; i <= 333333; i++){
        if (hamming[i] == 1){
            hamming[i * 3] = 1;
        }
    }
    for (i = 1; i <= 200000; i++){
        if (hamming[i] == 1){
            hamming[i * 5] = 1;
        }
    }

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

    while (1){
        scanf("%d", &m);
        if (m == 0){
            break;
        }
        scanf("%d", &n);

        printf("%d\n", hamming[n] - hamming[m - 1]);
    }

    return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997728
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2336, %rsp
	.cfi_def_cfa_offset 4000064
	movl	$4000004, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$1, 20(%rsp)
	movq	%rax, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, (%rcx,%rax,4)
	jne	.L2
	movl	$1, (%rcx,%rax,8)
.L2:
	addq	$1, %rax
	cmpq	$500001, %rax
	jne	.L3
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rsi
	leaq	1333352(%rsp), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$1, (%rdx)
	jne	.L4
	movl	$1, (%rsi)
.L4:
	addq	$4, %rdx
	addq	$12, %rsi
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	36(%rsp), %rsi
	leaq	800004(%rcx), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$1, (%rdx)
	jne	.L6
	movl	$1, (%rsi)
.L6:
	addq	$4, %rdx
	addq	$20, %rsi
	cmpq	%rdi, %rdx
	jne	.L7
	movl	16(%rsp), %edx
	addq	$4000004, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L8
	leaq	12(%rsp), %rbp
	leaq	.LC0(%rip), %rbx
	leaq	.LC1(%rip), %r12
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	8(%rsp), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L18
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$4000032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997728
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2336, %rsp
	.cfi_def_cfa_offset 4000064
	movl	$4000004, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$1, 20(%rsp)
	movq	%rax, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, (%rcx,%rax,4)
	jne	.L2
	movl	$1, (%rcx,%rax,8)
.L2:
	addq	$1, %rax
	cmpq	$500001, %rax
	jne	.L3
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rsi
	leaq	1333352(%rsp), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$1, (%rdx)
	jne	.L4
	movl	$1, (%rsi)
.L4:
	addq	$4, %rdx
	addq	$12, %rsi
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	36(%rsp), %rsi
	leaq	800004(%rcx), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$1, (%rdx)
	jne	.L6
	movl	$1, (%rsi)
.L6:
	addq	$4, %rdx
	addq	$20, %rsi
	cmpq	%rdi, %rdx
	jne	.L7
	movl	16(%rsp), %edx
	addq	$4000004, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L8
	leaq	12(%rsp), %rbp
	leaq	.LC0(%rip), %rbx
	leaq	.LC1(%rip), %r12
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	8(%rsp), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L18
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$4000032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997728
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2336, %rsp
	.cfi_def_cfa_offset 4000064
	movl	$4000004, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$1, 20(%rsp)
	movq	%rax, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, (%rcx,%rax,4)
	jne	.L2
	movl	$1, (%rcx,%rax,8)
.L2:
	addq	$1, %rax
	cmpq	$500001, %rax
	jne	.L3
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rsi
	leaq	1333352(%rsp), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$1, (%rdx)
	jne	.L4
	movl	$1, (%rsi)
.L4:
	addq	$4, %rdx
	addq	$12, %rsi
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	36(%rsp), %rsi
	leaq	800004(%rcx), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$1, (%rdx)
	jne	.L6
	movl	$1, (%rsi)
.L6:
	addq	$4, %rdx
	addq	$20, %rsi
	cmpq	%rdi, %rdx
	jne	.L7
	movl	16(%rsp), %edx
	addq	$4000004, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L8
	leaq	12(%rsp), %rbp
	leaq	.LC0(%rip), %rbx
	leaq	.LC1(%rip), %r12
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	8(%rsp), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L18
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$4000032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include <stdio.h>

int main(void){
    int hamming[1000001] = {0};
    int n, m;
    int i, j;

    hamming[1] = 1;
    for (i = 1; i <= 500000; i++){
        if (hamming[i] == 1){
            hamming[i * 2] = 1;
        }
    }
    for (i = 1; i <= 333333; i++){
        if (hamming[i] == 1){
            hamming[i * 3] = 1;
        }
    }
    for (i = 1; i <= 200000; i++){
        if (hamming[i] == 1){
            hamming[i * 5] = 1;
        }
    }

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

    while (1){
        scanf("%d", &m);
        if (m == 0){
            break;
        }
        scanf("%d", &n);

        printf("%d\n", hamming[n] - hamming[m - 1]);
    }

    return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
    int hamming[1000001] = {0};
    int n, m;
    int i, j;

    hamming[1] = 1;
    for (i = 1; i <= 500000; i++){
        if (hamming[i] == 1){
            hamming[i * 2] = 1;
        }
    }
    for (i = 1; i <= 333333; i++){
        if (hamming[i] == 1){
            hamming[i * 3] = 1;
        }
    }
    for (i = 1; i <= 200000; i++){
        if (hamming[i] == 1){
            hamming[i * 5] = 1;
        }
    }

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

    while (1){
        scanf("%d", &m);
        if (m == 0){
            break;
        }
        scanf("%d", &n);

        printf("%d\n", hamming[n] - hamming[m - 1]);
    }

    return (0);
}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
    int hamming[1000001] = {0};
    int n, m;
    int i, j;

    hamming[1] = 1;
    for (i = 1; i <= 500000; i++){
        if (hamming[i] == 1){
            hamming[i * 2] = 1;
        }
    }
    for (i = 1; i <= 333333; i++){
        if (hamming[i] == 1){
            hamming[i * 3] = 1;
        }
    }
    for (i = 1; i <= 200000; i++){
        if (hamming[i] == 1){
            hamming[i * 5] = 1;
        }
    }

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

    while (1){
        scanf("%d", &m);
        if (m == 0){
            break;
        }
        scanf("%d", &n);

        printf("%d\n", hamming[n] - hamming[m - 1]);
    }

    return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997728
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2336, %rsp
	.cfi_def_cfa_offset 4000064
	movl	$4000004, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$1, 20(%rsp)
	movq	%rax, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, (%rcx,%rax,4)
	jne	.L2
	movl	$1, (%rcx,%rax,8)
.L2:
	addq	$1, %rax
	cmpq	$500001, %rax
	jne	.L3
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rsi
	leaq	1333352(%rsp), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$1, (%rdx)
	jne	.L4
	movl	$1, (%rsi)
.L4:
	addq	$4, %rdx
	addq	$12, %rsi
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	36(%rsp), %rsi
	leaq	800004(%rcx), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$1, (%rdx)
	jne	.L6
	movl	$1, (%rsi)
.L6:
	addq	$4, %rdx
	addq	$20, %rsi
	cmpq	%rdi, %rdx
	jne	.L7
	movl	16(%rsp), %edx
	addq	$4000004, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L8
	leaq	12(%rsp), %rbp
	leaq	.LC0(%rip), %rbx
	leaq	.LC1(%rip), %r12
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	8(%rsp), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L18
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$4000032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997728
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2336, %rsp
	.cfi_def_cfa_offset 4000064
	movl	$4000004, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	movq	%rcx, %rdi
	call	memset@PLT
	movl	$1, 20(%rsp)
	movq	%rax, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	cmpl	$1, (%rcx,%rax,4)
	jne	.L2
	movl	$1, (%rcx,%rax,8)
.L2:
	addq	$1, %rax
	cmpq	$500001, %rax
	jne	.L3
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rsi
	leaq	1333352(%rsp), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$1, (%rdx)
	jne	.L4
	movl	$1, (%rsi)
.L4:
	addq	$4, %rdx
	addq	$12, %rsi
	cmpq	%rdi, %rdx
	jne	.L5
	leaq	36(%rsp), %rsi
	leaq	800004(%rcx), %rdi
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	$1, (%rdx)
	jne	.L6
	movl	$1, (%rsi)
.L6:
	addq	$4, %rdx
	addq	$20, %rsi
	cmpq	%rdi, %rdx
	jne	.L7
	movl	16(%rsp), %edx
	addq	$4000004, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rcx, %rax
	jne	.L8
	leaq	12(%rsp), %rbp
	leaq	.LC0(%rip), %rbx
	leaq	.LC1(%rip), %r12
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movslq	8(%rsp), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	subl	$1, %eax
	movl	16(%rsp,%rdx,4), %edx
	cltq
	subl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L18
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$4000032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```