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>

typedef struct {
	int id;
	float time;
} PLAYER;

int cmp(PLAYER *a, PLAYER *b)
{
	if (a->time < b->time) return (-1);
	if (a->time == b->time) return (0);
	return (1);
}

int main(void)
{
	int i, j, k = 0, n;
	PLAYER player[8];
	PLAYER rank3[18];
	
	for (i = 0; i < 3; i++){
		for (j = 0; j < 8; j++){
			scanf("%d %f", &player[j].id, &player[j].time);
		}
		
		qsort(player, 8, sizeof(PLAYER), cmp);
		
		printf("%d %.2f\n%d %.2f\n", player[0].id, player[0].time, player[1].id, player[1].time);
		
		for (j = 2; j < 8; j++){
			rank3[k].id = player[j].id;
			rank3[k++].time = player[j].time;
		}
	}
	
	qsort(rank3, 18, sizeof(PLAYER), cmp);
	
	printf("%d %.2f\n%d %.2f\n", rank3[0].id, rank3[0].time, rank3[1].id, rank3[1].time);
	
	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB23:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm1
	movss	4(%rsi), %xmm0
	movl	$-1, %eax
	comiss	%xmm1, %xmm0
	ja	.L1
	xorl	%eax, %eax
	ucomiss	%xmm0, %xmm1
	movl	$1, %edx
	setp	%al
	cmovne	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %f"
.LC1:
	.string	"%d %.2f\n%d %.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cmp(%rip), %r15
	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
	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	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rax
	leaq	80(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	16(%rsp), %rax
	movq	%rbp, %rbx
	movq	%rax, (%rsp)
.L6:
	movq	(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	4(%r13), %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$8, %r13
	cmpq	%r13, %rbp
	jne	.L7
	movq	(%rsp), %rdi
	movq	%r15, %rcx
	movl	$8, %edx
	xorl	%eax, %eax
	movl	$8, %esi
	addq	$48, %rbx
	call	qsort@PLT
	movl	24(%rsp), %ecx
	movl	16(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	20(%rsp), %xmm0
	cvtss2sd	28(%rsp), %xmm1
	call	__printf_chk@PLT
	movl	32(%rsp), %eax
	movss	36(%rsp), %xmm0
	movl	%eax, -48(%rbx)
	movl	40(%rsp), %eax
	movss	%xmm0, -44(%rbx)
	movss	44(%rsp), %xmm0
	movl	%eax, -40(%rbx)
	movl	48(%rsp), %eax
	movss	%xmm0, -36(%rbx)
	movss	52(%rsp), %xmm0
	movl	%eax, -32(%rbx)
	movl	56(%rsp), %eax
	movss	%xmm0, -28(%rbx)
	movss	60(%rsp), %xmm0
	movl	%eax, -24(%rbx)
	movl	64(%rsp), %eax
	movss	%xmm0, -20(%rbx)
	movss	68(%rsp), %xmm0
	movl	%eax, -16(%rbx)
	movl	72(%rsp), %eax
	movss	%xmm0, -12(%rbx)
	movss	76(%rsp), %xmm0
	movl	%eax, -8(%rbx)
	movss	%xmm0, -4(%rbx)
	cmpq	8(%rsp), %rbx
	jne	.L6
	movq	%r15, %rcx
	movl	$8, %edx
	movl	$18, %esi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	88(%rsp), %ecx
	movl	80(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	84(%rsp), %xmm0
	cvtss2sd	92(%rsp), %xmm1
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$248, %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
.LFE24:
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB23:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm1
	movss	4(%rsi), %xmm0
	movl	$-1, %eax
	comiss	%xmm1, %xmm0
	ja	.L1
	xorl	%eax, %eax
	ucomiss	%xmm0, %xmm1
	movl	$1, %edx
	setp	%al
	cmovne	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %f"
.LC1:
	.string	"%d %.2f\n%d %.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cmp(%rip), %r15
	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
	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	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rax
	leaq	80(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	16(%rsp), %rax
	movq	%rbp, %rbx
	movq	%rax, (%rsp)
.L6:
	movq	(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	4(%r13), %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$8, %r13
	cmpq	%r13, %rbp
	jne	.L7
	movq	(%rsp), %rdi
	movq	%r15, %rcx
	movl	$8, %edx
	xorl	%eax, %eax
	movl	$8, %esi
	addq	$48, %rbx
	call	qsort@PLT
	movl	24(%rsp), %ecx
	movl	16(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	20(%rsp), %xmm0
	cvtss2sd	28(%rsp), %xmm1
	call	__printf_chk@PLT
	movl	32(%rsp), %eax
	movss	36(%rsp), %xmm0
	movl	%eax, -48(%rbx)
	movl	40(%rsp), %eax
	movss	%xmm0, -44(%rbx)
	movss	44(%rsp), %xmm0
	movl	%eax, -40(%rbx)
	movl	48(%rsp), %eax
	movss	%xmm0, -36(%rbx)
	movss	52(%rsp), %xmm0
	movl	%eax, -32(%rbx)
	movl	56(%rsp), %eax
	movss	%xmm0, -28(%rbx)
	movss	60(%rsp), %xmm0
	movl	%eax, -24(%rbx)
	movl	64(%rsp), %eax
	movss	%xmm0, -20(%rbx)
	movss	68(%rsp), %xmm0
	movl	%eax, -16(%rbx)
	movl	72(%rsp), %eax
	movss	%xmm0, -12(%rbx)
	movss	76(%rsp), %xmm0
	movl	%eax, -8(%rbx)
	movss	%xmm0, -4(%rbx)
	cmpq	8(%rsp), %rbx
	jne	.L6
	movq	%r15, %rcx
	movl	$8, %edx
	movl	$18, %esi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	88(%rsp), %ecx
	movl	80(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	84(%rsp), %xmm0
	cvtss2sd	92(%rsp), %xmm1
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$248, %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
.LFE24:
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB23:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm1
	movss	4(%rsi), %xmm0
	movl	$-1, %eax
	comiss	%xmm1, %xmm0
	ja	.L1
	xorl	%eax, %eax
	ucomiss	%xmm0, %xmm1
	movl	$1, %edx
	setp	%al
	cmovne	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %f"
.LC1:
	.string	"%d %.2f\n%d %.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cmp(%rip), %r15
	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
	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	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rax
	leaq	80(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	16(%rsp), %rax
	movq	%rbp, %rbx
	movq	%rax, (%rsp)
.L6:
	movq	(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	4(%r13), %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$8, %r13
	cmpq	%r13, %rbp
	jne	.L7
	movq	(%rsp), %rdi
	movq	%r15, %rcx
	movl	$8, %edx
	xorl	%eax, %eax
	movl	$8, %esi
	addq	$48, %rbx
	call	qsort@PLT
	movl	24(%rsp), %ecx
	movl	16(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	20(%rsp), %xmm0
	cvtss2sd	28(%rsp), %xmm1
	call	__printf_chk@PLT
	movl	32(%rsp), %eax
	movss	36(%rsp), %xmm0
	movl	%eax, -48(%rbx)
	movl	40(%rsp), %eax
	movss	%xmm0, -44(%rbx)
	movss	44(%rsp), %xmm0
	movl	%eax, -40(%rbx)
	movl	48(%rsp), %eax
	movss	%xmm0, -36(%rbx)
	movss	52(%rsp), %xmm0
	movl	%eax, -32(%rbx)
	movl	56(%rsp), %eax
	movss	%xmm0, -28(%rbx)
	movss	60(%rsp), %xmm0
	movl	%eax, -24(%rbx)
	movl	64(%rsp), %eax
	movss	%xmm0, -20(%rbx)
	movss	68(%rsp), %xmm0
	movl	%eax, -16(%rbx)
	movl	72(%rsp), %eax
	movss	%xmm0, -12(%rbx)
	movss	76(%rsp), %xmm0
	movl	%eax, -8(%rbx)
	movss	%xmm0, -4(%rbx)
	cmpq	8(%rsp), %rbx
	jne	.L6
	movq	%r15, %rcx
	movl	$8, %edx
	movl	$18, %esi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	88(%rsp), %ecx
	movl	80(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	84(%rsp), %xmm0
	cvtss2sd	92(%rsp), %xmm1
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$248, %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
.LFE24:
	.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>

typedef struct {
	int id;
	float time;
} PLAYER;

int cmp(PLAYER *a, PLAYER *b)
{
	if (a->time < b->time) return (-1);
	if (a->time == b->time) return (0);
	return (1);
}

int main(void)
{
	int i, j, k = 0, n;
	PLAYER player[8];
	PLAYER rank3[18];
	
	for (i = 0; i < 3; i++){
		for (j = 0; j < 8; j++){
			scanf("%d %f", &player[j].id, &player[j].time);
		}
		
		qsort(player, 8, sizeof(PLAYER), cmp);
		
		printf("%d %.2f\n%d %.2f\n", player[0].id, player[0].time, player[1].id, player[1].time);
		
		for (j = 2; j < 8; j++){
			rank3[k].id = player[j].id;
			rank3[k++].time = player[j].time;
		}
	}
	
	qsort(rank3, 18, sizeof(PLAYER), cmp);
	
	printf("%d %.2f\n%d %.2f\n", rank3[0].id, rank3[0].time, rank3[1].id, rank3[1].time);
	
	return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

typedef struct {
	int id;
	float time;
} PLAYER;

int cmp(PLAYER *a, PLAYER *b)
{
	if (a->time < b->time) return (-1);
	if (a->time == b->time) return (0);
	return (1);
}

int main(void)
{
	int i, j, k = 0, n;
	PLAYER player[8];
	PLAYER rank3[18];
	
	for (i = 0; i < 3; i++){
		for (j = 0; j < 8; j++){
			scanf("%d %f", &player[j].id, &player[j].time);
		}
		
		qsort(player, 8, sizeof(PLAYER), cmp);
		
		printf("%d %.2f\n%d %.2f\n", player[0].id, player[0].time, player[1].id, player[1].time);
		
		for (j = 2; j < 8; j++){
			rank3[k].id = player[j].id;
			rank3[k++].time = player[j].time;
		}
	}
	
	qsort(rank3, 18, sizeof(PLAYER), cmp);
	
	printf("%d %.2f\n%d %.2f\n", rank3[0].id, rank3[0].time, rank3[1].id, rank3[1].time);
	
	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:

18 25.46
16 26.23
3 23.00
10 24.79
5 22.88
11 23.87
19 23.90
1 25.11
23 23.88
4 23.46
7 24.12
12 22.91
13 21.99
14 22.86
21 23.12
9 24.09
17 22.51
22 23.49
6 23.02
20 22.23
8 21.89
15 24.14
8 23.77
2 23.42
 18 25.46
16 26.23
3 23.00
10 24.79
5 22.88
11 23.87
19 23.90
1 25.11
23 23.88
4 23.46
7 24.12
12 22.91
13 21.99
14 23.479546478837634
21 23.12
9 24.09
17 22.51
22 23.49
6 23.02
20 22.23
8 21.89
15 24.14
8 23.77
2 23.42
 18 25.46
16 26.23
3 23.00
10 24.79
5 22.88
11 23.87
19 23.90
1 25.11
23 23.88
4 23.46
7 24.12
12 22.91
13 21.99
14 22.86
8 23.12
9 24.09
17 22.51
22 23.49
6 23.02
20 22.23
24 21.89
15 24.14
8 23.77
2 23.42
 18 25.46
16 26.23
3 23.00
10 24.79
5 22.88
11 23.87
19 23.90
1 25.11
23 23.88
4 23.46
7 24.12
12 23.88090204379987
13 21.99
14 22.86
8 23.12
9 24.09
17 22.51
22 23.49
6 23.02
20 22.23
24 21.89
15 24.14
8 23.77
2 23.42
 27 25.46
16 26.23
3 23.00
10 24.79
5 22.88
11 23.87
19 23.90
2 25.11
23 23.88
4 23.46
7 24.12
12 22.91
13 21.99
14 22.86
21 23.12
9 24.09
26 22.51
22 23.49
6 23.02
20 22.23
8 21.89
15 24.14
8 23.77
2 23.42
 18 26.1511190671642
16 26.23
3 23.00
10 24.79
5 22.88
11 23.87
19 23.90
1 25.11
23 23.88
4 23.844314504002764
7 24.12
12 23.88090204379987
13 21.99
14 22.86
8 23.12
9 24.09
17 22.51
22 23.49
6 23.02
20 22.23
8 21.89
15 24.14
8 23.77
2 23.42
 18 25.46
16 26.23
3 23.00
10 24.79
7 22.88
11 23.87
19 23.90
1 25.11
24 23.88
4 23.46
7 24.12
12 22.91
13 21.99
14 22.86
21 23.12
0 24.09
17 22.51
22 23.49
6 23.02
20 22.23
24 21.89
15 24.14
8 23.77
2 23.42
 18 25.46
16 26.23
3 23.00
10 24.79
5 22.88
14 23.87
19 23.90
1 25.11
23 23.88
4 23.46
7 24.297502254604733
12 23.88090204379987
13 21.99
14 23.678873066875145
8 23.12
9 24.09
17 22.51
22 23.49
6 23.02
20 22.23
24 21.89
15 24.14
8 23.77
2 23.42
 18 26.1511190671642
16 26.23
3 23.00
10 24.79
5 22.88
11 23.87
19 23.90
1 25.11
23 23.88
4 23.844314504002764
7 24.12
12 23.88090204379987
5 21.99
14 22.86
8 23.12
9 24.09
17 22.51
22 23.49
6 23.02
20 22.23
8 21.89
15 24.14
8 23.77
2 23.42
 18 25.46
16 26.23
3 23.00
10 24.79
5 22.88
11 23.87
19 23.90
1 25.11
23 24.38005748103999
4 24.19242299546192
7 24.126116190100998
12 22.91
13 21.99
14 23.479546478837634
21 23.12
9 24.09
17 23.500621169356034
22 23.49
6 23.02
20 22.23
8 21.89
15 24.14
8 23.77
2 23.42

5 22.88
3 23.00
13 21.99
14 22.86
8 21.89
20 22.23
17 22.51
12 22.91
 5 22.88
3 23.00
13 21.99
12 22.91
8 21.89
20 22.23
17 22.51
6 23.02
 5 22.88
3 23.00
13 21.99
14 22.86
24 21.89
20 22.23
17 22.51
12 22.91
 5 22.88
3 23.00
13 21.99
14 22.86
24 21.89
20 22.23
17 22.51
6 23.02
 5 22.88
3 23.00
13 21.99
14 22.86
8 21.89
20 22.23
26 22.51
12 22.91
 5 22.88
3 23.00
13 21.99
14 22.86
8 21.89
20 22.23
17 22.51
6 23.02
 7 22.88
3 23.00
13 21.99
14 22.86
24 21.89
20 22.23
17 22.51
12 22.91
 5 22.88
3 23.00
13 21.99
8 23.12
24 21.89
20 22.23
17 22.51
6 23.02
 5 22.88
3 23.00
5 21.99
14 22.86
8 21.89
20 22.23
17 22.51
6 23.02
 5 22.88
3 23.00
13 21.99
12 22.91
8 21.89
20 22.23
6 23.02
21 23.12

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>

typedef struct {
	int id;
	float time;
} PLAYER;

int cmp(PLAYER *a, PLAYER *b)
{
	if (a->time < b->time) return (-1);
	if (a->time == b->time) return (0);
	return (1);
}

int main(void)
{
	int i, j, k = 0, n;
	PLAYER player[8];
	PLAYER rank3[18];
	
	for (i = 0; i < 3; i++){
		for (j = 0; j < 8; j++){
			scanf("%d %f", &player[j].id, &player[j].time);
		}
		
		qsort(player, 8, sizeof(PLAYER), cmp);
		
		printf("%d %.2f\n%d %.2f\n", player[0].id, player[0].time, player[1].id, player[1].time);
		
		for (j = 2; j < 8; j++){
			rank3[k].id = player[j].id;
			rank3[k++].time = player[j].time;
		}
	}
	
	qsort(rank3, 18, sizeof(PLAYER), cmp);
	
	printf("%d %.2f\n%d %.2f\n", rank3[0].id, rank3[0].time, rank3[1].id, rank3[1].time);
	
	return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB23:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm1
	movss	4(%rsi), %xmm0
	movl	$-1, %eax
	comiss	%xmm1, %xmm0
	ja	.L1
	xorl	%eax, %eax
	ucomiss	%xmm0, %xmm1
	movl	$1, %edx
	setp	%al
	cmovne	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %f"
.LC1:
	.string	"%d %.2f\n%d %.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cmp(%rip), %r15
	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
	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	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rax
	leaq	80(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	16(%rsp), %rax
	movq	%rbp, %rbx
	movq	%rax, (%rsp)
.L6:
	movq	(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	4(%r13), %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$8, %r13
	cmpq	%r13, %rbp
	jne	.L7
	movq	(%rsp), %rdi
	movq	%r15, %rcx
	movl	$8, %edx
	xorl	%eax, %eax
	movl	$8, %esi
	addq	$48, %rbx
	call	qsort@PLT
	movl	24(%rsp), %ecx
	movl	16(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	20(%rsp), %xmm0
	cvtss2sd	28(%rsp), %xmm1
	call	__printf_chk@PLT
	movl	32(%rsp), %eax
	movss	36(%rsp), %xmm0
	movl	%eax, -48(%rbx)
	movl	40(%rsp), %eax
	movss	%xmm0, -44(%rbx)
	movss	44(%rsp), %xmm0
	movl	%eax, -40(%rbx)
	movl	48(%rsp), %eax
	movss	%xmm0, -36(%rbx)
	movss	52(%rsp), %xmm0
	movl	%eax, -32(%rbx)
	movl	56(%rsp), %eax
	movss	%xmm0, -28(%rbx)
	movss	60(%rsp), %xmm0
	movl	%eax, -24(%rbx)
	movl	64(%rsp), %eax
	movss	%xmm0, -20(%rbx)
	movss	68(%rsp), %xmm0
	movl	%eax, -16(%rbx)
	movl	72(%rsp), %eax
	movss	%xmm0, -12(%rbx)
	movss	76(%rsp), %xmm0
	movl	%eax, -8(%rbx)
	movss	%xmm0, -4(%rbx)
	cmpq	8(%rsp), %rbx
	jne	.L6
	movq	%r15, %rcx
	movl	$8, %edx
	movl	$18, %esi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	88(%rsp), %ecx
	movl	80(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	84(%rsp), %xmm0
	cvtss2sd	92(%rsp), %xmm1
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$248, %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
.LFE24:
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB23:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm1
	movss	4(%rsi), %xmm0
	movl	$-1, %eax
	comiss	%xmm1, %xmm0
	ja	.L1
	xorl	%eax, %eax
	ucomiss	%xmm0, %xmm1
	movl	$1, %edx
	setp	%al
	cmovne	%edx, %eax
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %f"
.LC1:
	.string	"%d %.2f\n%d %.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cmp(%rip), %r15
	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
	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	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	224(%rsp), %rax
	leaq	80(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	16(%rsp), %rax
	movq	%rbp, %rbx
	movq	%rax, (%rsp)
.L6:
	movq	(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	4(%r13), %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$8, %r13
	cmpq	%r13, %rbp
	jne	.L7
	movq	(%rsp), %rdi
	movq	%r15, %rcx
	movl	$8, %edx
	xorl	%eax, %eax
	movl	$8, %esi
	addq	$48, %rbx
	call	qsort@PLT
	movl	24(%rsp), %ecx
	movl	16(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	20(%rsp), %xmm0
	cvtss2sd	28(%rsp), %xmm1
	call	__printf_chk@PLT
	movl	32(%rsp), %eax
	movss	36(%rsp), %xmm0
	movl	%eax, -48(%rbx)
	movl	40(%rsp), %eax
	movss	%xmm0, -44(%rbx)
	movss	44(%rsp), %xmm0
	movl	%eax, -40(%rbx)
	movl	48(%rsp), %eax
	movss	%xmm0, -36(%rbx)
	movss	52(%rsp), %xmm0
	movl	%eax, -32(%rbx)
	movl	56(%rsp), %eax
	movss	%xmm0, -28(%rbx)
	movss	60(%rsp), %xmm0
	movl	%eax, -24(%rbx)
	movl	64(%rsp), %eax
	movss	%xmm0, -20(%rbx)
	movss	68(%rsp), %xmm0
	movl	%eax, -16(%rbx)
	movl	72(%rsp), %eax
	movss	%xmm0, -12(%rbx)
	movss	76(%rsp), %xmm0
	movl	%eax, -8(%rbx)
	movss	%xmm0, -4(%rbx)
	cmpq	8(%rsp), %rbx
	jne	.L6
	movq	%r15, %rcx
	movl	$8, %edx
	movl	$18, %esi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	88(%rsp), %ecx
	movl	80(%rsp), %edx
	movq	%r14, %rsi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$2, %eax
	cvtss2sd	84(%rsp), %xmm0
	cvtss2sd	92(%rsp), %xmm1
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$248, %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
.LFE24:
	.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:
```