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>
#include<stdbool.h>

typedef long long int ll;

static inline ll gcd(ll a,ll b){
    ll max,min,r;
    max = a<b?b:a;
    min = a<b?a:b;
    while(min){
        r = max;
        r %= min;
        max = min;
        min = r;
    }
    return max;
}

bool prime_flag[1000001];//caution true -> 0 fasle -> 1

int main(void){
    ll a,b,gcdnum,count = 1;
    scanf("%lld %lld",&a,&b);
    gcdnum = gcd(a,b);
    for(int i = 2;i*2 < 1000001;i++)for(int j = 2;i * j < 1000001;j++)prime_flag[i*j] = 1;
    for(ll i = 2;i*i <= gcdnum;i++)if(!(prime_flag[i] || (gcdnum % i))){
        count++;
        while(!(gcdnum % i))gcdnum /= i;
    }
    if(gcdnum != 1)count++;
    printf("%lld",count);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	gcd, @function
gcd:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -16(%rbp)
.L2:
	cmpq	$0, -16(%rbp)
	jne	.L3
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcd, .-gcd
	.globl	prime_flag
	.bss
	.align 32
	.type	prime_flag, @object
	.size	prime_flag, 1000001
prime_flag:
	.zero	1000001
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, -24(%rbp)
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	gcd
	movq	%rax, -32(%rbp)
	movl	$2, -56(%rbp)
	jmp	.L6
.L9:
	movl	$2, -52(%rbp)
	jmp	.L7
.L8:
	movl	-56(%rbp), %eax
	imull	-52(%rbp), %eax
	cltq
	leaq	prime_flag(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -52(%rbp)
.L7:
	movl	-56(%rbp), %eax
	imull	-52(%rbp), %eax
	cmpl	$1000000, %eax
	jle	.L8
	addl	$1, -56(%rbp)
.L6:
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	cmpl	$1000000, %eax
	jle	.L9
	movq	$2, -16(%rbp)
	jmp	.L10
.L14:
	leaq	prime_flag(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L11
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L11
	addq	$1, -24(%rbp)
	jmp	.L12
.L13:
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rax, -32(%rbp)
.L12:
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L13
.L11:
	addq	$1, -16(%rbp)
.L10:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L14
	cmpq	$1, -32(%rbp)
	je	.L15
	addq	$1, -24(%rbp)
.L15:
	movq	-24(%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	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"%lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rcx
	cmpq	%rcx, %rdx
	movq	%rcx, %rax
	cmovge	%rdx, %rax
	cmovg	%rcx, %rdx
	testq	%rdx, %rdx
	je	.L13
.L3:
	movq	%rdx, %rdi
	cqto
	idivq	%rdi
	movq	%rdi, %rax
	testq	%rdx, %rdx
	jne	.L3
.L2:
	movl	$2, %edx
	movl	$4, %esi
	leaq	prime_flag(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movb	$1, (%rcx,%rax)
	addq	%rdx, %rax
	cmpl	$1000000, %eax
	jle	.L5
	addq	$1, %rdx
	addq	$2, %rsi
	cmpq	$500001, %rdx
	jne	.L4
	cmpq	$3, %rdi
	jle	.L14
	movl	$2, %esi
	movl	$1, %r8d
	jmp	.L10
.L8:
	addq	$1, %rsi
	movq	%rsi, %rax
	imulq	%rsi, %rax
	cmpq	%rdi, %rax
	jg	.L7
.L10:
	cmpb	$0, (%rcx,%rsi)
	jne	.L8
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L8
	addq	$1, %r8
.L9:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	cqto
	movq	%rax, %rdi
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L9
	addq	$1, %rsi
	movq	%rsi, %rax
	imulq	%rsi, %rax
	cmpq	%rdi, %rax
	jle	.L10
.L7:
	xorl	%eax, %eax
	cmpq	$1, %rdi
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	setne	%al
	addq	%rax, %r8
	xorl	%eax, %eax
	movq	%r8, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movq	%rax, %rdi
	jmp	.L2
.L14:
	movl	$1, %r8d
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	prime_flag
	.bss
	.align 32
	.type	prime_flag, @object
	.size	prime_flag, 1000001
prime_flag:
	.zero	1000001
	.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	"%lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rcx
	cmpq	%rcx, %rdx
	movq	%rcx, %rax
	cmovge	%rdx, %rax
	cmovg	%rcx, %rdx
	testq	%rdx, %rdx
	je	.L13
.L3:
	movq	%rdx, %rdi
	cqto
	idivq	%rdi
	movq	%rdi, %rax
	testq	%rdx, %rdx
	jne	.L3
.L2:
	movl	$2, %edx
	movl	$4, %esi
	leaq	prime_flag(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movb	$1, (%rcx,%rax)
	addq	%rdx, %rax
	cmpl	$1000000, %eax
	jle	.L5
	addq	$1, %rdx
	addq	$2, %rsi
	cmpq	$500001, %rdx
	jne	.L4
	cmpq	$3, %rdi
	jle	.L14
	movl	$2, %esi
	movl	$1, %r8d
	jmp	.L10
.L8:
	addq	$1, %rsi
	movq	%rsi, %rax
	imulq	%rsi, %rax
	cmpq	%rdi, %rax
	jg	.L7
.L10:
	cmpb	$0, (%rcx,%rsi)
	jne	.L8
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L8
	addq	$1, %r8
.L9:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	cqto
	movq	%rax, %rdi
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L9
	addq	$1, %rsi
	movq	%rsi, %rax
	imulq	%rsi, %rax
	cmpq	%rdi, %rax
	jle	.L10
.L7:
	xorl	%eax, %eax
	cmpq	$1, %rdi
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	setne	%al
	addq	%rax, %r8
	xorl	%eax, %eax
	movq	%r8, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movq	%rax, %rdi
	jmp	.L2
.L14:
	movl	$1, %r8d
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	prime_flag
	.bss
	.align 32
	.type	prime_flag, @object
	.size	prime_flag, 1000001
prime_flag:
	.zero	1000001
	.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>
#include<stdbool.h>

typedef long long int ll;

static inline ll gcd(ll a,ll b){
    ll max,min,r;
    max = a<b?b:a;
    min = a<b?a:b;
    while(min){
        r = max;
        r %= min;
        max = min;
        min = r;
    }
    return max;
}

bool prime_flag[1000001];//caution true -> 0 fasle -> 1

int main(void){
    ll a,b,gcdnum,count = 1;
    scanf("%lld %lld",&a,&b);
    gcdnum = gcd(a,b);
    for(int i = 2;i*2 < 1000001;i++)for(int j = 2;i * j < 1000001;j++)prime_flag[i*j] = 1;
    for(ll i = 2;i*i <= gcdnum;i++)if(!(prime_flag[i] || (gcdnum % i))){
        count++;
        while(!(gcdnum % i))gcdnum /= i;
    }
    if(gcdnum != 1)count++;
    printf("%lld",count);
    return 0;
}
2 2019
 420 324
 3 2019
 19 18
 19 16
 420 71
 6 2019
 19 9
 420 47
 6 949

1 3 2 1 1 1 2 1 1 1
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>
#include<stdbool.h>

typedef long long int ll;

static inline ll gcd(ll a,ll b){
    ll max,min,r;
    max = a<b?b:a;
    min = a<b?a:b;
    while(min){
        r = max;
        r %= min;
        max = min;
        min = r;
    }
    return max;
}

bool prime_flag[1000001];//caution true -> 0 fasle -> 1

int main(void){
    ll a,b,gcdnum,count = 1;
    scanf("%lld %lld",&a,&b);
    gcdnum = gcd(a,b);
    for(int i = 2;i*2 < 1000001;i++)for(int j = 2;i * j < 1000001;j++)prime_flag[i*j] = 1;
    for(ll i = 2;i*i <= gcdnum;i++)if(!(prime_flag[i] || (gcdnum % i))){
        count++;
        while(!(gcdnum % i))gcdnum /= i;
    }
    if(gcdnum != 1)count++;
    printf("%lld",count);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	gcd, @function
gcd:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -16(%rbp)
.L2:
	cmpq	$0, -16(%rbp)
	jne	.L3
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcd, .-gcd
	.globl	prime_flag
	.bss
	.align 32
	.type	prime_flag, @object
	.size	prime_flag, 1000001
prime_flag:
	.zero	1000001
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, -24(%rbp)
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	gcd
	movq	%rax, -32(%rbp)
	movl	$2, -56(%rbp)
	jmp	.L6
.L9:
	movl	$2, -52(%rbp)
	jmp	.L7
.L8:
	movl	-56(%rbp), %eax
	imull	-52(%rbp), %eax
	cltq
	leaq	prime_flag(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -52(%rbp)
.L7:
	movl	-56(%rbp), %eax
	imull	-52(%rbp), %eax
	cmpl	$1000000, %eax
	jle	.L8
	addl	$1, -56(%rbp)
.L6:
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	cmpl	$1000000, %eax
	jle	.L9
	movq	$2, -16(%rbp)
	jmp	.L10
.L14:
	leaq	prime_flag(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L11
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L11
	addq	$1, -24(%rbp)
	jmp	.L12
.L13:
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rax, -32(%rbp)
.L12:
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L13
.L11:
	addq	$1, -16(%rbp)
.L10:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L14
	cmpq	$1, -32(%rbp)
	je	.L15
	addq	$1, -24(%rbp)
.L15:
	movq	-24(%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	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.type	gcd, @function
gcd:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -16(%rbp)
.L2:
	cmpq	$0, -16(%rbp)
	jne	.L3
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcd, .-gcd
	.globl	prime_flag
	.bss
	.align 32
	.type	prime_flag, @object
	.size	prime_flag, 1000001
prime_flag:
	.zero	1000001
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, -24(%rbp)
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	gcd
	movq	%rax, -32(%rbp)
	movl	$2, -56(%rbp)
	jmp	.L6
.L9:
	movl	$2, -52(%rbp)
	jmp	.L7
.L8:
	movl	-56(%rbp), %eax
	imull	-52(%rbp), %eax
	cltq
	leaq	prime_flag(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -52(%rbp)
.L7:
	movl	-56(%rbp), %eax
	imull	-52(%rbp), %eax
	cmpl	$1000000, %eax
	jle	.L8
	addl	$1, -56(%rbp)
.L6:
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	cmpl	$1000000, %eax
	jle	.L9
	movq	$2, -16(%rbp)
	jmp	.L10
.L14:
	leaq	prime_flag(%rip), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L11
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L11
	addq	$1, -24(%rbp)
	jmp	.L12
.L13:
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rax, -32(%rbp)
.L12:
	movq	-32(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L13
.L11:
	addq	$1, -16(%rbp)
.L10:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	cmpq	%rax, -32(%rbp)
	jge	.L14
	cmpq	$1, -32(%rbp)
	je	.L15
	addq	$1, -24(%rbp)
.L15:
	movq	-24(%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	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
