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>

int main(void) {
    int num, i;
    int hh, mm;
    double torad, diff;
    
    scanf("%d", &num);
    
    for(i = 0; i < num; i++) {
        scanf("%d %*c %d", &hh, &mm);
        
        torad = (hh * 30) + (0.5 * mm);
        
        diff = fabs(torad - ((mm / 5.0) * 30));
        
        if(diff > 180)
            diff = 360 - diff;
        
        if(diff >= 0 && diff < 30)
            puts("alert");
        else if(diff >= 90 && diff <= 180)
            puts("safe");
        else
            puts("warning");
        
    }
    
    return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %*c %d"
.LC9:
	.string	"alert"
.LC11:
	.string	"safe"
.LC12:
	.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	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC12(%rip), %r14
	leaq	.LC11(%rip), %r15
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	comisd	.LC10(%rip), %xmm0
	jb	.L9
	movsd	.LC6(%rip), %xmm6
	comisd	%xmm0, %xmm6
	jnb	.L22
.L9:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jle	.L2
.L12:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	imull	$30, 16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	cvtsi2sdl	20(%rsp), %xmm1
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm2
	divsd	.LC3(%rip), %xmm1
	mulsd	.LC4(%rip), %xmm1
	addsd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	.LC6(%rip), %xmm0
	jbe	.L3
	movsd	.LC7(%rip), %xmm4
	subsd	%xmm0, %xmm4
	movapd	%xmm4, %xmm0
.L3:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm0
	jb	.L5
	movsd	.LC4(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L5
	leaq	.LC9(%rip), %rdi
	addl	$1, %ebx
	call	puts@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	movq	%r15, %rdi
	call	puts@PLT
	jmp	.L8
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1075052544
	.align 8
.LC4:
	.long	0
	.long	1077805056
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1081507840
	.align 8
.LC10:
	.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 %*c %d"
.LC9:
	.string	"alert"
.LC11:
	.string	"safe"
.LC12:
	.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	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC12(%rip), %r14
	leaq	.LC11(%rip), %r15
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	comisd	.LC10(%rip), %xmm0
	jb	.L9
	movsd	.LC6(%rip), %xmm6
	comisd	%xmm0, %xmm6
	jnb	.L22
.L9:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jle	.L2
.L12:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	imull	$30, 16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	cvtsi2sdl	20(%rsp), %xmm1
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm2
	divsd	.LC3(%rip), %xmm1
	mulsd	.LC4(%rip), %xmm1
	addsd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	.LC6(%rip), %xmm0
	jbe	.L3
	movsd	.LC7(%rip), %xmm4
	subsd	%xmm0, %xmm4
	movapd	%xmm4, %xmm0
.L3:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm0
	jb	.L5
	movsd	.LC4(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L5
	leaq	.LC9(%rip), %rdi
	addl	$1, %ebx
	call	puts@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	movq	%r15, %rdi
	call	puts@PLT
	jmp	.L8
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1075052544
	.align 8
.LC4:
	.long	0
	.long	1077805056
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1081507840
	.align 8
.LC10:
	.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 %*c %d"
.LC9:
	.string	"alert"
.LC11:
	.string	"safe"
.LC12:
	.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	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC12(%rip), %r14
	leaq	.LC11(%rip), %r15
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	comisd	.LC10(%rip), %xmm0
	jb	.L9
	movsd	.LC6(%rip), %xmm6
	comisd	%xmm0, %xmm6
	jnb	.L22
.L9:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jle	.L2
.L12:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	imull	$30, 16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	cvtsi2sdl	20(%rsp), %xmm1
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm2
	divsd	.LC3(%rip), %xmm1
	mulsd	.LC4(%rip), %xmm1
	addsd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	.LC6(%rip), %xmm0
	jbe	.L3
	movsd	.LC7(%rip), %xmm4
	subsd	%xmm0, %xmm4
	movapd	%xmm4, %xmm0
.L3:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm0
	jb	.L5
	movsd	.LC4(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L5
	leaq	.LC9(%rip), %rdi
	addl	$1, %ebx
	call	puts@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	movq	%r15, %rdi
	call	puts@PLT
	jmp	.L8
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1075052544
	.align 8
.LC4:
	.long	0
	.long	1077805056
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1081507840
	.align 8
.LC10:
	.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>
#include <math.h>

int main(void) {
    int num, i;
    int hh, mm;
    double torad, diff;
    
    scanf("%d", &num);
    
    for(i = 0; i < num; i++) {
        scanf("%d %*c %d", &hh, &mm);
        
        torad = (hh * 30) + (0.5 * mm);
        
        diff = fabs(torad - ((mm / 5.0) * 30));
        
        if(diff > 180)
            diff = 360 - diff;
        
        if(diff >= 0 && diff < 30)
            puts("alert");
        else if(diff >= 90 && diff <= 180)
            puts("safe");
        else
            puts("warning");
        
    }
    
    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>

int main(void) {
    int num, i;
    int hh, mm;
    double torad, diff;
    
    scanf("%d", &num);
    
    for(i = 0; i < num; i++) {
        scanf("%d %*c %d", &hh, &mm);
        
        torad = (hh * 30) + (0.5 * mm);
        
        diff = fabs(torad - ((mm / 5.0) * 30));
        
        if(diff > 180)
            diff = 360 - diff;
        
        if(diff >= 0 && diff < 30)
            puts("alert");
        else if(diff >= 90 && diff <= 180)
            puts("safe");
        else
            puts("warning");
        
    }
    
    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>
#include <math.h>

int main(void) {
    int num, i;
    int hh, mm;
    double torad, diff;
    
    scanf("%d", &num);
    
    for(i = 0; i < num; i++) {
        scanf("%d %*c %d", &hh, &mm);
        
        torad = (hh * 30) + (0.5 * mm);
        
        diff = fabs(torad - ((mm / 5.0) * 30));
        
        if(diff > 180)
            diff = 360 - diff;
        
        if(diff >= 0 && diff < 30)
            puts("alert");
        else if(diff >= 90 && diff <= 180)
            puts("safe");
        else
            puts("warning");
        
    }
    
    return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %*c %d"
.LC9:
	.string	"alert"
.LC11:
	.string	"safe"
.LC12:
	.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	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC12(%rip), %r14
	leaq	.LC11(%rip), %r15
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	comisd	.LC10(%rip), %xmm0
	jb	.L9
	movsd	.LC6(%rip), %xmm6
	comisd	%xmm0, %xmm6
	jnb	.L22
.L9:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jle	.L2
.L12:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	imull	$30, 16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	cvtsi2sdl	20(%rsp), %xmm1
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm2
	divsd	.LC3(%rip), %xmm1
	mulsd	.LC4(%rip), %xmm1
	addsd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	.LC6(%rip), %xmm0
	jbe	.L3
	movsd	.LC7(%rip), %xmm4
	subsd	%xmm0, %xmm4
	movapd	%xmm4, %xmm0
.L3:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm0
	jb	.L5
	movsd	.LC4(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L5
	leaq	.LC9(%rip), %rdi
	addl	$1, %ebx
	call	puts@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	movq	%r15, %rdi
	call	puts@PLT
	jmp	.L8
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1075052544
	.align 8
.LC4:
	.long	0
	.long	1077805056
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1081507840
	.align 8
.LC10:
	.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 %*c %d"
.LC9:
	.string	"alert"
.LC11:
	.string	"safe"
.LC12:
	.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	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC12(%rip), %r14
	leaq	.LC11(%rip), %r15
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	comisd	.LC10(%rip), %xmm0
	jb	.L9
	movsd	.LC6(%rip), %xmm6
	comisd	%xmm0, %xmm6
	jnb	.L22
.L9:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addl	$1, %ebx
	cmpl	%ebx, 12(%rsp)
	jle	.L2
.L12:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	pxor	%xmm1, %xmm1
	imull	$30, 16(%rsp), %eax
	movsd	.LC2(%rip), %xmm2
	cvtsi2sdl	20(%rsp), %xmm1
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm2
	divsd	.LC3(%rip), %xmm1
	mulsd	.LC4(%rip), %xmm1
	addsd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC5(%rip), %xmm0
	comisd	.LC6(%rip), %xmm0
	jbe	.L3
	movsd	.LC7(%rip), %xmm4
	subsd	%xmm0, %xmm4
	movapd	%xmm4, %xmm0
.L3:
	pxor	%xmm3, %xmm3
	comisd	%xmm3, %xmm0
	jb	.L5
	movsd	.LC4(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L5
	leaq	.LC9(%rip), %rdi
	addl	$1, %ebx
	call	puts@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	movq	%r15, %rdi
	call	puts@PLT
	jmp	.L8
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	1075052544
	.align 8
.LC4:
	.long	0
	.long	1077805056
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1081507840
	.align 8
.LC10:
	.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:
```