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>          // printf(), scanf()
#include <math.h>           // fabs()

int
main(int argc, char **argv)
{
	int n;
	scanf("%d", &n);
	while (n--)
	{
		int h, m;
		scanf("%d:%d", &h, &m);
		double a1 = h * 360 / 12 + m * 30.0 / 60.0;
		double a2 = m * 360 / 60;
		double th = fabs(a1 - a2);

		if (th > 180)
			th = 360 - th;

		if (th < 30)
			printf("alert\n");

		else if (th < 90) // 30 <= th < 90 ?
			printf("warning\n");

		else // 90 <= th <= 180 ?
			printf("safe\n");
	}

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d:%d"
.LC7:
	.string	"alert"
.LC9:
	.string	"warning"
.LC10:
	.string	"safe"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC10(%rip), %r14
	leaq	.LC9(%rip), %r13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%r13, %rdi
	call	puts@PLT
.L7:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
.L10:
	movq	%r12, %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	imull	$30, 16(%rsp), %edx
	pxor	%xmm0, %xmm0
	movl	20(%rsp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	leal	(%rax,%rax,2), %eax
	mulsd	.LC2(%rip), %xmm1
	cvtsi2sdl	%edx, %xmm0
	addl	%eax, %eax
	divsd	.LC3(%rip), %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	subsd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	.LC5(%rip), %xmm0
	jbe	.L3
	movsd	.LC6(%rip), %xmm3
	subsd	%xmm0, %xmm3
	movapd	%xmm3, %xmm0
.L3:
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L23
	movsd	.LC8(%rip), %xmm4
	comisd	%xmm0, %xmm4
	ja	.L24
	movq	%r14, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L7
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1078853632
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC8:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d:%d"
.LC7:
	.string	"alert"
.LC9:
	.string	"warning"
.LC10:
	.string	"safe"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC10(%rip), %r14
	leaq	.LC9(%rip), %r13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%r13, %rdi
	call	puts@PLT
.L7:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
.L10:
	movq	%r12, %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	imull	$30, 16(%rsp), %edx
	pxor	%xmm0, %xmm0
	movl	20(%rsp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	leal	(%rax,%rax,2), %eax
	mulsd	.LC2(%rip), %xmm1
	cvtsi2sdl	%edx, %xmm0
	addl	%eax, %eax
	divsd	.LC3(%rip), %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	subsd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	.LC5(%rip), %xmm0
	jbe	.L3
	movsd	.LC6(%rip), %xmm3
	subsd	%xmm0, %xmm3
	movapd	%xmm3, %xmm0
.L3:
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L23
	movsd	.LC8(%rip), %xmm4
	comisd	%xmm0, %xmm4
	ja	.L24
	movq	%r14, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L7
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1078853632
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC8:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d:%d"
.LC7:
	.string	"alert"
.LC9:
	.string	"warning"
.LC10:
	.string	"safe"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC10(%rip), %r14
	leaq	.LC9(%rip), %r13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%r13, %rdi
	call	puts@PLT
.L7:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
.L10:
	movq	%r12, %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	imull	$30, 16(%rsp), %edx
	pxor	%xmm0, %xmm0
	movl	20(%rsp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	leal	(%rax,%rax,2), %eax
	mulsd	.LC2(%rip), %xmm1
	cvtsi2sdl	%edx, %xmm0
	addl	%eax, %eax
	divsd	.LC3(%rip), %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	subsd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	.LC5(%rip), %xmm0
	jbe	.L3
	movsd	.LC6(%rip), %xmm3
	subsd	%xmm0, %xmm3
	movapd	%xmm3, %xmm0
.L3:
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L23
	movsd	.LC8(%rip), %xmm4
	comisd	%xmm0, %xmm4
	ja	.L24
	movq	%r14, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L7
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1078853632
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC8:
	.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:
```
```c
#include <stdio.h>          // printf(), scanf()
#include <math.h>           // fabs()

int
main(int argc, char **argv)
{
	int n;
	scanf("%d", &n);
	while (n--)
	{
		int h, m;
		scanf("%d:%d", &h, &m);
		double a1 = h * 360 / 12 + m * 30.0 / 60.0;
		double a2 = m * 360 / 60;
		double th = fabs(a1 - a2);

		if (th > 180)
			th = 360 - th;

		if (th < 30)
			printf("alert\n");

		else if (th < 90) // 30 <= th < 90 ?
			printf("warning\n");

		else // 90 <= th <= 180 ?
			printf("safe\n");
	}

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

```c
#include <stdio.h>          // printf(), scanf()
#include <math.h>           // fabs()

int
main(int argc, char **argv)
{
	int n;
	scanf("%d", &n);
	while (n--)
	{
		int h, m;
		scanf("%d:%d", &h, &m);
		double a1 = h * 360 / 12 + m * 30.0 / 60.0;
		double a2 = m * 360 / 60;
		double th = fabs(a1 - a2);

		if (th > 180)
			th = 360 - th;

		if (th < 30)
			printf("alert\n");

		else if (th < 90) // 30 <= th < 90 ?
			printf("warning\n");

		else // 90 <= th <= 180 ?
			printf("safe\n");
	}

	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:

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

```c
#include <stdio.h>          // printf(), scanf()
#include <math.h>           // fabs()

int
main(int argc, char **argv)
{
	int n;
	scanf("%d", &n);
	while (n--)
	{
		int h, m;
		scanf("%d:%d", &h, &m);
		double a1 = h * 360 / 12 + m * 30.0 / 60.0;
		double a2 = m * 360 / 60;
		double th = fabs(a1 - a2);

		if (th > 180)
			th = 360 - th;

		if (th < 30)
			printf("alert\n");

		else if (th < 90) // 30 <= th < 90 ?
			printf("warning\n");

		else // 90 <= th <= 180 ?
			printf("safe\n");
	}

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d:%d"
.LC7:
	.string	"alert"
.LC9:
	.string	"warning"
.LC10:
	.string	"safe"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC10(%rip), %r14
	leaq	.LC9(%rip), %r13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%r13, %rdi
	call	puts@PLT
.L7:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
.L10:
	movq	%r12, %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	imull	$30, 16(%rsp), %edx
	pxor	%xmm0, %xmm0
	movl	20(%rsp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	leal	(%rax,%rax,2), %eax
	mulsd	.LC2(%rip), %xmm1
	cvtsi2sdl	%edx, %xmm0
	addl	%eax, %eax
	divsd	.LC3(%rip), %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	subsd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	.LC5(%rip), %xmm0
	jbe	.L3
	movsd	.LC6(%rip), %xmm3
	subsd	%xmm0, %xmm3
	movapd	%xmm3, %xmm0
.L3:
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L23
	movsd	.LC8(%rip), %xmm4
	comisd	%xmm0, %xmm4
	ja	.L24
	movq	%r14, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L7
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1078853632
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC8:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d:%d"
.LC7:
	.string	"alert"
.LC9:
	.string	"warning"
.LC10:
	.string	"safe"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC10(%rip), %r14
	leaq	.LC9(%rip), %r13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	movq	%r13, %rdi
	call	puts@PLT
.L7:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L2
.L10:
	movq	%r12, %rdx
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	imull	$30, 16(%rsp), %edx
	pxor	%xmm0, %xmm0
	movl	20(%rsp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	leal	(%rax,%rax,2), %eax
	mulsd	.LC2(%rip), %xmm1
	cvtsi2sdl	%edx, %xmm0
	addl	%eax, %eax
	divsd	.LC3(%rip), %xmm1
	addsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	subsd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	.LC5(%rip), %xmm0
	jbe	.L3
	movsd	.LC6(%rip), %xmm3
	subsd	%xmm0, %xmm3
	movapd	%xmm3, %xmm0
.L3:
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L23
	movsd	.LC8(%rip), %xmm4
	comisd	%xmm0, %xmm4
	ja	.L24
	movq	%r14, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L7
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1077805056
	.align 8
.LC3:
	.long	0
	.long	1078853632
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC8:
	.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:
```