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>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main(void){
    double i,n,p,ans=0;
    scanf("%lf %lf",&n,&p);
    if(n==1)ans=p;
    else if(n>=40 || n>=p)ans=1;
    else if(n==2){
        for(i=1; i<=1000000; i++){
            if(fmod(p,pow(i,2))==0)ans=i;
        }
    }
    else if(n==3){
        for(i=1; i<=10000; i++){
            if(fmod(p,pow(i,3))==0)ans=i;
        }
    }
    else for(i=1; i<=1000; i++){
        if(fmod(p,pow(i,n))==0)ans=i;
    }
    printf("%.0lf",ans);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%lf %lf"
.LC8:
	.string	"%.0lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$72, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	40(%rsp), %xmm2
	ucomisd	.LC1(%rip), %xmm2
	jp	.L2
	jne	.L2
	movq	48(%rsp), %rbx
.L4:
	movq	%rbx, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC8(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	comisd	.LC3(%rip), %xmm2
	movabsq	$0x3ff0000000000000, %rbx
	jnb	.L4
	movsd	48(%rsp), %xmm6
	comisd	%xmm6, %xmm2
	movsd	%xmm6, (%rsp)
	jnb	.L4
	ucomisd	.LC4(%rip), %xmm2
	jp	.L5
	jne	.L5
	movq	.LC1(%rip), %rax
	pxor	%xmm4, %xmm4
	movsd	%xmm4, 8(%rsp)
	movq	%xmm4, %rbx
	movq	%rax, %xmm2
.L9:
	movapd	%xmm2, %xmm1
	movsd	(%rsp), %xmm0
	movsd	%xmm2, 16(%rsp)
	mulsd	%xmm2, %xmm1
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L7
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L7:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC5(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L9
	jmp	.L4
.L5:
	ucomisd	.LC6(%rip), %xmm2
	jp	.L20
	jne	.L20
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm2
.L14:
	movq	.LC6(%rip), %rax
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 16(%rsp)
	movq	%rax, %xmm1
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L12
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L12:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC7(%rip), %xmm7
	comisd	%xmm2, %xmm7
	jnb	.L14
	jmp	.L4
.L20:
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movl	$1000, %ebp
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm3
.L10:
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movsd	%xmm2, 24(%rsp)
	movsd	%xmm3, 16(%rsp)
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm3
	movsd	24(%rsp), %xmm2
	jp	.L15
	movq	%xmm3, %rax
	cmove	%rax, %rbx
.L15:
	addsd	.LC1(%rip), %xmm3
	subl	$1, %ebp
	jne	.L10
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1078198272
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.align 8
.LC6:
	.long	0
	.long	1074266112
	.align 8
.LC7:
	.long	0
	.long	1086556160
	.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
.LC2:
	.string	"%lf %lf"
.LC8:
	.string	"%.0lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$72, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	40(%rsp), %xmm2
	ucomisd	.LC1(%rip), %xmm2
	jp	.L2
	jne	.L2
	movq	48(%rsp), %rbx
.L4:
	movq	%rbx, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC8(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	comisd	.LC3(%rip), %xmm2
	movabsq	$0x3ff0000000000000, %rbx
	jnb	.L4
	movsd	48(%rsp), %xmm6
	comisd	%xmm6, %xmm2
	movsd	%xmm6, (%rsp)
	jnb	.L4
	ucomisd	.LC4(%rip), %xmm2
	jp	.L5
	jne	.L5
	movq	.LC1(%rip), %rax
	pxor	%xmm4, %xmm4
	movsd	%xmm4, 8(%rsp)
	movq	%xmm4, %rbx
	movq	%rax, %xmm2
.L9:
	movapd	%xmm2, %xmm1
	movsd	(%rsp), %xmm0
	movsd	%xmm2, 16(%rsp)
	mulsd	%xmm2, %xmm1
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L7
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L7:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC5(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L9
	jmp	.L4
.L5:
	ucomisd	.LC6(%rip), %xmm2
	jp	.L20
	jne	.L20
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm2
.L14:
	movq	.LC6(%rip), %rax
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 16(%rsp)
	movq	%rax, %xmm1
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L12
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L12:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC7(%rip), %xmm7
	comisd	%xmm2, %xmm7
	jnb	.L14
	jmp	.L4
.L20:
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movl	$1000, %ebp
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm3
.L10:
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movsd	%xmm2, 24(%rsp)
	movsd	%xmm3, 16(%rsp)
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm3
	movsd	24(%rsp), %xmm2
	jp	.L15
	movq	%xmm3, %rax
	cmove	%rax, %rbx
.L15:
	addsd	.LC1(%rip), %xmm3
	subl	$1, %ebp
	jne	.L10
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1078198272
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.align 8
.LC6:
	.long	0
	.long	1074266112
	.align 8
.LC7:
	.long	0
	.long	1086556160
	.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
.LC2:
	.string	"%lf %lf"
.LC8:
	.string	"%.0lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$72, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	40(%rsp), %xmm2
	ucomisd	.LC1(%rip), %xmm2
	jp	.L2
	jne	.L2
	movq	48(%rsp), %rbx
.L4:
	movq	%rbx, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC8(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	comisd	.LC3(%rip), %xmm2
	movabsq	$0x3ff0000000000000, %rbx
	jnb	.L4
	movsd	48(%rsp), %xmm6
	comisd	%xmm6, %xmm2
	movsd	%xmm6, (%rsp)
	jnb	.L4
	ucomisd	.LC4(%rip), %xmm2
	jp	.L5
	jne	.L5
	movq	.LC1(%rip), %rax
	pxor	%xmm4, %xmm4
	movsd	%xmm4, 8(%rsp)
	movq	%xmm4, %rbx
	movq	%rax, %xmm2
.L9:
	movapd	%xmm2, %xmm1
	movsd	(%rsp), %xmm0
	movsd	%xmm2, 16(%rsp)
	mulsd	%xmm2, %xmm1
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L7
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L7:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC5(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L9
	jmp	.L4
.L5:
	ucomisd	.LC6(%rip), %xmm2
	jp	.L20
	jne	.L20
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm2
.L14:
	movq	.LC6(%rip), %rax
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 16(%rsp)
	movq	%rax, %xmm1
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L12
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L12:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC7(%rip), %xmm7
	comisd	%xmm2, %xmm7
	jnb	.L14
	jmp	.L4
.L20:
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movl	$1000, %ebp
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm3
.L10:
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movsd	%xmm2, 24(%rsp)
	movsd	%xmm3, 16(%rsp)
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm3
	movsd	24(%rsp), %xmm2
	jp	.L15
	movq	%xmm3, %rax
	cmove	%rax, %rbx
.L15:
	addsd	.LC1(%rip), %xmm3
	subl	$1, %ebp
	jne	.L10
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1078198272
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.align 8
.LC6:
	.long	0
	.long	1074266112
	.align 8
.LC7:
	.long	0
	.long	1086556160
	.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>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main(void){
    double i,n,p,ans=0;
    scanf("%lf %lf",&n,&p);
    if(n==1)ans=p;
    else if(n>=40 || n>=p)ans=1;
    else if(n==2){
        for(i=1; i<=1000000; i++){
            if(fmod(p,pow(i,2))==0)ans=i;
        }
    }
    else if(n==3){
        for(i=1; i<=10000; i++){
            if(fmod(p,pow(i,3))==0)ans=i;
        }
    }
    else for(i=1; i<=1000; i++){
        if(fmod(p,pow(i,n))==0)ans=i;
    }
    printf("%.0lf",ans);
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main(void){
    double i,n,p,ans=0;
    scanf("%lf %lf",&n,&p);
    if(n==1)ans=p;
    else if(n>=40 || n>=p)ans=1;
    else if(n==2){
        for(i=1; i<=1000000; i++){
            if(fmod(p,pow(i,2))==0)ans=i;
        }
    }
    else if(n==3){
        for(i=1; i<=10000; i++){
            if(fmod(p,pow(i,3))==0)ans=i;
        }
    }
    else for(i=1; i<=1000; i++){
        if(fmod(p,pow(i,n))==0)ans=i;
    }
    printf("%.0lf",ans);
    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 24

2
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>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main(void){
    double i,n,p,ans=0;
    scanf("%lf %lf",&n,&p);
    if(n==1)ans=p;
    else if(n>=40 || n>=p)ans=1;
    else if(n==2){
        for(i=1; i<=1000000; i++){
            if(fmod(p,pow(i,2))==0)ans=i;
        }
    }
    else if(n==3){
        for(i=1; i<=10000; i++){
            if(fmod(p,pow(i,3))==0)ans=i;
        }
    }
    else for(i=1; i<=1000; i++){
        if(fmod(p,pow(i,n))==0)ans=i;
    }
    printf("%.0lf",ans);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%lf %lf"
.LC8:
	.string	"%.0lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$72, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	40(%rsp), %xmm2
	ucomisd	.LC1(%rip), %xmm2
	jp	.L2
	jne	.L2
	movq	48(%rsp), %rbx
.L4:
	movq	%rbx, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC8(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	comisd	.LC3(%rip), %xmm2
	movabsq	$0x3ff0000000000000, %rbx
	jnb	.L4
	movsd	48(%rsp), %xmm6
	comisd	%xmm6, %xmm2
	movsd	%xmm6, (%rsp)
	jnb	.L4
	ucomisd	.LC4(%rip), %xmm2
	jp	.L5
	jne	.L5
	movq	.LC1(%rip), %rax
	pxor	%xmm4, %xmm4
	movsd	%xmm4, 8(%rsp)
	movq	%xmm4, %rbx
	movq	%rax, %xmm2
.L9:
	movapd	%xmm2, %xmm1
	movsd	(%rsp), %xmm0
	movsd	%xmm2, 16(%rsp)
	mulsd	%xmm2, %xmm1
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L7
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L7:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC5(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L9
	jmp	.L4
.L5:
	ucomisd	.LC6(%rip), %xmm2
	jp	.L20
	jne	.L20
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm2
.L14:
	movq	.LC6(%rip), %rax
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 16(%rsp)
	movq	%rax, %xmm1
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L12
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L12:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC7(%rip), %xmm7
	comisd	%xmm2, %xmm7
	jnb	.L14
	jmp	.L4
.L20:
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movl	$1000, %ebp
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm3
.L10:
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movsd	%xmm2, 24(%rsp)
	movsd	%xmm3, 16(%rsp)
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm3
	movsd	24(%rsp), %xmm2
	jp	.L15
	movq	%xmm3, %rax
	cmove	%rax, %rbx
.L15:
	addsd	.LC1(%rip), %xmm3
	subl	$1, %ebp
	jne	.L10
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1078198272
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.align 8
.LC6:
	.long	0
	.long	1074266112
	.align 8
.LC7:
	.long	0
	.long	1086556160
	.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
.LC2:
	.string	"%lf %lf"
.LC8:
	.string	"%.0lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$72, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdx
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movsd	40(%rsp), %xmm2
	ucomisd	.LC1(%rip), %xmm2
	jp	.L2
	jne	.L2
	movq	48(%rsp), %rbx
.L4:
	movq	%rbx, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC8(%rip), %rsi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	comisd	.LC3(%rip), %xmm2
	movabsq	$0x3ff0000000000000, %rbx
	jnb	.L4
	movsd	48(%rsp), %xmm6
	comisd	%xmm6, %xmm2
	movsd	%xmm6, (%rsp)
	jnb	.L4
	ucomisd	.LC4(%rip), %xmm2
	jp	.L5
	jne	.L5
	movq	.LC1(%rip), %rax
	pxor	%xmm4, %xmm4
	movsd	%xmm4, 8(%rsp)
	movq	%xmm4, %rbx
	movq	%rax, %xmm2
.L9:
	movapd	%xmm2, %xmm1
	movsd	(%rsp), %xmm0
	movsd	%xmm2, 16(%rsp)
	mulsd	%xmm2, %xmm1
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L7
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L7:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC5(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L9
	jmp	.L4
.L5:
	ucomisd	.LC6(%rip), %xmm2
	jp	.L20
	jne	.L20
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm2
.L14:
	movq	.LC6(%rip), %rax
	movapd	%xmm2, %xmm0
	movsd	%xmm2, 16(%rsp)
	movq	%rax, %xmm1
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm2
	jp	.L12
	movq	%xmm2, %rax
	cmove	%rax, %rbx
.L12:
	addsd	.LC1(%rip), %xmm2
	movsd	.LC7(%rip), %xmm7
	comisd	%xmm2, %xmm7
	jnb	.L14
	jmp	.L4
.L20:
	movq	.LC1(%rip), %rax
	pxor	%xmm5, %xmm5
	movl	$1000, %ebp
	movsd	%xmm5, 8(%rsp)
	movq	%xmm5, %rbx
	movq	%rax, %xmm3
.L10:
	movapd	%xmm2, %xmm1
	movapd	%xmm3, %xmm0
	movsd	%xmm2, 24(%rsp)
	movsd	%xmm3, 16(%rsp)
	call	pow@PLT
	movapd	%xmm0, %xmm1
	movsd	(%rsp), %xmm0
	call	fmod@PLT
	ucomisd	8(%rsp), %xmm0
	movsd	16(%rsp), %xmm3
	movsd	24(%rsp), %xmm2
	jp	.L15
	movq	%xmm3, %rax
	cmove	%rax, %rbx
.L15:
	addsd	.LC1(%rip), %xmm3
	subl	$1, %ebp
	jne	.L10
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1078198272
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.align 8
.LC6:
	.long	0
	.long	1074266112
	.align 8
.LC7:
	.long	0
	.long	1086556160
	.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:
```