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>
int main(){
	int n,i;
	double h,m,ang_h,ang_m,ang_d;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf:%lf",&h,&m);
		ang_m=(m/60)*360;
		ang_h=(h/12)*360+(m/60)*30;
		if(ang_m>ang_h)ang_d=ang_m-ang_h;
		else ang_d=ang_h-ang_m;
		if(ang_d>180)ang_d=360-ang_d;
		if(ang_d>=0.0&&ang_d<30.0)printf("alert\n");
		else if(ang_d>=90.0&&ang_d<=180.0)printf("safe\n");
		else printf("warning\n");
	}
	return 0;}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf:%lf"
.LC8:
	.string	"alert"
.LC10:
	.string	"safe"
.LC11:
	.string	"warning"
	.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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L15:
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	-40(%rbp), %xmm0
	movsd	.LC2(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-48(%rbp), %xmm0
	movsd	.LC4(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-40(%rbp), %xmm0
	movsd	.LC2(%rip), %xmm3
	movapd	%xmm0, %xmm2
	divsd	%xmm3, %xmm2
	movsd	.LC5(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-24(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L24
	movsd	-24(%rbp), %xmm0
	subsd	-16(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	jmp	.L5
.L24:
	movsd	-16(%rbp), %xmm0
	subsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L5:
	movsd	-32(%rbp), %xmm0
	comisd	.LC6(%rip), %xmm0
	jbe	.L6
	movsd	.LC3(%rip), %xmm0
	subsd	-32(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L6:
	movsd	-32(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jb	.L8
	movsd	.LC5(%rip), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L8
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L8:
	movsd	-32(%rbp), %xmm0
	comisd	.LC9(%rip), %xmm0
	jb	.L12
	movsd	.LC6(%rip), %xmm0
	comisd	-32(%rbp), %xmm0
	jb	.L12
	leaq	.LC10(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L12:
	leaq	.LC11(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	addl	$1, -52(%rbp)
.L2:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L15
	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
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1078853632
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.long	0
	.long	1076363264
	.align 8
.LC5:
	.long	0
	.long	1077805056
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC9:
	.long	0
	.long	1079410688
	.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"
.LC1:
	.string	"%lf:%lf"
.LC8:
	.string	"alert"
.LC10:
	.string	"safe"
.LC11:
	.string	"warning"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC11(%rip), %r14
	leaq	.LC8(%rip), %r15
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L29:
	subsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm1
.L5:
	comisd	.LC6(%rip), %xmm1
	jbe	.L6
	movsd	.LC3(%rip), %xmm4
	subsd	%xmm1, %xmm4
	movapd	%xmm4, %xmm1
.L6:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm1
	jb	.L8
	movsd	.LC5(%rip), %xmm5
	comisd	%xmm1, %xmm5
	ja	.L27
.L8:
	comisd	.LC9(%rip), %xmm1
	jb	.L12
	movsd	.LC6(%rip), %xmm6
	comisd	%xmm1, %xmm6
	jnb	.L28
.L12:
	movq	%r14, %rdi
	call	puts@PLT
.L11:
	addl	$1, %ebx
	cmpl	%ebx, 4(%rsp)
	jle	.L2
.L15:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movsd	.LC3(%rip), %xmm2
	movsd	16(%rsp), %xmm1
	divsd	.LC2(%rip), %xmm1
	movsd	8(%rsp), %xmm0
	divsd	.LC4(%rip), %xmm0
	mulsd	.LC3(%rip), %xmm0
	mulsd	%xmm1, %xmm2
	mulsd	.LC5(%rip), %xmm1
	addsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm2
	ja	.L29
	subsd	%xmm2, %xmm0
	movapd	%xmm0, %xmm1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%r15, %rdi
	addl	$1, %ebx
	call	puts@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	leaq	.LC10(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1078853632
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.long	0
	.long	1076363264
	.align 8
.LC5:
	.long	0
	.long	1077805056
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC9:
	.long	0
	.long	1079410688
	.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"
.LC1:
	.string	"%lf:%lf"
.LC8:
	.string	"alert"
.LC10:
	.string	"safe"
.LC11:
	.string	"warning"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC11(%rip), %r14
	leaq	.LC8(%rip), %r15
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L29:
	subsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm1
.L5:
	comisd	.LC6(%rip), %xmm1
	jbe	.L6
	movsd	.LC3(%rip), %xmm4
	subsd	%xmm1, %xmm4
	movapd	%xmm4, %xmm1
.L6:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm1
	jb	.L8
	movsd	.LC5(%rip), %xmm5
	comisd	%xmm1, %xmm5
	ja	.L27
.L8:
	comisd	.LC9(%rip), %xmm1
	jb	.L12
	movsd	.LC6(%rip), %xmm6
	comisd	%xmm1, %xmm6
	jnb	.L28
.L12:
	movq	%r14, %rdi
	call	puts@PLT
.L11:
	addl	$1, %ebx
	cmpl	%ebx, 4(%rsp)
	jle	.L2
.L15:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movsd	.LC3(%rip), %xmm2
	movsd	16(%rsp), %xmm1
	divsd	.LC2(%rip), %xmm1
	movsd	8(%rsp), %xmm0
	divsd	.LC4(%rip), %xmm0
	mulsd	.LC3(%rip), %xmm0
	mulsd	%xmm1, %xmm2
	mulsd	.LC5(%rip), %xmm1
	addsd	%xmm1, %xmm0
	comisd	%xmm0, %xmm2
	ja	.L29
	subsd	%xmm2, %xmm0
	movapd	%xmm0, %xmm1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%r15, %rdi
	addl	$1, %ebx
	call	puts@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	leaq	.LC10(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1078853632
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.long	0
	.long	1076363264
	.align 8
.LC5:
	.long	0
	.long	1077805056
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC9:
	.long	0
	.long	1079410688
	.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>
int main(){
	int n,i;
	double h,m,ang_h,ang_m,ang_d;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf:%lf",&h,&m);
		ang_m=(m/60)*360;
		ang_h=(h/12)*360+(m/60)*30;
		if(ang_m>ang_h)ang_d=ang_m-ang_h;
		else ang_d=ang_h-ang_m;
		if(ang_d>180)ang_d=360-ang_d;
		if(ang_d>=0.0&&ang_d<30.0)printf("alert\n");
		else if(ang_d>=90.0&&ang_d<=180.0)printf("safe\n");
		else printf("warning\n");
	}
	return 0;}
4
02:15
05:01
11:55
10:40
 4
02:15
05:01
11:54
10:40
 4
12:15
05:01
11:54
10:40
 4
02:15
05:01
11:55
11:40
 4
12:05
05:01
11:44
00:41
 4
02:15
10:50
11:54
10:40
 4
03:05
06:11
11:55
10:41
 4
03:15
11:60
11:55
00:40
 4
12:05
05:01
12:44
10:40
 4
02:15
10:60
11:55
11:40

alert
safe
alert
warning
 alert
safe
warning
warning
 warning
safe
warning
warning
 alert
safe
alert
safe
 alert
safe
warning
safe
 alert
alert
warning
warning
 warning
safe
alert
warning
 alert
alert
alert
safe
 alert
safe
safe
warning
 alert
warning
alert
safe

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>
int main(){
	int n,i;
	double h,m,ang_h,ang_m,ang_d;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lf:%lf",&h,&m);
		ang_m=(m/60)*360;
		ang_h=(h/12)*360+(m/60)*30;
		if(ang_m>ang_h)ang_d=ang_m-ang_h;
		else ang_d=ang_h-ang_m;
		if(ang_d>180)ang_d=360-ang_d;
		if(ang_d>=0.0&&ang_d<30.0)printf("alert\n");
		else if(ang_d>=90.0&&ang_d<=180.0)printf("safe\n");
		else printf("warning\n");
	}
	return 0;}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf:%lf"
.LC8:
	.string	"alert"
.LC10:
	.string	"safe"
.LC11:
	.string	"warning"
	.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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L15:
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	-40(%rbp), %xmm0
	movsd	.LC2(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-48(%rbp), %xmm0
	movsd	.LC4(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-40(%rbp), %xmm0
	movsd	.LC2(%rip), %xmm3
	movapd	%xmm0, %xmm2
	divsd	%xmm3, %xmm2
	movsd	.LC5(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-24(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L24
	movsd	-24(%rbp), %xmm0
	subsd	-16(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	jmp	.L5
.L24:
	movsd	-16(%rbp), %xmm0
	subsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L5:
	movsd	-32(%rbp), %xmm0
	comisd	.LC6(%rip), %xmm0
	jbe	.L6
	movsd	.LC3(%rip), %xmm0
	subsd	-32(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L6:
	movsd	-32(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jb	.L8
	movsd	.LC5(%rip), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L8
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L8:
	movsd	-32(%rbp), %xmm0
	comisd	.LC9(%rip), %xmm0
	jb	.L12
	movsd	.LC6(%rip), %xmm0
	comisd	-32(%rbp), %xmm0
	jb	.L12
	leaq	.LC10(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L12:
	leaq	.LC11(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	addl	$1, -52(%rbp)
.L2:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L15
	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
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1078853632
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.long	0
	.long	1076363264
	.align 8
.LC5:
	.long	0
	.long	1077805056
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC9:
	.long	0
	.long	1079410688
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf:%lf"
.LC8:
	.string	"alert"
.LC10:
	.string	"safe"
.LC11:
	.string	"warning"
	.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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L15:
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movsd	-40(%rbp), %xmm0
	movsd	.LC2(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-48(%rbp), %xmm0
	movsd	.LC4(%rip), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movsd	-40(%rbp), %xmm0
	movsd	.LC2(%rip), %xmm3
	movapd	%xmm0, %xmm2
	divsd	%xmm3, %xmm2
	movsd	.LC5(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	-24(%rbp), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L24
	movsd	-24(%rbp), %xmm0
	subsd	-16(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	jmp	.L5
.L24:
	movsd	-16(%rbp), %xmm0
	subsd	-24(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L5:
	movsd	-32(%rbp), %xmm0
	comisd	.LC6(%rip), %xmm0
	jbe	.L6
	movsd	.LC3(%rip), %xmm0
	subsd	-32(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L6:
	movsd	-32(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	comisd	%xmm1, %xmm0
	jb	.L8
	movsd	.LC5(%rip), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L8
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L8:
	movsd	-32(%rbp), %xmm0
	comisd	.LC9(%rip), %xmm0
	jb	.L12
	movsd	.LC6(%rip), %xmm0
	comisd	-32(%rbp), %xmm0
	jb	.L12
	leaq	.LC10(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L12:
	leaq	.LC11(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	addl	$1, -52(%rbp)
.L2:
	movl	-56(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L15
	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
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1078853632
	.align 8
.LC3:
	.long	0
	.long	1081507840
	.align 8
.LC4:
	.long	0
	.long	1076363264
	.align 8
.LC5:
	.long	0
	.long	1077805056
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC9:
	.long	0
	.long	1079410688
	.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:
