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>

typedef struct{
	int no;
	int score;
} Info;

void sortInfo(int n,Info t[]){
	int i,j;
	for(i=0;i<n-1;i++){
		for(j=i+1;j<n;j++){
			if(t[i].score < t[j].score ||
			   t[i].score == t[j].score && t[i].no > t[j].no){
				Info tmp = t[i];
				t[i] = t[j];
				t[j] = tmp;
			}
		}
	}
}

int scoring(void){
	int i, x, total, frame, time, sum, flgSpare, flgStrike;
	
	total = sum = 0;
	frame = time = 1;
	flgSpare = flgStrike = 0;
	
	while(frame < 10){
		scanf("%d",&x);
		sum += x;
		
		if(flgSpare){
			total += x;
			flgSpare = 0;
		}
		else if(flgStrike){
			if(flgStrike == 3){
				total += x;
				flgStrike--;
			}
			total += x;
			flgStrike--;
		}
		
		if(time == 2){
			total += sum;
			if(sum == 10){
				flgSpare = 1;
			}
			sum = 0;
			time = 1;
			frame++;
		}
		else if(time == 1){
			time++;
			if(x == 10){
				total += 10;
				flgStrike += 2;
				sum = 0;
				time = 1;
				frame++;
			}
		}
	}
	
	for(i=0;i<3;i++){
		if(i == 2 && sum < 10) break;
		
		scanf("%d",&x);
		total += x;
		sum += x;
		
		if(flgSpare){
			total += x;
			flgSpare = 0;
		}
		else if(flgStrike){
			if(flgStrike == 3){
				total += x;
				flgStrike--;
			}
			total += x;
			flgStrike--;
		}
	}

	return total;
}

int main(void){
	int i, n;
	Info info[40];
	
	while(scanf("%d",&n) && n){
		for(i=0;i<n;i++){
			scanf("%d",&info[i].no);
			info[i].score = scoring();
		}
		sortInfo(n,info);
		for(i=0;i<n;i++){
			printf("%d %d\n",info[i].no,info[i].score);
		}
	}
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sortInfo
	.type	sortInfo, @function
sortInfo:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L2
.L7:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L3
.L6:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L5
.L4:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rdx)
.L5:
	addl	$1, -12(%rbp)
.L3:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L6
	addl	$1, -16(%rbp)
.L2:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -16(%rbp)
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sortInfo, .-sortInfo
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	scoring
	.type	scoring, @function
scoring:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -20(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L15:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, -20(%rbp)
	cmpl	$0, -16(%rbp)
	je	.L10
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L11
.L10:
	cmpl	$0, -12(%rbp)
	je	.L11
	cmpl	$3, -12(%rbp)
	jne	.L12
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L12:
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L11:
	cmpl	$2, -24(%rbp)
	jne	.L13
	movl	-20(%rbp), %eax
	addl	%eax, -32(%rbp)
	cmpl	$10, -20(%rbp)
	jne	.L14
	movl	$1, -16(%rbp)
.L14:
	movl	$0, -20(%rbp)
	movl	$1, -24(%rbp)
	addl	$1, -28(%rbp)
	jmp	.L9
.L13:
	cmpl	$1, -24(%rbp)
	jne	.L9
	addl	$1, -24(%rbp)
	movl	-40(%rbp), %eax
	cmpl	$10, %eax
	jne	.L9
	addl	$10, -32(%rbp)
	addl	$2, -12(%rbp)
	movl	$0, -20(%rbp)
	movl	$1, -24(%rbp)
	addl	$1, -28(%rbp)
.L9:
	cmpl	$9, -28(%rbp)
	jle	.L15
	movl	$0, -36(%rbp)
	jmp	.L16
.L22:
	cmpl	$2, -36(%rbp)
	jne	.L17
	cmpl	$9, -20(%rbp)
	jle	.L25
.L17:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -20(%rbp)
	cmpl	$0, -16(%rbp)
	je	.L19
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L20
.L19:
	cmpl	$0, -12(%rbp)
	je	.L20
	cmpl	$3, -12(%rbp)
	jne	.L21
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L21:
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L20:
	addl	$1, -36(%rbp)
.L16:
	cmpl	$2, -36(%rbp)
	jle	.L22
	jmp	.L18
.L25:
	nop
.L18:
	movl	-32(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	scoring, .-scoring
	.section	.rodata
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$352, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L27
.L33:
	movl	$0, -340(%rbp)
	jmp	.L28
.L29:
	leaq	-336(%rbp), %rdx
	movl	-340(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	scoring
	movl	-340(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -332(%rbp,%rdx,8)
	addl	$1, -340(%rbp)
.L28:
	movl	-344(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L29
	movl	-344(%rbp), %eax
	leaq	-336(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	sortInfo
	movl	$0, -340(%rbp)
	jmp	.L30
.L31:
	movl	-340(%rbp), %eax
	cltq
	movl	-332(%rbp,%rax,8), %edx
	movl	-340(%rbp), %eax
	cltq
	movl	-336(%rbp,%rax,8), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -340(%rbp)
.L30:
	movl	-344(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L31
.L27:
	leaq	-344(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L32
	movl	-344(%rbp), %eax
	testl	%eax, %eax
	jne	.L33
.L32:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.p2align 4
	.globl	sortInfo
	.type	sortInfo, @function
sortInfo:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	$1, %edi
	jle	.L14
	leal	-2(%rdi), %r11d
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%edi, %r10d
	movl	$1, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	addq	$2, %r11
	leal	-1(%rdi), %ebp
	leaq	8(%rsi), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%r9d, %r10d
	jle	.L10
	movl	%ebp, %eax
	subl	%r9d, %eax
	leaq	-1(%r9,%rax), %rax
	leaq	(%rbx,%rax,8), %r8
	movq	%rsi, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	movl	(%rsi), %edx
.L7:
	movq	8(%rax), %rdi
	movd	%edx, %xmm0
	movd	%ecx, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%rdi, (%rsi)
	movq	%xmm0, 8(%rax)
.L8:
	addq	$8, %rax
	cmpq	%r8, %rax
	je	.L10
.L9:
	movl	4(%rsi), %ecx
	cmpl	12(%rax), %ecx
	jl	.L19
	jne	.L8
	movl	(%rsi), %edx
	cmpl	8(%rax), %edx
	jg	.L7
	addq	$8, %rax
	cmpq	%r8, %rax
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %r9
	addq	$8, %rsi
	cmpq	%r11, %r9
	jne	.L4
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE23:
	.size	sortInfo, .-sortInfo
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	scoring
	.type	scoring, @function
scoring:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %r14
	movl	$0, 12(%rsp)
	movl	$1, 8(%rsp)
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L35:
	movl	$1, 8(%rsp)
	addl	%r12d, %r13d
	xorl	%ebx, %ebx
	cmpl	$10, %r12d
	sete	%bl
	addl	$1, %ebp
	xorl	%r12d, %r12d
.L25:
	cmpl	$10, %ebp
	je	.L51
.L26:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	addl	%eax, %r12d
	testl	%ebx, %ebx
	jne	.L24
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L22
	cmpl	$3, %ecx
	je	.L52
	subl	$1, 12(%rsp)
.L24:
	addl	%eax, %r13d
.L22:
	cmpl	$2, 8(%rsp)
	je	.L35
	movl	$2, 8(%rsp)
	xorl	%ebx, %ebx
	cmpl	$10, %eax
	jne	.L25
	addl	$1, %ebp
	addl	$2, 12(%rsp)
	addl	$10, %r13d
	xorl	%r12d, %r12d
	movl	$1, 8(%rsp)
	cmpl	$10, %ebp
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L51:
	xorl	%ebp, %ebp
.L27:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	addl	%eax, %r13d
	testl	%ebx, %ebx
	jne	.L33
	movl	12(%rsp), %edi
	testl	%edi, %edi
	je	.L31
	cmpl	$3, %edi
	je	.L53
	subl	$1, 12(%rsp)
.L33:
	addl	%eax, %r13d
.L31:
	addl	$1, %ebp
	cmpl	$3, %ebp
	je	.L20
	addl	%eax, %r12d
	xorl	%ebx, %ebx
	cmpl	$2, %ebp
	jne	.L27
	cmpl	$9, %r12d
	jg	.L27
	.p2align 4,,10
	.p2align 3
.L20:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r13d, %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
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	movl	$1, 12(%rsp)
	addl	%eax, %r13d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L53:
	addl	%eax, %r13d
	movl	$1, 12(%rsp)
	addl	%eax, %r13d
	jmp	.L31
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	scoring, .-scoring
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$376, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 360(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	leaq	28(%rsp), %r14
	movq	%rax, 8(%rsp)
	leaq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L56:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L69
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L69
	movq	8(%rsp), %r15
	movl	$0, %r13d
	jle	.L56
	.p2align 4,,10
	.p2align 3
.L57:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	addq	$8, %r15
	call	scoring
	movl	28(%rsp), %r9d
	movl	%eax, -4(%r15)
	cmpl	%r13d, %r9d
	jg	.L57
	leal	-1(%r9), %r11d
	testl	%r11d, %r11d
	jle	.L58
	movq	8(%rsp), %rdx
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L60:
	addl	$1, %r8d
	cmpl	%r8d, %r9d
	jle	.L65
	movl	%r11d, %eax
	subl	%r8d, %eax
	addq	%r10, %rax
	leaq	(%r12,%rax,8), %rdi
	movq	%rdx, %rax
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L86:
	movl	(%rdx), %ecx
.L62:
	movq	8(%rax), %r15
	movd	%ecx, %xmm0
	movd	%esi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%r15, (%rdx)
	movq	%xmm0, 8(%rax)
.L63:
	addq	$8, %rax
	cmpq	%rdi, %rax
	je	.L65
.L64:
	movl	4(%rdx), %esi
	cmpl	12(%rax), %esi
	jl	.L86
	jne	.L63
	movl	(%rdx), %ecx
	cmpl	8(%rax), %ecx
	jg	.L62
	addq	$8, %rax
	cmpq	%rdi, %rax
	jne	.L64
	.p2align 4,,10
	.p2align 3
.L65:
	addq	$1, %r10
	addq	$8, %rdx
	cmpl	%r11d, %r8d
	jl	.L60
.L58:
	leaq	36(%rsp), %r15
	xorl	%r13d, %r13d
	testl	%r9d, %r9d
	jle	.L56
	.p2align 4,,10
	.p2align 3
.L67:
	movl	-4(%r15), %edx
	movl	(%r15), %ecx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r13d
	addq	$8, %r15
	call	__printf_chk@PLT
	cmpl	%r13d, 28(%rsp)
	jg	.L67
	jmp	.L56
.L69:
	movq	360(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L87
	addq	$376, %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
.L87:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sortInfo
	.type	sortInfo, @function
sortInfo:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	$1, %edi
	jle	.L14
	leal	-2(%rdi), %r11d
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%edi, %r10d
	movl	$1, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	addq	$2, %r11
	leal	-1(%rdi), %ebp
	leaq	8(%rsi), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%r9d, %r10d
	jle	.L10
	movl	%ebp, %eax
	subl	%r9d, %eax
	leaq	-1(%r9,%rax), %rax
	leaq	(%rbx,%rax,8), %r8
	movq	%rsi, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	movl	(%rsi), %edx
.L7:
	movq	8(%rax), %rdi
	movd	%edx, %xmm0
	movd	%ecx, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%rdi, (%rsi)
	movq	%xmm0, 8(%rax)
.L8:
	addq	$8, %rax
	cmpq	%r8, %rax
	je	.L10
.L9:
	movl	4(%rsi), %ecx
	cmpl	12(%rax), %ecx
	jl	.L19
	jne	.L8
	movl	(%rsi), %edx
	cmpl	8(%rax), %edx
	jg	.L7
	addq	$8, %rax
	cmpq	%r8, %rax
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %r9
	addq	$8, %rsi
	cmpq	%r11, %r9
	jne	.L4
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE23:
	.size	sortInfo, .-sortInfo
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	scoring
	.type	scoring, @function
scoring:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %r14
	movl	$0, 12(%rsp)
	movl	$1, 8(%rsp)
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L35:
	movl	$1, 8(%rsp)
	addl	%r12d, %r13d
	xorl	%ebx, %ebx
	cmpl	$10, %r12d
	sete	%bl
	addl	$1, %ebp
	xorl	%r12d, %r12d
.L25:
	cmpl	$10, %ebp
	je	.L51
.L26:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	addl	%eax, %r12d
	testl	%ebx, %ebx
	jne	.L24
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L22
	cmpl	$3, %ecx
	je	.L52
	subl	$1, 12(%rsp)
.L24:
	addl	%eax, %r13d
.L22:
	cmpl	$2, 8(%rsp)
	je	.L35
	movl	$2, 8(%rsp)
	xorl	%ebx, %ebx
	cmpl	$10, %eax
	jne	.L25
	addl	$1, %ebp
	addl	$2, 12(%rsp)
	addl	$10, %r13d
	xorl	%r12d, %r12d
	movl	$1, 8(%rsp)
	cmpl	$10, %ebp
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L51:
	xorl	%ebp, %ebp
.L27:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	addl	%eax, %r13d
	testl	%ebx, %ebx
	jne	.L33
	movl	12(%rsp), %edi
	testl	%edi, %edi
	je	.L31
	cmpl	$3, %edi
	je	.L53
	subl	$1, 12(%rsp)
.L33:
	addl	%eax, %r13d
.L31:
	addl	$1, %ebp
	cmpl	$3, %ebp
	je	.L20
	addl	%eax, %r12d
	xorl	%ebx, %ebx
	cmpl	$2, %ebp
	jne	.L27
	cmpl	$9, %r12d
	jg	.L27
	.p2align 4,,10
	.p2align 3
.L20:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r13d, %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
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	movl	$1, 12(%rsp)
	addl	%eax, %r13d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L53:
	addl	%eax, %r13d
	movl	$1, 12(%rsp)
	addl	%eax, %r13d
	jmp	.L31
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	scoring, .-scoring
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$376, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 360(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	leaq	28(%rsp), %r14
	movq	%rax, 8(%rsp)
	leaq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L56:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L69
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L69
	movq	8(%rsp), %r15
	movl	$0, %r13d
	jle	.L56
	.p2align 4,,10
	.p2align 3
.L57:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	addq	$8, %r15
	call	scoring
	movl	28(%rsp), %r9d
	movl	%eax, -4(%r15)
	cmpl	%r13d, %r9d
	jg	.L57
	leal	-1(%r9), %r11d
	testl	%r11d, %r11d
	jle	.L58
	movq	8(%rsp), %rdx
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L60:
	addl	$1, %r8d
	cmpl	%r8d, %r9d
	jle	.L65
	movl	%r11d, %eax
	subl	%r8d, %eax
	addq	%r10, %rax
	leaq	(%r12,%rax,8), %rdi
	movq	%rdx, %rax
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L86:
	movl	(%rdx), %ecx
.L62:
	movq	8(%rax), %r15
	movd	%ecx, %xmm0
	movd	%esi, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%r15, (%rdx)
	movq	%xmm0, 8(%rax)
.L63:
	addq	$8, %rax
	cmpq	%rdi, %rax
	je	.L65
.L64:
	movl	4(%rdx), %esi
	cmpl	12(%rax), %esi
	jl	.L86
	jne	.L63
	movl	(%rdx), %ecx
	cmpl	8(%rax), %ecx
	jg	.L62
	addq	$8, %rax
	cmpq	%rdi, %rax
	jne	.L64
	.p2align 4,,10
	.p2align 3
.L65:
	addq	$1, %r10
	addq	$8, %rdx
	cmpl	%r11d, %r8d
	jl	.L60
.L58:
	leaq	36(%rsp), %r15
	xorl	%r13d, %r13d
	testl	%r9d, %r9d
	jle	.L56
	.p2align 4,,10
	.p2align 3
.L67:
	movl	-4(%r15), %edx
	movl	(%r15), %ecx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r13d
	addq	$8, %r15
	call	__printf_chk@PLT
	cmpl	%r13d, 28(%rsp)
	jg	.L67
	jmp	.L56
.L69:
	movq	360(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L87
	addq	$376, %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
.L87:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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:

#include <stdio.h>

typedef struct{
	int no;
	int score;
} Info;

void sortInfo(int n,Info t[]){
	int i,j;
	for(i=0;i<n-1;i++){
		for(j=i+1;j<n;j++){
			if(t[i].score < t[j].score ||
			   t[i].score == t[j].score && t[i].no > t[j].no){
				Info tmp = t[i];
				t[i] = t[j];
				t[j] = tmp;
			}
		}
	}
}

int scoring(void){
	int i, x, total, frame, time, sum, flgSpare, flgStrike;
	
	total = sum = 0;
	frame = time = 1;
	flgSpare = flgStrike = 0;
	
	while(frame < 10){
		scanf("%d",&x);
		sum += x;
		
		if(flgSpare){
			total += x;
			flgSpare = 0;
		}
		else if(flgStrike){
			if(flgStrike == 3){
				total += x;
				flgStrike--;
			}
			total += x;
			flgStrike--;
		}
		
		if(time == 2){
			total += sum;
			if(sum == 10){
				flgSpare = 1;
			}
			sum = 0;
			time = 1;
			frame++;
		}
		else if(time == 1){
			time++;
			if(x == 10){
				total += 10;
				flgStrike += 2;
				sum = 0;
				time = 1;
				frame++;
			}
		}
	}
	
	for(i=0;i<3;i++){
		if(i == 2 && sum < 10) break;
		
		scanf("%d",&x);
		total += x;
		sum += x;
		
		if(flgSpare){
			total += x;
			flgSpare = 0;
		}
		else if(flgStrike){
			if(flgStrike == 3){
				total += x;
				flgStrike--;
			}
			total += x;
			flgStrike--;
		}
	}

	return total;
}

int main(void){
	int i, n;
	Info info[40];
	
	while(scanf("%d",&n) && n){
		for(i=0;i<n;i++){
			scanf("%d",&info[i].no);
			info[i].score = scoring();
		}
		sortInfo(n,info);
		for(i=0;i<n;i++){
			printf("%d %d\n",info[i].no,info[i].score);
		}
	}
	
	return 0;
}
3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 9 1 9 0
1200 5 3 9 1 7 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 0 4 8 2 8 2 9 1 7 3 6 4 8 2 9 1 7
0
 3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 9 1 9 0
1200 5 3 9 1 7 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 6 4 8 2 8 2 9 0 7 3 6 4 8 2 9 1 7
0
 3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 9 1 9 0
1200 5 3 9 1 12 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 0 4 8 2 8 2 9 1 7 3 6 4 8 2 9 1 7
0
 3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 9 1 9 0
1200 5 3 9 1 7 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 6 4 8 2 8 2 9 0 7 3 6 4 11 2 9 1 7
0
 3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 9 1 9 0
1200 5 3 9 1 12 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 0 4 8 2 8 2 9 1 7 3 5 4 8 2 9 1 7
0
 3
1010 5 3 10 7 1 0 7 9 1 10 6 2 4 3 9 1 9 0
1200 5 3 9 1 7 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 6 4 8 2 8 2 9 0 7 3 6 4 11 2 9 1 7
0
 3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 9 1 9 0
1200 5 3 9 1 9 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 6 4 8 2 8 2 9 1 7 3 6 4 8 2 9 1 7
0
 3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 16 1 9 0
1200 5 3 9 1 7 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 0 4 8 2 8 2 9 1 7 3 6 4 8 2 9 1 7
0
 3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 9 1 9 0
1200 5 3 9 1 7 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 2 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 6 4 8 2 8 2 9 0 7 3 6 4 8 2 9 1 7
0
 3
1010 6 3 10 7 1 0 7 9 1 10 6 2 4 3 9 2 9 0
1200 5 3 9 1 9 1 0 0 8 1 10 10 4 3 9 1 8 2 9
1101 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4
3321 8 2 10 9 1 7 0 10 10 10 0 8 10 10 10 10
3332 5 0 10 9 1 4 1 9 0 10 10 7 1 5 2 8 1
3335 10 10 10 10 10 10 10 10 10 10 10 10
3340 8 2 7 3 6 4 8 2 8 2 9 1 7 3 6 4 8 2 9 1 7
0

1200 127
1010 123
1101 60
3335 300
3321 200
3340 155
3332 122
 1200 127
1010 123
1101 60
3335 300
3321 200
3340 167
3332 122
 1200 137
1010 123
1101 60
3335 300
3321 200
3340 155
3332 122
 1200 127
1010 123
1101 60
3335 300
3321 200
3340 164
3332 122
 1200 137
1010 123
1101 60
3335 300
3321 200
3340 145
3332 122
 1200 127
1010 122
1101 60
3335 300
3321 200
3340 164
3332 122
 1200 131
1010 123
1101 60
3335 300
3321 200
3340 175
3332 122
 1200 127
1010 121
1101 60
3335 300
3321 200
3340 155
3332 122
 1200 127
1010 123
1101 59
3335 300
3321 200
3340 167
3332 122
 1200 131
1010 115
1101 60
3335 300
3321 200
3340 175
3332 122

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>

typedef struct{
	int no;
	int score;
} Info;

void sortInfo(int n,Info t[]){
	int i,j;
	for(i=0;i<n-1;i++){
		for(j=i+1;j<n;j++){
			if(t[i].score < t[j].score ||
			   t[i].score == t[j].score && t[i].no > t[j].no){
				Info tmp = t[i];
				t[i] = t[j];
				t[j] = tmp;
			}
		}
	}
}

int scoring(void){
	int i, x, total, frame, time, sum, flgSpare, flgStrike;
	
	total = sum = 0;
	frame = time = 1;
	flgSpare = flgStrike = 0;
	
	while(frame < 10){
		scanf("%d",&x);
		sum += x;
		
		if(flgSpare){
			total += x;
			flgSpare = 0;
		}
		else if(flgStrike){
			if(flgStrike == 3){
				total += x;
				flgStrike--;
			}
			total += x;
			flgStrike--;
		}
		
		if(time == 2){
			total += sum;
			if(sum == 10){
				flgSpare = 1;
			}
			sum = 0;
			time = 1;
			frame++;
		}
		else if(time == 1){
			time++;
			if(x == 10){
				total += 10;
				flgStrike += 2;
				sum = 0;
				time = 1;
				frame++;
			}
		}
	}
	
	for(i=0;i<3;i++){
		if(i == 2 && sum < 10) break;
		
		scanf("%d",&x);
		total += x;
		sum += x;
		
		if(flgSpare){
			total += x;
			flgSpare = 0;
		}
		else if(flgStrike){
			if(flgStrike == 3){
				total += x;
				flgStrike--;
			}
			total += x;
			flgStrike--;
		}
	}

	return total;
}

int main(void){
	int i, n;
	Info info[40];
	
	while(scanf("%d",&n) && n){
		for(i=0;i<n;i++){
			scanf("%d",&info[i].no);
			info[i].score = scoring();
		}
		sortInfo(n,info);
		for(i=0;i<n;i++){
			printf("%d %d\n",info[i].no,info[i].score);
		}
	}
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sortInfo
	.type	sortInfo, @function
sortInfo:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L2
.L7:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L3
.L6:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L5
.L4:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rdx)
.L5:
	addl	$1, -12(%rbp)
.L3:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L6
	addl	$1, -16(%rbp)
.L2:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -16(%rbp)
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sortInfo, .-sortInfo
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	scoring
	.type	scoring, @function
scoring:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -20(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L15:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, -20(%rbp)
	cmpl	$0, -16(%rbp)
	je	.L10
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L11
.L10:
	cmpl	$0, -12(%rbp)
	je	.L11
	cmpl	$3, -12(%rbp)
	jne	.L12
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L12:
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L11:
	cmpl	$2, -24(%rbp)
	jne	.L13
	movl	-20(%rbp), %eax
	addl	%eax, -32(%rbp)
	cmpl	$10, -20(%rbp)
	jne	.L14
	movl	$1, -16(%rbp)
.L14:
	movl	$0, -20(%rbp)
	movl	$1, -24(%rbp)
	addl	$1, -28(%rbp)
	jmp	.L9
.L13:
	cmpl	$1, -24(%rbp)
	jne	.L9
	addl	$1, -24(%rbp)
	movl	-40(%rbp), %eax
	cmpl	$10, %eax
	jne	.L9
	addl	$10, -32(%rbp)
	addl	$2, -12(%rbp)
	movl	$0, -20(%rbp)
	movl	$1, -24(%rbp)
	addl	$1, -28(%rbp)
.L9:
	cmpl	$9, -28(%rbp)
	jle	.L15
	movl	$0, -36(%rbp)
	jmp	.L16
.L22:
	cmpl	$2, -36(%rbp)
	jne	.L17
	cmpl	$9, -20(%rbp)
	jle	.L25
.L17:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -20(%rbp)
	cmpl	$0, -16(%rbp)
	je	.L19
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L20
.L19:
	cmpl	$0, -12(%rbp)
	je	.L20
	cmpl	$3, -12(%rbp)
	jne	.L21
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L21:
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L20:
	addl	$1, -36(%rbp)
.L16:
	cmpl	$2, -36(%rbp)
	jle	.L22
	jmp	.L18
.L25:
	nop
.L18:
	movl	-32(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	scoring, .-scoring
	.section	.rodata
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$352, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L27
.L33:
	movl	$0, -340(%rbp)
	jmp	.L28
.L29:
	leaq	-336(%rbp), %rdx
	movl	-340(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	scoring
	movl	-340(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -332(%rbp,%rdx,8)
	addl	$1, -340(%rbp)
.L28:
	movl	-344(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L29
	movl	-344(%rbp), %eax
	leaq	-336(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	sortInfo
	movl	$0, -340(%rbp)
	jmp	.L30
.L31:
	movl	-340(%rbp), %eax
	cltq
	movl	-332(%rbp,%rax,8), %edx
	movl	-340(%rbp), %eax
	cltq
	movl	-336(%rbp,%rax,8), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -340(%rbp)
.L30:
	movl	-344(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L31
.L27:
	leaq	-344(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L32
	movl	-344(%rbp), %eax
	testl	%eax, %eax
	jne	.L33
.L32:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.globl	sortInfo
	.type	sortInfo, @function
sortInfo:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L2
.L7:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L3
.L6:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	4(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L5
.L4:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rax, (%rdx)
.L5:
	addl	$1, -12(%rbp)
.L3:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L6
	addl	$1, -16(%rbp)
.L2:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -16(%rbp)
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sortInfo, .-sortInfo
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	scoring
	.type	scoring, @function
scoring:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -20(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -12(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L15:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, -20(%rbp)
	cmpl	$0, -16(%rbp)
	je	.L10
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L11
.L10:
	cmpl	$0, -12(%rbp)
	je	.L11
	cmpl	$3, -12(%rbp)
	jne	.L12
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L12:
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L11:
	cmpl	$2, -24(%rbp)
	jne	.L13
	movl	-20(%rbp), %eax
	addl	%eax, -32(%rbp)
	cmpl	$10, -20(%rbp)
	jne	.L14
	movl	$1, -16(%rbp)
.L14:
	movl	$0, -20(%rbp)
	movl	$1, -24(%rbp)
	addl	$1, -28(%rbp)
	jmp	.L9
.L13:
	cmpl	$1, -24(%rbp)
	jne	.L9
	addl	$1, -24(%rbp)
	movl	-40(%rbp), %eax
	cmpl	$10, %eax
	jne	.L9
	addl	$10, -32(%rbp)
	addl	$2, -12(%rbp)
	movl	$0, -20(%rbp)
	movl	$1, -24(%rbp)
	addl	$1, -28(%rbp)
.L9:
	cmpl	$9, -28(%rbp)
	jle	.L15
	movl	$0, -36(%rbp)
	jmp	.L16
.L22:
	cmpl	$2, -36(%rbp)
	jne	.L17
	cmpl	$9, -20(%rbp)
	jle	.L25
.L17:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	-40(%rbp), %eax
	addl	%eax, -20(%rbp)
	cmpl	$0, -16(%rbp)
	je	.L19
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L20
.L19:
	cmpl	$0, -12(%rbp)
	je	.L20
	cmpl	$3, -12(%rbp)
	jne	.L21
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L21:
	movl	-40(%rbp), %eax
	addl	%eax, -32(%rbp)
	subl	$1, -12(%rbp)
.L20:
	addl	$1, -36(%rbp)
.L16:
	cmpl	$2, -36(%rbp)
	jle	.L22
	jmp	.L18
.L25:
	nop
.L18:
	movl	-32(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	scoring, .-scoring
	.section	.rodata
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$352, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L27
.L33:
	movl	$0, -340(%rbp)
	jmp	.L28
.L29:
	leaq	-336(%rbp), %rdx
	movl	-340(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	scoring
	movl	-340(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -332(%rbp,%rdx,8)
	addl	$1, -340(%rbp)
.L28:
	movl	-344(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L29
	movl	-344(%rbp), %eax
	leaq	-336(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	sortInfo
	movl	$0, -340(%rbp)
	jmp	.L30
.L31:
	movl	-340(%rbp), %eax
	cltq
	movl	-332(%rbp,%rax,8), %edx
	movl	-340(%rbp), %eax
	cltq
	movl	-336(%rbp,%rax,8), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -340(%rbp)
.L30:
	movl	-344(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L31
.L27:
	leaq	-344(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L32
	movl	-344(%rbp), %eax
	testl	%eax, %eax
	jne	.L33
.L32:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
