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 <math.h>

#define PI 3.1415926535897932384626433832795028841
#define EPS (1e-10)

int main(void) {
	double R;
	while(scanf("%lf",&R)==1 && R>0.0) {
		int bunbo,bunsi1,bunsi2;
		double g1,g2;
		for(bunbo=1;bunbo<=100000000;bunbo++) {
			bunsi1=(int)(PI*bunbo);
			bunsi2=bunsi1+1;
			g1=fabs((double)bunsi1/bunbo-PI);
			g2=fabs((double)bunsi2/bunbo-PI);
			if(g1<R+EPS ||g2<R+EPS)break;
		}
		printf("%d/%d\n",g1<=g2?bunsi1:bunsi2,bunbo);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d/%d\n"
.LC4:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC4(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, %ecx
	cmpl	$1, %eax
	jne	.L7
	movsd	(%rsp), %xmm4
	pxor	%xmm6, %xmm6
	movq	.LC1(%rip), %rax
	movq	.LC2(%rip), %xmm5
	comisd	%xmm6, %xmm4
	movq	%rax, %xmm3
	jbe	.L7
	addsd	.LC0(%rip), %xmm4
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	comisd	%xmm1, %xmm4
	ja	.L3
	addl	$1, %ecx
	cmpl	$100000001, %ecx
	je	.L3
.L4:
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm2
	movapd	%xmm2, %xmm0
	mulsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	leal	1(%rax), %edx
	cvtsi2sdl	%edx, %xmm1
	divsd	%xmm2, %xmm0
	divsd	%xmm2, %xmm1
	subsd	%xmm3, %xmm0
	andpd	%xmm5, %xmm0
	comisd	%xmm0, %xmm4
	subsd	%xmm3, %xmm1
	andpd	%xmm5, %xmm1
	jbe	.L14
.L3:
	ucomisd	%xmm0, %xmm1
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cmovnb	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-640172613
	.long	1037794527
	.align 8
.LC1:
	.long	1413754136
	.long	1074340347
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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
.LC3:
	.string	"%d/%d\n"
.LC4:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC4(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, %ecx
	cmpl	$1, %eax
	jne	.L7
	movsd	(%rsp), %xmm4
	pxor	%xmm6, %xmm6
	movq	.LC1(%rip), %rax
	movq	.LC2(%rip), %xmm5
	comisd	%xmm6, %xmm4
	movq	%rax, %xmm3
	jbe	.L7
	addsd	.LC0(%rip), %xmm4
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	comisd	%xmm1, %xmm4
	ja	.L3
	addl	$1, %ecx
	cmpl	$100000001, %ecx
	je	.L3
.L4:
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm2
	movapd	%xmm2, %xmm0
	mulsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	leal	1(%rax), %edx
	cvtsi2sdl	%edx, %xmm1
	divsd	%xmm2, %xmm0
	divsd	%xmm2, %xmm1
	subsd	%xmm3, %xmm0
	andpd	%xmm5, %xmm0
	comisd	%xmm0, %xmm4
	subsd	%xmm3, %xmm1
	andpd	%xmm5, %xmm1
	jbe	.L14
.L3:
	ucomisd	%xmm0, %xmm1
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cmovnb	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-640172613
	.long	1037794527
	.align 8
.LC1:
	.long	1413754136
	.long	1074340347
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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
.LC3:
	.string	"%d/%d\n"
.LC4:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC4(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, %ecx
	cmpl	$1, %eax
	jne	.L7
	movsd	(%rsp), %xmm4
	pxor	%xmm6, %xmm6
	movq	.LC1(%rip), %rax
	movq	.LC2(%rip), %xmm5
	comisd	%xmm6, %xmm4
	movq	%rax, %xmm3
	jbe	.L7
	addsd	.LC0(%rip), %xmm4
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	comisd	%xmm1, %xmm4
	ja	.L3
	addl	$1, %ecx
	cmpl	$100000001, %ecx
	je	.L3
.L4:
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm2
	movapd	%xmm2, %xmm0
	mulsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	leal	1(%rax), %edx
	cvtsi2sdl	%edx, %xmm1
	divsd	%xmm2, %xmm0
	divsd	%xmm2, %xmm1
	subsd	%xmm3, %xmm0
	andpd	%xmm5, %xmm0
	comisd	%xmm0, %xmm4
	subsd	%xmm3, %xmm1
	andpd	%xmm5, %xmm1
	jbe	.L14
.L3:
	ucomisd	%xmm0, %xmm1
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cmovnb	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-640172613
	.long	1037794527
	.align 8
.LC1:
	.long	1413754136
	.long	1074340347
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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 <math.h>

#define PI 3.1415926535897932384626433832795028841
#define EPS (1e-10)

int main(void) {
	double R;
	while(scanf("%lf",&R)==1 && R>0.0) {
		int bunbo,bunsi1,bunsi2;
		double g1,g2;
		for(bunbo=1;bunbo<=100000000;bunbo++) {
			bunsi1=(int)(PI*bunbo);
			bunsi2=bunsi1+1;
			g1=fabs((double)bunsi1/bunbo-PI);
			g2=fabs((double)bunsi2/bunbo-PI);
			if(g1<R+EPS ||g2<R+EPS)break;
		}
		printf("%d/%d\n",g1<=g2?bunsi1:bunsi2,bunbo);
	}
	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 <math.h>

#define PI 3.1415926535897932384626433832795028841
#define EPS (1e-10)

int main(void) {
	double R;
	while(scanf("%lf",&R)==1 && R>0.0) {
		int bunbo,bunsi1,bunsi2;
		double g1,g2;
		for(bunbo=1;bunbo<=100000000;bunbo++) {
			bunsi1=(int)(PI*bunbo);
			bunsi2=bunsi1+1;
			g1=fabs((double)bunsi1/bunbo-PI);
			g2=fabs((double)bunsi2/bunbo-PI);
			if(g1<R+EPS ||g2<R+EPS)break;
		}
		printf("%d/%d\n",g1<=g2?bunsi1:bunsi2,bunbo);
	}
	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:

1.052205526162189
0.05
0.0
 1.052205526162189
0.08430864816896695
0.0
 1.052205526162189
0.39787231457161826
0.0
 1.0557371636651482
0.05
0.0
 1.1386381399168386
0.08430864816896695
0.0
 0.4926473169582818
0.05
0.0
 1.052205526162189
0.4848984165761246
0.0
 0.4926473169582818
0.661939152280086
0.0
 1.052205526162189
0.9479778197434483
0.0
 0.5656950408067312
0.05
0.0

3/1
19/6
 3/1
16/5
 3/1
3/1
 3/1
19/6
 3/1
16/5
 3/1
19/6
 3/1
3/1
 3/1
3/1
 3/1
3/1
 3/1
19/6

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 <math.h>

#define PI 3.1415926535897932384626433832795028841
#define EPS (1e-10)

int main(void) {
	double R;
	while(scanf("%lf",&R)==1 && R>0.0) {
		int bunbo,bunsi1,bunsi2;
		double g1,g2;
		for(bunbo=1;bunbo<=100000000;bunbo++) {
			bunsi1=(int)(PI*bunbo);
			bunsi2=bunsi1+1;
			g1=fabs((double)bunsi1/bunbo-PI);
			g2=fabs((double)bunsi2/bunbo-PI);
			if(g1<R+EPS ||g2<R+EPS)break;
		}
		printf("%d/%d\n",g1<=g2?bunsi1:bunsi2,bunbo);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d/%d\n"
.LC4:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC4(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, %ecx
	cmpl	$1, %eax
	jne	.L7
	movsd	(%rsp), %xmm4
	pxor	%xmm6, %xmm6
	movq	.LC1(%rip), %rax
	movq	.LC2(%rip), %xmm5
	comisd	%xmm6, %xmm4
	movq	%rax, %xmm3
	jbe	.L7
	addsd	.LC0(%rip), %xmm4
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	comisd	%xmm1, %xmm4
	ja	.L3
	addl	$1, %ecx
	cmpl	$100000001, %ecx
	je	.L3
.L4:
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm2
	movapd	%xmm2, %xmm0
	mulsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	leal	1(%rax), %edx
	cvtsi2sdl	%edx, %xmm1
	divsd	%xmm2, %xmm0
	divsd	%xmm2, %xmm1
	subsd	%xmm3, %xmm0
	andpd	%xmm5, %xmm0
	comisd	%xmm0, %xmm4
	subsd	%xmm3, %xmm1
	andpd	%xmm5, %xmm1
	jbe	.L14
.L3:
	ucomisd	%xmm0, %xmm1
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cmovnb	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-640172613
	.long	1037794527
	.align 8
.LC1:
	.long	1413754136
	.long	1074340347
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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
.LC3:
	.string	"%d/%d\n"
.LC4:
	.string	"%lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC4(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	%eax, %ecx
	cmpl	$1, %eax
	jne	.L7
	movsd	(%rsp), %xmm4
	pxor	%xmm6, %xmm6
	movq	.LC1(%rip), %rax
	movq	.LC2(%rip), %xmm5
	comisd	%xmm6, %xmm4
	movq	%rax, %xmm3
	jbe	.L7
	addsd	.LC0(%rip), %xmm4
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	comisd	%xmm1, %xmm4
	ja	.L3
	addl	$1, %ecx
	cmpl	$100000001, %ecx
	je	.L3
.L4:
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm2
	movapd	%xmm2, %xmm0
	mulsd	%xmm3, %xmm0
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	leal	1(%rax), %edx
	cvtsi2sdl	%edx, %xmm1
	divsd	%xmm2, %xmm0
	divsd	%xmm2, %xmm1
	subsd	%xmm3, %xmm0
	andpd	%xmm5, %xmm0
	comisd	%xmm0, %xmm4
	subsd	%xmm3, %xmm1
	andpd	%xmm5, %xmm1
	jbe	.L14
.L3:
	ucomisd	%xmm0, %xmm1
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cmovnb	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-640172613
	.long	1037794527
	.align 8
.LC1:
	.long	1413754136
	.long	1074340347
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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:
```