Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
M(int*a,int*b){return*a-*b;}n,T[9999][2];j,m,s;main(i){for(;~scanf("%d",&n);qsort(T,n,8,M),n&&printf("%d\n%d\n%d\n",1[*T],T[1][1],T[n-2][1]))for(i=n;i--;)for(scanf("%d",T[i]+1),*T[i]=0,j=4;j--;*T[i]+=m*60+s)scanf("%d%d",&m,&s);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	M
	.type	M, @function
M:
.LFB0:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
.L4:
	leaq	m(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L18
	movslq	n(%rip), %rsi
	leal	-1(%rsi), %eax
	testl	%esi, %esi
	je	.L5
	movslq	%eax, %rdx
	leaq	T(%rip), %rcx
	movl	%eax, %eax
	subq	%rax, %rsi
	leaq	-12(%rcx), %rax
	leaq	4(%rcx,%rdx,8), %r15
	leaq	(%rax,%rsi,8), %r14
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	$0, -4(%r15)
	movl	$3, j(%rip)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	$60, m(%rip), %eax
	addl	s(%rip), %eax
	addl	%eax, -4(%r15)
	movl	j(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, j(%rip)
	testl	%eax, %eax
	jne	.L6
	subq	$8, %r15
	cmpq	%r14, %r15
	jne	.L7
	movl	n(%rip), %esi
.L5:
	leaq	M(%rip), %rcx
	movl	$8, %edx
	leaq	T(%rip), %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L8
	subl	$2, %eax
	leaq	T(%rip), %rcx
	movl	12+T(%rip), %edx
	movl	4+T(%rip), %esi
	cltq
	leaq	.LC2(%rip), %rdi
	movl	4(%rcx,%rax,8), %ecx
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L4
.L18:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	s
	.bss
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 79992
T:
	.zero	79992
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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
	.p2align 4
	.globl	M
	.type	M, @function
M:
.LFB0:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
.L4:
	leaq	m(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L18
	movslq	n(%rip), %rsi
	leal	-1(%rsi), %eax
	testl	%esi, %esi
	je	.L5
	movslq	%eax, %rdx
	leaq	T(%rip), %rcx
	movl	%eax, %eax
	subq	%rax, %rsi
	leaq	-12(%rcx), %rax
	leaq	4(%rcx,%rdx,8), %r15
	leaq	(%rax,%rsi,8), %r14
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	$0, -4(%r15)
	movl	$3, j(%rip)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	$60, m(%rip), %eax
	addl	s(%rip), %eax
	addl	%eax, -4(%r15)
	movl	j(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, j(%rip)
	testl	%eax, %eax
	jne	.L6
	subq	$8, %r15
	cmpq	%r14, %r15
	jne	.L7
	movl	n(%rip), %esi
.L5:
	leaq	M(%rip), %rcx
	movl	$8, %edx
	leaq	T(%rip), %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L8
	subl	$2, %eax
	leaq	T(%rip), %rcx
	movl	12+T(%rip), %edx
	movl	4+T(%rip), %esi
	cltq
	leaq	.LC2(%rip), %rdi
	movl	4(%rcx,%rax,8), %ecx
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L4
.L18:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	s
	.bss
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 79992
T:
	.zero	79992
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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
	.p2align 4
	.globl	M
	.type	M, @function
M:
.LFB0:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
.L4:
	leaq	m(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L18
	movslq	n(%rip), %rsi
	leal	-1(%rsi), %eax
	testl	%esi, %esi
	je	.L5
	movslq	%eax, %rdx
	leaq	T(%rip), %rcx
	movl	%eax, %eax
	subq	%rax, %rsi
	leaq	-12(%rcx), %rax
	leaq	4(%rcx,%rdx,8), %r15
	leaq	(%rax,%rsi,8), %r14
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	$0, -4(%r15)
	movl	$3, j(%rip)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	$60, m(%rip), %eax
	addl	s(%rip), %eax
	addl	%eax, -4(%r15)
	movl	j(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, j(%rip)
	testl	%eax, %eax
	jne	.L6
	subq	$8, %r15
	cmpq	%r14, %r15
	jne	.L7
	movl	n(%rip), %esi
.L5:
	leaq	M(%rip), %rcx
	movl	$8, %edx
	leaq	T(%rip), %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L8
	subl	$2, %eax
	leaq	T(%rip), %rcx
	movl	12+T(%rip), %edx
	movl	4+T(%rip), %esi
	cltq
	leaq	.LC2(%rip), %rdi
	movl	4(%rcx,%rax,8), %ecx
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L4
.L18:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	s
	.bss
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 79992
T:
	.zero	79992
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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
M(int*a,int*b){return*a-*b;}n,T[9999][2];j,m,s;main(i){for(;~scanf("%d",&n);qsort(T,n,8,M),n&&printf("%d\n%d\n%d\n",1[*T],T[1][1],T[n-2][1]))for(i=n;i--;)for(scanf("%d",T[i]+1),*T[i]=0,j=4;j--;*T[i]+=m*60+s)scanf("%d%d",&m,&s);}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
M(int*a,int*b){return*a-*b;}n,T[9999][2];j,m,s;main(i){for(;~scanf("%d",&n);qsort(T,n,8,M),n&&printf("%d\n%d\n%d\n",1[*T],T[1][1],T[n-2][1]))for(i=n;i--;)for(scanf("%d",T[i]+1),*T[i]=0,j=4;j--;*T[i]+=m*60+s)scanf("%d%d",&m,&s);}```

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:

8
34001 3 20 3 8 6 27 2 25
20941 3 5 2 41 7 19 2 42
90585 4 8 3 12 6 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 12 2 54
63812 4 11 3 11 6 98 2 22
54092 3 33 2 54 6 18 2 19
25012 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 44
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0
 8
34001 3 20 3 8 6 27 2 25
20941 3 5 2 41 7 19 2 42
90585 4 8 3 12 6 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 12 4 54
63812 4 11 3 11 6 98 2 22
54092 3 33 2 54 6 18 2 19
25012 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 44
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0
 8
34001 3 20 3 8 6 27 2 25
20941 3 5 2 41 7 19 0 42
90585 4 8 3 12 6 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 12 4 54
63812 4 11 3 11 6 98 2 22
54092 3 33 2 54 6 18 2 19
25012 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 44
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0
 8
34001 3 20 3 8 6 27 2 25
20941 3 5 2 41 7 19 0 42
90585 4 8 3 12 6 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 12 4 54
63812 4 11 3 11 6 98 2 22
54092 3 33 2 54 6 18 2 19
25012 3 44 2 58 6 45 4 46
4
1 3 23 1 23 1 34 4 44
2 5 16 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0
 8
65541 3 20 3 8 6 27 2 25
20941 3 5 2 41 7 19 2 42
90585 4 8 3 12 6 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 12 4 54
63812 4 11 3 11 6 98 2 22
54092 3 33 2 54 6 18 2 19
25012 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 44
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0
 8
34001 3 20 3 8 6 27 2 25
20941 3 5 2 41 7 19 2 42
90585 4 8 3 12 6 46 2 5
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 12 2 54
63812 4 11 3 11 6 98 2 22
54092 3 33 2 54 6 18 2 19
25012 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 44
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 61
4 4 49 2 22 4 25 4 23
0
 8
65541 3 20 3 8 6 27 2 25
20941 3 5 2 41 7 19 2 42
90585 4 8 3 12 11 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 12 4 54
63812 4 11 3 11 6 98 2 22
54092 3 33 2 54 6 18 2 19
25012 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 69
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0
 8
34001 3 20 3 8 6 27 2 25
20941 3 5 3 41 7 19 2 42
90585 4 8 3 12 5 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 24 2 54
63812 4 11 3 11 6 53 2 22
54092 3 33 2 54 6 18 2 19
5599 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 44
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0
 8
65541 3 20 3 8 6 27 2 25
20941 3 5 2 41 7 19 2 42
90585 4 8 3 12 11 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 12 4 54
63812 4 11 3 11 6 98 2 22
54092 3 56 2 54 6 18 2 19
25012 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 69
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0
 8
34001 3 20 5 8 6 27 2 25
20941 3 5 3 41 7 19 2 42
90585 4 8 3 12 5 46 2 34
92201 3 28 2 47 6 37 2 58
10001 3 50 2 42 7 24 2 54
63812 4 11 3 11 6 53 2 22
54092 3 33 2 54 6 18 2 19
5599 3 44 2 58 6 45 2 46
4
1 3 23 1 23 1 34 4 44
2 5 12 2 12 3 41 2 29
3 5 24 1 24 2 0 3 35
4 4 49 2 22 4 41 4 23
0

54092
34001
90585
1
3
2
 54092
34001
63812
1
3
2
 20941
54092
63812
1
3
2
 20941
54092
25012
1
3
2
 54092
65541
63812
1
3
2
 54092
34001
10001
1
3
2
 54092
65541
10001
1
3
2
 54092
34001
20941
1
3
2
 65541
54092
10001
1
3
2
 54092
90585
10001
1
3
2

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
M(int*a,int*b){return*a-*b;}n,T[9999][2];j,m,s;main(i){for(;~scanf("%d",&n);qsort(T,n,8,M),n&&printf("%d\n%d\n%d\n",1[*T],T[1][1],T[n-2][1]))for(i=n;i--;)for(scanf("%d",T[i]+1),*T[i]=0,j=4;j--;*T[i]+=m*60+s)scanf("%d%d",&m,&s);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	M
	.type	M, @function
M:
.LFB0:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
.L4:
	leaq	m(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L18
	movslq	n(%rip), %rsi
	leal	-1(%rsi), %eax
	testl	%esi, %esi
	je	.L5
	movslq	%eax, %rdx
	leaq	T(%rip), %rcx
	movl	%eax, %eax
	subq	%rax, %rsi
	leaq	-12(%rcx), %rax
	leaq	4(%rcx,%rdx,8), %r15
	leaq	(%rax,%rsi,8), %r14
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	$0, -4(%r15)
	movl	$3, j(%rip)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	$60, m(%rip), %eax
	addl	s(%rip), %eax
	addl	%eax, -4(%r15)
	movl	j(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, j(%rip)
	testl	%eax, %eax
	jne	.L6
	subq	$8, %r15
	cmpq	%r14, %r15
	jne	.L7
	movl	n(%rip), %esi
.L5:
	leaq	M(%rip), %rcx
	movl	$8, %edx
	leaq	T(%rip), %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L8
	subl	$2, %eax
	leaq	T(%rip), %rcx
	movl	12+T(%rip), %edx
	movl	4+T(%rip), %esi
	cltq
	leaq	.LC2(%rip), %rdi
	movl	4(%rcx,%rax,8), %ecx
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L4
.L18:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	s
	.bss
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 79992
T:
	.zero	79992
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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
	.p2align 4
	.globl	M
	.type	M, @function
M:
.LFB0:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n%d\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
.L4:
	leaq	m(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L18
	movslq	n(%rip), %rsi
	leal	-1(%rsi), %eax
	testl	%esi, %esi
	je	.L5
	movslq	%eax, %rdx
	leaq	T(%rip), %rcx
	movl	%eax, %eax
	subq	%rax, %rsi
	leaq	-12(%rcx), %rax
	leaq	4(%rcx,%rdx,8), %r15
	leaq	(%rax,%rsi,8), %r14
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	$0, -4(%r15)
	movl	$3, j(%rip)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	$60, m(%rip), %eax
	addl	s(%rip), %eax
	addl	%eax, -4(%r15)
	movl	j(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, j(%rip)
	testl	%eax, %eax
	jne	.L6
	subq	$8, %r15
	cmpq	%r14, %r15
	jne	.L7
	movl	n(%rip), %esi
.L5:
	leaq	M(%rip), %rcx
	movl	$8, %edx
	leaq	T(%rip), %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L8
	subl	$2, %eax
	leaq	T(%rip), %rcx
	movl	12+T(%rip), %edx
	movl	4+T(%rip), %esi
	cltq
	leaq	.LC2(%rip), %rdi
	movl	4(%rcx,%rax,8), %ecx
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L4
.L18:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	s
	.bss
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 79992
T:
	.zero	79992
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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:
```