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,h,m,t,i;
  char s[3][10]={"lunch","dinner","midnight"};
  while(scanf("%d",&n),n){
    int o[3]={0};
    int c[3]={0};
    while(n--){
      scanf("%d%*c%d %d",&h,&m,&t);
      if(m>t)t+=60;
      h=h*100+m;
      i=3;
      if(1100<=h&&h<=1459)i=0;
      if(1800<=h&&h<=2059)i=1;
      if(2100<=h&&h<=2400)i=2;
      if(   0<=h&&h<= 159)i=2;
      if(3-i){
	if(t-m<9)o[i]++;
	c[i]++;
      }
    }
    for(i=0;i<3;i++){
      printf("%s ",s[i]);
      if(c[i])printf("%d\n",(o[i]*100)/c[i]);
      else    printf("no guest\n");
    }    
  }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%*c%d %d"
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"no guest"
.LC4:
	.string	"%d"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$448344782188, %rax
	movq	%rax, -48(%rbp)
	movw	$0, -40(%rbp)
	movabsq	$125779969993060, %rax
	movq	%rax, -38(%rbp)
	movw	$0, -30(%rbp)
	movabsq	$8388068008498850157, %rax
	movq	%rax, -28(%rbp)
	movw	$0, -20(%rbp)
	jmp	.L2
.L15:
	movq	$0, -72(%rbp)
	movl	$0, -64(%rbp)
	movq	$0, -60(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L3
.L10:
	leaq	-80(%rbp), %rcx
	leaq	-84(%rbp), %rdx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-80(%rbp), %eax
	addl	$60, %eax
	movl	%eax, -80(%rbp)
.L4:
	movl	-88(%rbp), %eax
	imull	$100, %eax, %edx
	movl	-84(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -88(%rbp)
	movl	$3, -76(%rbp)
	movl	-88(%rbp), %eax
	cmpl	$1099, %eax
	jle	.L5
	movl	-88(%rbp), %eax
	cmpl	$1459, %eax
	jg	.L5
	movl	$0, -76(%rbp)
.L5:
	movl	-88(%rbp), %eax
	cmpl	$1799, %eax
	jle	.L6
	movl	-88(%rbp), %eax
	cmpl	$2059, %eax
	jg	.L6
	movl	$1, -76(%rbp)
.L6:
	movl	-88(%rbp), %eax
	cmpl	$2099, %eax
	jle	.L7
	movl	-88(%rbp), %eax
	cmpl	$2400, %eax
	jg	.L7
	movl	$2, -76(%rbp)
.L7:
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	js	.L8
	movl	-88(%rbp), %eax
	cmpl	$159, %eax
	jg	.L8
	movl	$2, -76(%rbp)
.L8:
	cmpl	$3, -76(%rbp)
	je	.L3
	movl	-80(%rbp), %eax
	movl	-84(%rbp), %edx
	subl	%edx, %eax
	cmpl	$8, %eax
	jg	.L9
	movl	-76(%rbp), %eax
	cltq
	movl	-72(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -72(%rbp,%rax,4)
.L9:
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -60(%rbp,%rax,4)
.L3:
	movl	-92(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -92(%rbp)
	testl	%eax, %eax
	jne	.L10
	movl	$0, -76(%rbp)
	jmp	.L11
.L14:
	leaq	-48(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L12
	movl	-76(%rbp), %eax
	cltq
	movl	-72(%rbp,%rax,4), %eax
	imull	$100, %eax, %eax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	-60(%rbp,%rdx,4), %esi
	cltd
	idivl	%esi
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L13:
	addl	$1, -76(%rbp)
.L11:
	cmpl	$2, -76(%rbp)
	jle	.L14
.L2:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.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
	.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%*c%d %d"
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"no guest"
.LC4:
	.string	"%d"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movdqa	.LC5(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movl	$1952999273, 88(%rsp)
	movabsq	$7954598758715490304, %rax
	movq	%rax, 80(%rsp)
	xorl	%eax, %eax
	movw	%ax, 92(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L25
	subl	$1, %eax
	leaq	36(%rsp), %r15
	movq	$0, 40(%rsp)
	leaq	32(%rsp), %rbp
	movl	$0, 48(%rsp)
	leaq	28(%rsp), %rbx
	movq	$0, 52(%rsp)
	movl	$0, 60(%rsp)
	movl	%eax, 24(%rsp)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	leal	-1800(%rdx), %esi
	cmpl	$259, %esi
	ja	.L26
	movl	$1, %edx
.L4:
	subl	%ecx, %eax
	cmpl	$8, %eax
	jg	.L7
	addl	$1, 40(%rsp,%rdx,4)
.L7:
	addl	$1, 52(%rsp,%rdx,4)
.L5:
	movl	24(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 24(%rsp)
	testl	%eax, %eax
	je	.L27
.L8:
	movq	%r15, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %ecx
	movl	36(%rsp), %eax
	cmpl	%eax, %ecx
	jle	.L3
	addl	$60, %eax
	movl	%eax, 36(%rsp)
.L3:
	imull	$100, 28(%rsp), %edx
	addl	%ecx, %edx
	leal	-1100(%rdx), %esi
	movl	%edx, 28(%rsp)
	cmpl	$359, %esi
	ja	.L28
	xorl	%edx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	leaq	64(%rsp), %rbx
	xorl	%r14d, %r14d
	leaq	52(%rsp), %rbp
	leaq	.LC2(%rip), %r15
.L11:
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	0(%rbp,%r14,4), %esi
	testl	%esi, %esi
	je	.L9
	imull	$100, 40(%rsp,%r14,4), %eax
	movl	$1, %edi
	cltd
	idivl	%esi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	addq	$1, %r14
	addq	$10, %rbx
	cmpq	$3, %r14
	jne	.L11
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$120, %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
.L26:
	.cfi_restore_state
	leal	-2100(%rdx), %esi
	cmpl	$300, %esi
	jbe	.L16
	cmpl	$159, %edx
	ja	.L5
.L16:
	movl	$2, %edx
	jmp	.L4
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.quad	448344782188
	.quad	8243116113465180160
	.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%*c%d %d"
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"no guest"
.LC4:
	.string	"%d"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movdqa	.LC5(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movl	$1952999273, 88(%rsp)
	movabsq	$7954598758715490304, %rax
	movq	%rax, 80(%rsp)
	xorl	%eax, %eax
	movw	%ax, 92(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L25
	subl	$1, %eax
	leaq	36(%rsp), %r15
	movq	$0, 40(%rsp)
	leaq	32(%rsp), %rbp
	movl	$0, 48(%rsp)
	leaq	28(%rsp), %rbx
	movq	$0, 52(%rsp)
	movl	$0, 60(%rsp)
	movl	%eax, 24(%rsp)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	leal	-1800(%rdx), %esi
	cmpl	$259, %esi
	ja	.L26
	movl	$1, %edx
.L4:
	subl	%ecx, %eax
	cmpl	$8, %eax
	jg	.L7
	addl	$1, 40(%rsp,%rdx,4)
.L7:
	addl	$1, 52(%rsp,%rdx,4)
.L5:
	movl	24(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 24(%rsp)
	testl	%eax, %eax
	je	.L27
.L8:
	movq	%r15, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %ecx
	movl	36(%rsp), %eax
	cmpl	%eax, %ecx
	jle	.L3
	addl	$60, %eax
	movl	%eax, 36(%rsp)
.L3:
	imull	$100, 28(%rsp), %edx
	addl	%ecx, %edx
	leal	-1100(%rdx), %esi
	movl	%edx, 28(%rsp)
	cmpl	$359, %esi
	ja	.L28
	xorl	%edx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	leaq	64(%rsp), %rbx
	xorl	%r14d, %r14d
	leaq	52(%rsp), %rbp
	leaq	.LC2(%rip), %r15
.L11:
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	0(%rbp,%r14,4), %esi
	testl	%esi, %esi
	je	.L9
	imull	$100, 40(%rsp,%r14,4), %eax
	movl	$1, %edi
	cltd
	idivl	%esi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	addq	$1, %r14
	addq	$10, %rbx
	cmpq	$3, %r14
	jne	.L11
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$120, %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
.L26:
	.cfi_restore_state
	leal	-2100(%rdx), %esi
	cmpl	$300, %esi
	jbe	.L16
	cmpl	$159, %edx
	ja	.L5
.L16:
	movl	$2, %edx
	jmp	.L4
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.quad	448344782188
	.quad	8243116113465180160
	.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,h,m,t,i;
  char s[3][10]={"lunch","dinner","midnight"};
  while(scanf("%d",&n),n){
    int o[3]={0};
    int c[3]={0};
    while(n--){
      scanf("%d%*c%d %d",&h,&m,&t);
      if(m>t)t+=60;
      h=h*100+m;
      i=3;
      if(1100<=h&&h<=1459)i=0;
      if(1800<=h&&h<=2059)i=1;
      if(2100<=h&&h<=2400)i=2;
      if(   0<=h&&h<= 159)i=2;
      if(3-i){
	if(t-m<9)o[i]++;
	c[i]++;
      }
    }
    for(i=0;i<3;i++){
      printf("%s ",s[i]);
      if(c[i])printf("%d\n",(o[i]*100)/c[i]);
      else    printf("no guest\n");
    }    
  }
    return 0;
}
5
12:57 59
20:22 15
12:19 21
18:52 03
16:09 14
0
 5
12:57 59
22:02 15
12:19 21
18:52 03
16:09 14
0
 5
12:57 105
20:12 15
12:19 21
18:52 03
16:09 14
0
 5
12:57 59
20:22 15
12:19 38
18:52 03
16:09 14
0
 5
21:57 59
20:22 30
12:19 38
18:52 3
16:09 14
0
 5
12:57 34
20:22 30
12:19 38
18:52 3
16:09 14
0
 5
21:57 77
20:22 30
12:19 38
18:52 3
16:09 14
0
 5
12:57 3
20:12 15
12:19 21
18:52 03
16:09 14
0
 5
21:57 77
22:02 30
12:19 38
18:52 3
16:09 14
0
 5
12:57 68
22:02 15
12:19 21
18:52 1
16:09 23
0

lunch 100
dinner 0
midnight no guest
 lunch 100
dinner 0
midnight 0
 lunch 50
dinner 50
midnight no guest
 lunch 50
dinner 0
midnight no guest
 lunch 0
dinner 50
midnight 100
 lunch 0
dinner 50
midnight no guest
 lunch 0
dinner 50
midnight 0
 lunch 100
dinner 50
midnight no guest
 lunch 0
dinner 0
midnight 0
 lunch 50
dinner 0
midnight 0

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,h,m,t,i;
  char s[3][10]={"lunch","dinner","midnight"};
  while(scanf("%d",&n),n){
    int o[3]={0};
    int c[3]={0};
    while(n--){
      scanf("%d%*c%d %d",&h,&m,&t);
      if(m>t)t+=60;
      h=h*100+m;
      i=3;
      if(1100<=h&&h<=1459)i=0;
      if(1800<=h&&h<=2059)i=1;
      if(2100<=h&&h<=2400)i=2;
      if(   0<=h&&h<= 159)i=2;
      if(3-i){
	if(t-m<9)o[i]++;
	c[i]++;
      }
    }
    for(i=0;i<3;i++){
      printf("%s ",s[i]);
      if(c[i])printf("%d\n",(o[i]*100)/c[i]);
      else    printf("no guest\n");
    }    
  }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%*c%d %d"
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"no guest"
.LC4:
	.string	"%d"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$448344782188, %rax
	movq	%rax, -48(%rbp)
	movw	$0, -40(%rbp)
	movabsq	$125779969993060, %rax
	movq	%rax, -38(%rbp)
	movw	$0, -30(%rbp)
	movabsq	$8388068008498850157, %rax
	movq	%rax, -28(%rbp)
	movw	$0, -20(%rbp)
	jmp	.L2
.L15:
	movq	$0, -72(%rbp)
	movl	$0, -64(%rbp)
	movq	$0, -60(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L3
.L10:
	leaq	-80(%rbp), %rcx
	leaq	-84(%rbp), %rdx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-80(%rbp), %eax
	addl	$60, %eax
	movl	%eax, -80(%rbp)
.L4:
	movl	-88(%rbp), %eax
	imull	$100, %eax, %edx
	movl	-84(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -88(%rbp)
	movl	$3, -76(%rbp)
	movl	-88(%rbp), %eax
	cmpl	$1099, %eax
	jle	.L5
	movl	-88(%rbp), %eax
	cmpl	$1459, %eax
	jg	.L5
	movl	$0, -76(%rbp)
.L5:
	movl	-88(%rbp), %eax
	cmpl	$1799, %eax
	jle	.L6
	movl	-88(%rbp), %eax
	cmpl	$2059, %eax
	jg	.L6
	movl	$1, -76(%rbp)
.L6:
	movl	-88(%rbp), %eax
	cmpl	$2099, %eax
	jle	.L7
	movl	-88(%rbp), %eax
	cmpl	$2400, %eax
	jg	.L7
	movl	$2, -76(%rbp)
.L7:
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	js	.L8
	movl	-88(%rbp), %eax
	cmpl	$159, %eax
	jg	.L8
	movl	$2, -76(%rbp)
.L8:
	cmpl	$3, -76(%rbp)
	je	.L3
	movl	-80(%rbp), %eax
	movl	-84(%rbp), %edx
	subl	%edx, %eax
	cmpl	$8, %eax
	jg	.L9
	movl	-76(%rbp), %eax
	cltq
	movl	-72(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -72(%rbp,%rax,4)
.L9:
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -60(%rbp,%rax,4)
.L3:
	movl	-92(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -92(%rbp)
	testl	%eax, %eax
	jne	.L10
	movl	$0, -76(%rbp)
	jmp	.L11
.L14:
	leaq	-48(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L12
	movl	-76(%rbp), %eax
	cltq
	movl	-72(%rbp,%rax,4), %eax
	imull	$100, %eax, %eax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	-60(%rbp,%rdx,4), %esi
	cltd
	idivl	%esi
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L13:
	addl	$1, -76(%rbp)
.L11:
	cmpl	$2, -76(%rbp)
	jle	.L14
.L2:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.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
	.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%*c%d %d"
.LC1:
	.string	"%s "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"no guest"
.LC4:
	.string	"%d"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$448344782188, %rax
	movq	%rax, -48(%rbp)
	movw	$0, -40(%rbp)
	movabsq	$125779969993060, %rax
	movq	%rax, -38(%rbp)
	movw	$0, -30(%rbp)
	movabsq	$8388068008498850157, %rax
	movq	%rax, -28(%rbp)
	movw	$0, -20(%rbp)
	jmp	.L2
.L15:
	movq	$0, -72(%rbp)
	movl	$0, -64(%rbp)
	movq	$0, -60(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L3
.L10:
	leaq	-80(%rbp), %rcx
	leaq	-84(%rbp), %rdx
	leaq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-80(%rbp), %eax
	addl	$60, %eax
	movl	%eax, -80(%rbp)
.L4:
	movl	-88(%rbp), %eax
	imull	$100, %eax, %edx
	movl	-84(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -88(%rbp)
	movl	$3, -76(%rbp)
	movl	-88(%rbp), %eax
	cmpl	$1099, %eax
	jle	.L5
	movl	-88(%rbp), %eax
	cmpl	$1459, %eax
	jg	.L5
	movl	$0, -76(%rbp)
.L5:
	movl	-88(%rbp), %eax
	cmpl	$1799, %eax
	jle	.L6
	movl	-88(%rbp), %eax
	cmpl	$2059, %eax
	jg	.L6
	movl	$1, -76(%rbp)
.L6:
	movl	-88(%rbp), %eax
	cmpl	$2099, %eax
	jle	.L7
	movl	-88(%rbp), %eax
	cmpl	$2400, %eax
	jg	.L7
	movl	$2, -76(%rbp)
.L7:
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	js	.L8
	movl	-88(%rbp), %eax
	cmpl	$159, %eax
	jg	.L8
	movl	$2, -76(%rbp)
.L8:
	cmpl	$3, -76(%rbp)
	je	.L3
	movl	-80(%rbp), %eax
	movl	-84(%rbp), %edx
	subl	%edx, %eax
	cmpl	$8, %eax
	jg	.L9
	movl	-76(%rbp), %eax
	cltq
	movl	-72(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -72(%rbp,%rax,4)
.L9:
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -60(%rbp,%rax,4)
.L3:
	movl	-92(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -92(%rbp)
	testl	%eax, %eax
	jne	.L10
	movl	$0, -76(%rbp)
	jmp	.L11
.L14:
	leaq	-48(%rbp), %rcx
	movl	-76(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L12
	movl	-76(%rbp), %eax
	cltq
	movl	-72(%rbp,%rax,4), %eax
	imull	$100, %eax, %eax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	-60(%rbp,%rdx,4), %esi
	cltd
	idivl	%esi
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L13:
	addl	$1, -76(%rbp)
.L11:
	cmpl	$2, -76(%rbp)
	jle	.L14
.L2:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.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
	.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:
