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 count=0;
    int N,M,h,m,k,g,i;
    int bus[24][60];

       
    for(h=0;h<=23;h++){
        for(m=0;m<=59;m++){
            bus[h][m]=0;
        }
    }
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d %d",&h,&m);
        bus[h][m]=1;
    }
    scanf("%d",&M);
    for(i=0;i<M;i++){
        scanf("%d %d",&k,&g);
        bus[k][g]=1;
    }
    for(h=0;h<=23;h++){
        for(m=0;m<=59;m++){
            if(bus[h][m]==1){
                if(count!=0)printf(" ");
                count++;
                printf("%d:%02d",h,m);
            }
        }
    }
    printf("\n");
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d:%02d"
	.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$1712, %rsp
	.cfi_def_cfa_offset 5856
	movl	$720, %ecx
	leaq	.LC0(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5800(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movl	$60, 20(%rsp)
	movq	%rdx, %rdi
	movl	$24, 16(%rsp)
	rep stosq
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L5
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdx
	movslq	20(%rsp), %rcx
	addl	$1, %r14d
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r14d, 8(%rsp)
	jg	.L2
.L5:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%ebx, %ebx
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rdx
	movslq	28(%rsp), %rcx
	addl	$1, %ebx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 12(%rsp)
	jg	.L3
.L4:
	movl	$0, 16(%rsp)
	xorl	%r8d, %r8d
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$0, 20(%rsp)
	xorl	%ecx, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jg	.L22
.L9:
	movslq	%r8d, %rsi
	movslq	%ecx, %rax
	movq	%rsi, %rdx
	salq	$4, %rdx
	subq	%rsi, %rdx
	leaq	(%rax,%rdx,4), %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L7
	testl	%ebp, %ebp
	jne	.L23
.L8:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	addl	$1, %ebp
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jle	.L9
.L22:
	addl	$1, %r8d
	movl	%r8d, 16(%rsp)
	cmpl	$23, %r8d
	jle	.L6
	movl	$10, %edi
	call	putchar@PLT
	movq	5800(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5808, %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
	movl	$32, %edi
	call	putchar@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	jmp	.L8
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d:%02d"
	.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$1712, %rsp
	.cfi_def_cfa_offset 5856
	movl	$720, %ecx
	leaq	.LC0(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5800(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movl	$60, 20(%rsp)
	movq	%rdx, %rdi
	movl	$24, 16(%rsp)
	rep stosq
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L5
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdx
	movslq	20(%rsp), %rcx
	addl	$1, %r14d
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r14d, 8(%rsp)
	jg	.L2
.L5:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%ebx, %ebx
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rdx
	movslq	28(%rsp), %rcx
	addl	$1, %ebx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 12(%rsp)
	jg	.L3
.L4:
	movl	$0, 16(%rsp)
	xorl	%r8d, %r8d
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$0, 20(%rsp)
	xorl	%ecx, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jg	.L22
.L9:
	movslq	%r8d, %rsi
	movslq	%ecx, %rax
	movq	%rsi, %rdx
	salq	$4, %rdx
	subq	%rsi, %rdx
	leaq	(%rax,%rdx,4), %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L7
	testl	%ebp, %ebp
	jne	.L23
.L8:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	addl	$1, %ebp
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jle	.L9
.L22:
	addl	$1, %r8d
	movl	%r8d, 16(%rsp)
	cmpl	$23, %r8d
	jle	.L6
	movl	$10, %edi
	call	putchar@PLT
	movq	5800(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5808, %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
	movl	$32, %edi
	call	putchar@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	jmp	.L8
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d:%02d"
	.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$1712, %rsp
	.cfi_def_cfa_offset 5856
	movl	$720, %ecx
	leaq	.LC0(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5800(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movl	$60, 20(%rsp)
	movq	%rdx, %rdi
	movl	$24, 16(%rsp)
	rep stosq
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L5
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdx
	movslq	20(%rsp), %rcx
	addl	$1, %r14d
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r14d, 8(%rsp)
	jg	.L2
.L5:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%ebx, %ebx
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rdx
	movslq	28(%rsp), %rcx
	addl	$1, %ebx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 12(%rsp)
	jg	.L3
.L4:
	movl	$0, 16(%rsp)
	xorl	%r8d, %r8d
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$0, 20(%rsp)
	xorl	%ecx, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jg	.L22
.L9:
	movslq	%r8d, %rsi
	movslq	%ecx, %rax
	movq	%rsi, %rdx
	salq	$4, %rdx
	subq	%rsi, %rdx
	leaq	(%rax,%rdx,4), %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L7
	testl	%ebp, %ebp
	jne	.L23
.L8:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	addl	$1, %ebp
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jle	.L9
.L22:
	addl	$1, %r8d
	movl	%r8d, 16(%rsp)
	cmpl	$23, %r8d
	jle	.L6
	movl	$10, %edi
	call	putchar@PLT
	movq	5800(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5808, %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
	movl	$32, %edi
	call	putchar@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	jmp	.L8
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include <stdio.h>

int main()
{
    int count=0;
    int N,M,h,m,k,g,i;
    int bus[24][60];

       
    for(h=0;h<=23;h++){
        for(m=0;m<=59;m++){
            bus[h][m]=0;
        }
    }
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d %d",&h,&m);
        bus[h][m]=1;
    }
    scanf("%d",&M);
    for(i=0;i<M;i++){
        scanf("%d %d",&k,&g);
        bus[k][g]=1;
    }
    for(h=0;h<=23;h++){
        for(m=0;m<=59;m++){
            if(bus[h][m]==1){
                if(count!=0)printf(" ");
                count++;
                printf("%d:%02d",h,m);
            }
        }
    }
    printf("\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 count=0;
    int N,M,h,m,k,g,i;
    int bus[24][60];

       
    for(h=0;h<=23;h++){
        for(m=0;m<=59;m++){
            bus[h][m]=0;
        }
    }
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d %d",&h,&m);
        bus[h][m]=1;
    }
    scanf("%d",&M);
    for(i=0;i<M;i++){
        scanf("%d %d",&k,&g);
        bus[k][g]=1;
    }
    for(h=0;h<=23;h++){
        for(m=0;m<=59;m++){
            if(bus[h][m]==1){
                if(count!=0)printf(" ");
                count++;
                printf("%d:%02d",h,m);
            }
        }
    }
    printf("\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:

2 9 8 15 59
1 8 27

8:27 9:08 15:59

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 count=0;
    int N,M,h,m,k,g,i;
    int bus[24][60];

       
    for(h=0;h<=23;h++){
        for(m=0;m<=59;m++){
            bus[h][m]=0;
        }
    }
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d %d",&h,&m);
        bus[h][m]=1;
    }
    scanf("%d",&M);
    for(i=0;i<M;i++){
        scanf("%d %d",&k,&g);
        bus[k][g]=1;
    }
    for(h=0;h<=23;h++){
        for(m=0;m<=59;m++){
            if(bus[h][m]==1){
                if(count!=0)printf(" ");
                count++;
                printf("%d:%02d",h,m);
            }
        }
    }
    printf("\n");
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d:%02d"
	.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$1712, %rsp
	.cfi_def_cfa_offset 5856
	movl	$720, %ecx
	leaq	.LC0(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5800(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movl	$60, 20(%rsp)
	movq	%rdx, %rdi
	movl	$24, 16(%rsp)
	rep stosq
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L5
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdx
	movslq	20(%rsp), %rcx
	addl	$1, %r14d
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r14d, 8(%rsp)
	jg	.L2
.L5:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%ebx, %ebx
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rdx
	movslq	28(%rsp), %rcx
	addl	$1, %ebx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 12(%rsp)
	jg	.L3
.L4:
	movl	$0, 16(%rsp)
	xorl	%r8d, %r8d
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$0, 20(%rsp)
	xorl	%ecx, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jg	.L22
.L9:
	movslq	%r8d, %rsi
	movslq	%ecx, %rax
	movq	%rsi, %rdx
	salq	$4, %rdx
	subq	%rsi, %rdx
	leaq	(%rax,%rdx,4), %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L7
	testl	%ebp, %ebp
	jne	.L23
.L8:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	addl	$1, %ebp
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jle	.L9
.L22:
	addl	$1, %r8d
	movl	%r8d, 16(%rsp)
	cmpl	$23, %r8d
	jle	.L6
	movl	$10, %edi
	call	putchar@PLT
	movq	5800(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5808, %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
	movl	$32, %edi
	call	putchar@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	jmp	.L8
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d:%02d"
	.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$1712, %rsp
	.cfi_def_cfa_offset 5856
	movl	$720, %ecx
	leaq	.LC0(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 5800(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdx
	leaq	8(%rsp), %rsi
	movl	$60, 20(%rsp)
	movq	%rdx, %rdi
	movl	$24, 16(%rsp)
	rep stosq
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L5
	xorl	%r14d, %r14d
	leaq	20(%rsp), %r12
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdx
	movslq	20(%rsp), %rcx
	addl	$1, %r14d
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r14d, 8(%rsp)
	jg	.L2
.L5:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	xorl	%ebx, %ebx
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rdx
	movslq	28(%rsp), %rcx
	addl	$1, %ebx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,4), %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%ebx, 12(%rsp)
	jg	.L3
.L4:
	movl	$0, 16(%rsp)
	xorl	%r8d, %r8d
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$0, 20(%rsp)
	xorl	%ecx, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jg	.L22
.L9:
	movslq	%r8d, %rsi
	movslq	%ecx, %rax
	movq	%rsi, %rdx
	salq	$4, %rdx
	subq	%rsi, %rdx
	leaq	(%rax,%rdx,4), %rax
	cmpl	$1, 32(%rsp,%rax,4)
	jne	.L7
	testl	%ebp, %ebp
	jne	.L23
.L8:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	addl	$1, %ebp
	addl	$1, %ecx
	movl	%ecx, 20(%rsp)
	cmpl	$59, %ecx
	jle	.L9
.L22:
	addl	$1, %r8d
	movl	%r8d, 16(%rsp)
	cmpl	$23, %r8d
	jle	.L6
	movl	$10, %edi
	call	putchar@PLT
	movq	5800(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$5808, %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
	movl	$32, %edi
	call	putchar@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r8d
	jmp	.L8
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```