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>
int main(){
	int n,h,m;
	char a[10];
	double h2,m2,ggg;
	scanf("%d",&n);
	while(n-->0){
		scanf("%s",a);
		h=(a[0]-'0')*10+a[1]-'0';
		m=(a[3]-'0')*10+a[4]-'0';
		h2=(double)360*(h*60+m)/(60*12);
		m2=(double)360*m/60;

		if(h2<m2)
			ggg=m2-h2;
		else
			ggg=h2-m2;
		
		
		if(ggg>=0&&ggg<30)
			printf("alert\n");
		else if(ggg>=90&&ggg<=270)
			printf("safe\n");
		else if(ggg<360&&330<ggg)
			printf("alert\n");
		else printf("warning\n");
		
		
		
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC7:
	.string	"alert"
.LC10:
	.string	"safe"
.LC12:
	.string	"warning"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	14(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC12(%rip), %r12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	movapd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
.L5:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm2
	jb	.L6
	movsd	.LC6(%rip), %xmm0
	comisd	%xmm2, %xmm0
	ja	.L15
.L6:
	comisd	.LC8(%rip), %xmm2
	jb	.L10
	movsd	.LC9(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L27
.L10:
	movsd	.LC2(%rip), %xmm4
	comisd	%xmm2, %xmm4
	jbe	.L13
	comisd	.LC11(%rip), %xmm2
	ja	.L15
.L13:
	movq	%r12, %rdi
	call	puts@PLT
.L9:
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
.L16:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movsbl	17(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	leal	-240(%rax,%rax,4), %edx
	movsbl	18(%rsp), %eax
	leal	-48(%rax,%rdx,2), %edx
	movsbl	14(%rsp), %eax
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	leal	-240(%rax,%rax,4), %ecx
	movsbl	15(%rsp), %eax
	divsd	.LC4(%rip), %xmm0
	leal	-48(%rax,%rcx,2), %eax
	imull	$60, %eax, %eax
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm1
	mulsd	.LC2(%rip), %xmm1
	divsd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm0
	ja	.L28
	movapd	%xmm1, %xmm2
	subsd	%xmm0, %xmm2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jg	.L16
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	.LC10(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1081507840
	.align 8
.LC3:
	.long	0
	.long	1082556416
	.align 8
.LC4:
	.long	0
	.long	1078853632
	.align 8
.LC6:
	.long	0
	.long	1077805056
	.align 8
.LC8:
	.long	0
	.long	1079410688
	.align 8
.LC9:
	.long	0
	.long	1081139200
	.align 8
.LC11:
	.long	0
	.long	1081384960
	.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	"%s"
.LC7:
	.string	"alert"
.LC10:
	.string	"safe"
.LC12:
	.string	"warning"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	14(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC12(%rip), %r12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	movapd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
.L5:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm2
	jb	.L6
	movsd	.LC6(%rip), %xmm0
	comisd	%xmm2, %xmm0
	ja	.L15
.L6:
	comisd	.LC8(%rip), %xmm2
	jb	.L10
	movsd	.LC9(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L27
.L10:
	movsd	.LC2(%rip), %xmm4
	comisd	%xmm2, %xmm4
	jbe	.L13
	comisd	.LC11(%rip), %xmm2
	ja	.L15
.L13:
	movq	%r12, %rdi
	call	puts@PLT
.L9:
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
.L16:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movsbl	17(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	leal	-240(%rax,%rax,4), %edx
	movsbl	18(%rsp), %eax
	leal	-48(%rax,%rdx,2), %edx
	movsbl	14(%rsp), %eax
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	leal	-240(%rax,%rax,4), %ecx
	movsbl	15(%rsp), %eax
	divsd	.LC4(%rip), %xmm0
	leal	-48(%rax,%rcx,2), %eax
	imull	$60, %eax, %eax
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm1
	mulsd	.LC2(%rip), %xmm1
	divsd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm0
	ja	.L28
	movapd	%xmm1, %xmm2
	subsd	%xmm0, %xmm2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jg	.L16
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	.LC10(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1081507840
	.align 8
.LC3:
	.long	0
	.long	1082556416
	.align 8
.LC4:
	.long	0
	.long	1078853632
	.align 8
.LC6:
	.long	0
	.long	1077805056
	.align 8
.LC8:
	.long	0
	.long	1079410688
	.align 8
.LC9:
	.long	0
	.long	1081139200
	.align 8
.LC11:
	.long	0
	.long	1081384960
	.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	"%s"
.LC7:
	.string	"alert"
.LC10:
	.string	"safe"
.LC12:
	.string	"warning"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	14(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC12(%rip), %r12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	movapd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
.L5:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm2
	jb	.L6
	movsd	.LC6(%rip), %xmm0
	comisd	%xmm2, %xmm0
	ja	.L15
.L6:
	comisd	.LC8(%rip), %xmm2
	jb	.L10
	movsd	.LC9(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L27
.L10:
	movsd	.LC2(%rip), %xmm4
	comisd	%xmm2, %xmm4
	jbe	.L13
	comisd	.LC11(%rip), %xmm2
	ja	.L15
.L13:
	movq	%r12, %rdi
	call	puts@PLT
.L9:
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
.L16:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movsbl	17(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	leal	-240(%rax,%rax,4), %edx
	movsbl	18(%rsp), %eax
	leal	-48(%rax,%rdx,2), %edx
	movsbl	14(%rsp), %eax
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	leal	-240(%rax,%rax,4), %ecx
	movsbl	15(%rsp), %eax
	divsd	.LC4(%rip), %xmm0
	leal	-48(%rax,%rcx,2), %eax
	imull	$60, %eax, %eax
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm1
	mulsd	.LC2(%rip), %xmm1
	divsd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm0
	ja	.L28
	movapd	%xmm1, %xmm2
	subsd	%xmm0, %xmm2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jg	.L16
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	.LC10(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1081507840
	.align 8
.LC3:
	.long	0
	.long	1082556416
	.align 8
.LC4:
	.long	0
	.long	1078853632
	.align 8
.LC6:
	.long	0
	.long	1077805056
	.align 8
.LC8:
	.long	0
	.long	1079410688
	.align 8
.LC9:
	.long	0
	.long	1081139200
	.align 8
.LC11:
	.long	0
	.long	1081384960
	.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>
int main(){
	int n,h,m;
	char a[10];
	double h2,m2,ggg;
	scanf("%d",&n);
	while(n-->0){
		scanf("%s",a);
		h=(a[0]-'0')*10+a[1]-'0';
		m=(a[3]-'0')*10+a[4]-'0';
		h2=(double)360*(h*60+m)/(60*12);
		m2=(double)360*m/60;

		if(h2<m2)
			ggg=m2-h2;
		else
			ggg=h2-m2;
		
		
		if(ggg>=0&&ggg<30)
			printf("alert\n");
		else if(ggg>=90&&ggg<=270)
			printf("safe\n");
		else if(ggg<360&&330<ggg)
			printf("alert\n");
		else printf("warning\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>
int main(){
	int n,h,m;
	char a[10];
	double h2,m2,ggg;
	scanf("%d",&n);
	while(n-->0){
		scanf("%s",a);
		h=(a[0]-'0')*10+a[1]-'0';
		m=(a[3]-'0')*10+a[4]-'0';
		h2=(double)360*(h*60+m)/(60*12);
		m2=(double)360*m/60;

		if(h2<m2)
			ggg=m2-h2;
		else
			ggg=h2-m2;
		
		
		if(ggg>=0&&ggg<30)
			printf("alert\n");
		else if(ggg>=90&&ggg<=270)
			printf("safe\n");
		else if(ggg<360&&330<ggg)
			printf("alert\n");
		else printf("warning\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>
int main(){
	int n,h,m;
	char a[10];
	double h2,m2,ggg;
	scanf("%d",&n);
	while(n-->0){
		scanf("%s",a);
		h=(a[0]-'0')*10+a[1]-'0';
		m=(a[3]-'0')*10+a[4]-'0';
		h2=(double)360*(h*60+m)/(60*12);
		m2=(double)360*m/60;

		if(h2<m2)
			ggg=m2-h2;
		else
			ggg=h2-m2;
		
		
		if(ggg>=0&&ggg<30)
			printf("alert\n");
		else if(ggg>=90&&ggg<=270)
			printf("safe\n");
		else if(ggg<360&&330<ggg)
			printf("alert\n");
		else printf("warning\n");
		
		
		
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC7:
	.string	"alert"
.LC10:
	.string	"safe"
.LC12:
	.string	"warning"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	14(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC12(%rip), %r12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	movapd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
.L5:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm2
	jb	.L6
	movsd	.LC6(%rip), %xmm0
	comisd	%xmm2, %xmm0
	ja	.L15
.L6:
	comisd	.LC8(%rip), %xmm2
	jb	.L10
	movsd	.LC9(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L27
.L10:
	movsd	.LC2(%rip), %xmm4
	comisd	%xmm2, %xmm4
	jbe	.L13
	comisd	.LC11(%rip), %xmm2
	ja	.L15
.L13:
	movq	%r12, %rdi
	call	puts@PLT
.L9:
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
.L16:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movsbl	17(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	leal	-240(%rax,%rax,4), %edx
	movsbl	18(%rsp), %eax
	leal	-48(%rax,%rdx,2), %edx
	movsbl	14(%rsp), %eax
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	leal	-240(%rax,%rax,4), %ecx
	movsbl	15(%rsp), %eax
	divsd	.LC4(%rip), %xmm0
	leal	-48(%rax,%rcx,2), %eax
	imull	$60, %eax, %eax
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm1
	mulsd	.LC2(%rip), %xmm1
	divsd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm0
	ja	.L28
	movapd	%xmm1, %xmm2
	subsd	%xmm0, %xmm2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jg	.L16
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	.LC10(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1081507840
	.align 8
.LC3:
	.long	0
	.long	1082556416
	.align 8
.LC4:
	.long	0
	.long	1078853632
	.align 8
.LC6:
	.long	0
	.long	1077805056
	.align 8
.LC8:
	.long	0
	.long	1079410688
	.align 8
.LC9:
	.long	0
	.long	1081139200
	.align 8
.LC11:
	.long	0
	.long	1081384960
	.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	"%s"
.LC7:
	.string	"alert"
.LC10:
	.string	"safe"
.LC12:
	.string	"warning"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	14(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	.LC12(%rip), %r12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	movapd	%xmm0, %xmm2
	subsd	%xmm1, %xmm2
.L5:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm2
	jb	.L6
	movsd	.LC6(%rip), %xmm0
	comisd	%xmm2, %xmm0
	ja	.L15
.L6:
	comisd	.LC8(%rip), %xmm2
	jb	.L10
	movsd	.LC9(%rip), %xmm5
	comisd	%xmm2, %xmm5
	jnb	.L27
.L10:
	movsd	.LC2(%rip), %xmm4
	comisd	%xmm2, %xmm4
	jbe	.L13
	comisd	.LC11(%rip), %xmm2
	ja	.L15
.L13:
	movq	%r12, %rdi
	call	puts@PLT
.L9:
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
.L16:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movsbl	17(%rsp), %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	leal	-240(%rax,%rax,4), %edx
	movsbl	18(%rsp), %eax
	leal	-48(%rax,%rdx,2), %edx
	movsbl	14(%rsp), %eax
	cvtsi2sdl	%edx, %xmm0
	mulsd	.LC2(%rip), %xmm0
	leal	-240(%rax,%rax,4), %ecx
	movsbl	15(%rsp), %eax
	divsd	.LC4(%rip), %xmm0
	leal	-48(%rax,%rcx,2), %eax
	imull	$60, %eax, %eax
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm1
	mulsd	.LC2(%rip), %xmm1
	divsd	.LC3(%rip), %xmm1
	comisd	%xmm1, %xmm0
	ja	.L28
	movapd	%xmm1, %xmm2
	subsd	%xmm0, %xmm2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jg	.L16
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	leaq	.LC10(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1081507840
	.align 8
.LC3:
	.long	0
	.long	1082556416
	.align 8
.LC4:
	.long	0
	.long	1078853632
	.align 8
.LC6:
	.long	0
	.long	1077805056
	.align 8
.LC8:
	.long	0
	.long	1079410688
	.align 8
.LC9:
	.long	0
	.long	1081139200
	.align 8
.LC11:
	.long	0
	.long	1081384960
	.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:
```