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>

#define DAY_MAX (24*60*60)

int train_num[DAY_MAX+1];

int main(void) {
	int n,i;
	int h,m,s;
	int max;
	while(1) {
		scanf("%d",&n);
		if(n==0)break;
		for(i=0;i<=DAY_MAX;i++)train_num[i]=0;
		for(i=0;i<n;i++) {
			scanf("%d:%d:%d",&h,&m,&s);
			train_num[h*60*60+m*60+s]++;
			scanf("%d:%d:%d",&h,&m,&s);
			train_num[h*60*60+m*60+s]--;
		}
		max=0;
		for(i=1;i<=DAY_MAX;i++) {
			train_num[i]+=train_num[i-1];
			if(train_num[i]>max)max=train_num[i];
		}
		printf("%d\n",max);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d:%d:%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC1(%rip), %r14
	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
	leaq	train_num(%rip), %rbx
	leaq	345604(%rbx), %r15
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L2
	xorl	%esi, %esi
	movl	$345604, %edx
	movq	%rbx, %rdi
	call	memset@PLT
	testl	%ebp, %ebp
	jle	.L3
	xorl	%r8d, %r8d
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	%r8d, 4(%rsp)
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movq	%r13, %rcx
	movq	%rbp, %rsi
	imull	$3600, 28(%rsp), %eax
	movq	%r14, %rdi
	addl	%edx, %eax
	addl	36(%rsp), %eax
	movq	%r12, %rdx
	cltq
	addl	$1, (%rbx,%rax,4)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movl	4(%rsp), %r8d
	imull	$3600, 28(%rsp), %eax
	addl	$1, %r8d
	addl	%edx, %eax
	addl	36(%rsp), %eax
	cltq
	subl	$1, (%rbx,%rax,4)
	cmpl	%r8d, 24(%rsp)
	jg	.L4
.L3:
	movl	(%rbx), %edx
	leaq	4+train_num(%rip), %rax
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L5:
	addl	(%rax), %edx
	cmpl	%edx, %r8d
	movl	%edx, (%rax)
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	.L5
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$56, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	train_num
	.bss
	.align 32
	.type	train_num, @object
	.size	train_num, 345604
train_num:
	.zero	345604
	.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:%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC1(%rip), %r14
	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
	leaq	train_num(%rip), %rbx
	leaq	345604(%rbx), %r15
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L2
	xorl	%esi, %esi
	movl	$345604, %edx
	movq	%rbx, %rdi
	call	memset@PLT
	testl	%ebp, %ebp
	jle	.L3
	xorl	%r8d, %r8d
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	%r8d, 4(%rsp)
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movq	%r13, %rcx
	movq	%rbp, %rsi
	imull	$3600, 28(%rsp), %eax
	movq	%r14, %rdi
	addl	%edx, %eax
	addl	36(%rsp), %eax
	movq	%r12, %rdx
	cltq
	addl	$1, (%rbx,%rax,4)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movl	4(%rsp), %r8d
	imull	$3600, 28(%rsp), %eax
	addl	$1, %r8d
	addl	%edx, %eax
	addl	36(%rsp), %eax
	cltq
	subl	$1, (%rbx,%rax,4)
	cmpl	%r8d, 24(%rsp)
	jg	.L4
.L3:
	movl	(%rbx), %edx
	leaq	4+train_num(%rip), %rax
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L5:
	addl	(%rax), %edx
	cmpl	%edx, %r8d
	movl	%edx, (%rax)
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	.L5
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$56, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	train_num
	.bss
	.align 32
	.type	train_num, @object
	.size	train_num, 345604
train_num:
	.zero	345604
	.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:%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC1(%rip), %r14
	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
	leaq	train_num(%rip), %rbx
	leaq	345604(%rbx), %r15
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L2
	xorl	%esi, %esi
	movl	$345604, %edx
	movq	%rbx, %rdi
	call	memset@PLT
	testl	%ebp, %ebp
	jle	.L3
	xorl	%r8d, %r8d
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	%r8d, 4(%rsp)
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movq	%r13, %rcx
	movq	%rbp, %rsi
	imull	$3600, 28(%rsp), %eax
	movq	%r14, %rdi
	addl	%edx, %eax
	addl	36(%rsp), %eax
	movq	%r12, %rdx
	cltq
	addl	$1, (%rbx,%rax,4)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movl	4(%rsp), %r8d
	imull	$3600, 28(%rsp), %eax
	addl	$1, %r8d
	addl	%edx, %eax
	addl	36(%rsp), %eax
	cltq
	subl	$1, (%rbx,%rax,4)
	cmpl	%r8d, 24(%rsp)
	jg	.L4
.L3:
	movl	(%rbx), %edx
	leaq	4+train_num(%rip), %rax
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L5:
	addl	(%rax), %edx
	cmpl	%edx, %r8d
	movl	%edx, (%rax)
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	.L5
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$56, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	train_num
	.bss
	.align 32
	.type	train_num, @object
	.size	train_num, 345604
train_num:
	.zero	345604
	.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>

#define DAY_MAX (24*60*60)

int train_num[DAY_MAX+1];

int main(void) {
	int n,i;
	int h,m,s;
	int max;
	while(1) {
		scanf("%d",&n);
		if(n==0)break;
		for(i=0;i<=DAY_MAX;i++)train_num[i]=0;
		for(i=0;i<n;i++) {
			scanf("%d:%d:%d",&h,&m,&s);
			train_num[h*60*60+m*60+s]++;
			scanf("%d:%d:%d",&h,&m,&s);
			train_num[h*60*60+m*60+s]--;
		}
		max=0;
		for(i=1;i<=DAY_MAX;i++) {
			train_num[i]+=train_num[i-1];
			if(train_num[i]>max)max=train_num[i];
		}
		printf("%d\n",max);
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

#define DAY_MAX (24*60*60)

int train_num[DAY_MAX+1];

int main(void) {
	int n,i;
	int h,m,s;
	int max;
	while(1) {
		scanf("%d",&n);
		if(n==0)break;
		for(i=0;i<=DAY_MAX;i++)train_num[i]=0;
		for(i=0;i<n;i++) {
			scanf("%d:%d:%d",&h,&m,&s);
			train_num[h*60*60+m*60+s]++;
			scanf("%d:%d:%d",&h,&m,&s);
			train_num[h*60*60+m*60+s]--;
		}
		max=0;
		for(i=1;i<=DAY_MAX;i++) {
			train_num[i]+=train_num[i-1];
			if(train_num[i]>max)max=train_num[i];
		}
		printf("%d\n",max);
	}
	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:

3
05:47:15 04:45:90
12:12:59 12:13:00
16:30:20 21:18:53
6
00:00:00 03:00:00
01:00:00 03:00:00
02:00:00 03:00:00
03:00:00 04:00:00
03:00:00 05:00:00
03:00:00 06:00:00
0
 3
05:47:15 09:54:40
12:12:59 12:13:00
16:30:20 21:18:53
6
00:00:00 03:00:00
01:00:00 03:00:00
02:00:00 03:00:00
03:00:00 04:00:00
00:30:00 05:00:00
03:00:00 06:00:00
0
 3
05:67:15 09:54:40
12:12:59 12:13:00
02:03:61 21:18:53
6
00:00:00 03:00:00
01:00:00 03:00:00
02:00:00 03:00:00
03:00:00 04:00:00
00:30:00 05:00:00
03:00:00 06:00:00
0
 3
05:67:15 09:54:40
12:12:59 12:13:00
16:30:20 21:18:53
6
00:00:00 03:00:00
01:00:00 03:00:00
02:00:00 03:00:00
02:00:00 04:00:00
00:30:00 05:00:00
03:00:00 06:00:00
0
 3
05:57:15 09:54:40
12:12:59 12:13:00
16:30:20 21:18:53
6
00:00:00 00:00:30
01:00:00 00:00:30
02:00:00 03:00:00
03:00:00 04:00:00
00:30:00 05:00:00
00:01:30 00:00:70
0
 3
05:57:15 09:54:40
12:12:59 12:13:00
02:03:61 21:18:53
6
00:00:00 00:00:30
01:00:00 03:00:00
02:00:00 03:00:00
03:00:00 04:00:00
00:30:00 05:00:00
03:10:00 06:00:00
0
 3
05:57:15 19:54:40
12:12:59 12:13:00
16:30:20 21:18:53
6
00:00:00 00:00:30
01:00:00 00:00:30
02:00:00 03:00:00
03:00:00 04:00:00
00:30:00 05:00:00
00:01:30 00:00:70
0
 3
05:67:15 09:54:40
12:12:59 12:13:00
02:03:61 21:18:63
6
00:00:00 03:00:00
00:00:10 03:00:00
02:00:00 03:00:00
02:00:00 04:00:00
00:30:00 05:00:00
03:00:00 06:00:00
0
 3
05:67:15 09:54:41
11:12:59 00:31:21
15:40:20 21:18:53
0
00:00:00 03:00:00
00:00:10 00:00:30
20:00:00 03:00:00
03:00:00 04:00:00
00:30:00 05:00:00
00:10:30 06:00:00
0
 3
05:67:15 09:53:40
11:12:59 00:31:21
15:30:20 21:18:53
6
00:00:00 03:00:00
01:00:00 03:00:00
02:00:00 03:00:00
00:00:30 04:00:00
00:30:00 05:00:00
00:00:30 06:00:00
0

1
3
 1
4
 2
4
 1
5
 1
2
 2
3
 2
2
 2
5
 1
 1
6

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>

#define DAY_MAX (24*60*60)

int train_num[DAY_MAX+1];

int main(void) {
	int n,i;
	int h,m,s;
	int max;
	while(1) {
		scanf("%d",&n);
		if(n==0)break;
		for(i=0;i<=DAY_MAX;i++)train_num[i]=0;
		for(i=0;i<n;i++) {
			scanf("%d:%d:%d",&h,&m,&s);
			train_num[h*60*60+m*60+s]++;
			scanf("%d:%d:%d",&h,&m,&s);
			train_num[h*60*60+m*60+s]--;
		}
		max=0;
		for(i=1;i<=DAY_MAX;i++) {
			train_num[i]+=train_num[i-1];
			if(train_num[i]>max)max=train_num[i];
		}
		printf("%d\n",max);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d:%d:%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC1(%rip), %r14
	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
	leaq	train_num(%rip), %rbx
	leaq	345604(%rbx), %r15
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L2
	xorl	%esi, %esi
	movl	$345604, %edx
	movq	%rbx, %rdi
	call	memset@PLT
	testl	%ebp, %ebp
	jle	.L3
	xorl	%r8d, %r8d
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	%r8d, 4(%rsp)
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movq	%r13, %rcx
	movq	%rbp, %rsi
	imull	$3600, 28(%rsp), %eax
	movq	%r14, %rdi
	addl	%edx, %eax
	addl	36(%rsp), %eax
	movq	%r12, %rdx
	cltq
	addl	$1, (%rbx,%rax,4)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movl	4(%rsp), %r8d
	imull	$3600, 28(%rsp), %eax
	addl	$1, %r8d
	addl	%edx, %eax
	addl	36(%rsp), %eax
	cltq
	subl	$1, (%rbx,%rax,4)
	cmpl	%r8d, 24(%rsp)
	jg	.L4
.L3:
	movl	(%rbx), %edx
	leaq	4+train_num(%rip), %rax
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L5:
	addl	(%rax), %edx
	cmpl	%edx, %r8d
	movl	%edx, (%rax)
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	.L5
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$56, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	train_num
	.bss
	.align 32
	.type	train_num, @object
	.size	train_num, 345604
train_num:
	.zero	345604
	.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:%d"
.LC2:
	.string	"%d\n"
	.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
	leaq	.LC1(%rip), %r14
	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
	leaq	train_num(%rip), %rbx
	leaq	345604(%rbx), %r15
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L2
	xorl	%esi, %esi
	movl	$345604, %edx
	movq	%rbx, %rdi
	call	memset@PLT
	testl	%ebp, %ebp
	jle	.L3
	xorl	%r8d, %r8d
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	28(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	%r8d, 4(%rsp)
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movq	%r13, %rcx
	movq	%rbp, %rsi
	imull	$3600, 28(%rsp), %eax
	movq	%r14, %rdi
	addl	%edx, %eax
	addl	36(%rsp), %eax
	movq	%r12, %rdx
	cltq
	addl	$1, (%rbx,%rax,4)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	imull	$60, 32(%rsp), %edx
	movl	4(%rsp), %r8d
	imull	$3600, 28(%rsp), %eax
	addl	$1, %r8d
	addl	%edx, %eax
	addl	36(%rsp), %eax
	cltq
	subl	$1, (%rbx,%rax,4)
	cmpl	%r8d, 24(%rsp)
	jg	.L4
.L3:
	movl	(%rbx), %edx
	leaq	4+train_num(%rip), %rax
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L5:
	addl	(%rax), %edx
	cmpl	%edx, %r8d
	movl	%edx, (%rax)
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	.L5
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$56, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	train_num
	.bss
	.align 32
	.type	train_num, @object
	.size	train_num, 345604
train_num:
	.zero	345604
	.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:
```