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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

typedef struct _contry {
	char str[21];
	int point;
} contry_t;

contry_t c[10];

void insertionsort( int n )
{
	int i, j, v;
	char str[21];
	for ( i = 1 ; i < n ; i++ ) {
		v = c[i].point;
		strcpy( str, c[i].str );
		j = i-1;
		while ( j >= 0 && c[j].point < v ) {
			c[j+1].point = c[j].point;
			strcpy( c[j+1].str, c[j].str );
			j--;
		}
		c[j+1].point = v;
		strcpy( c[j+1].str, str );
	}
}

int main()
{
	int n, win, lose, draw, j, flg = 1;
	char str[30], *p;
	//contry_t c[10];

	while ( scanf( "%d", &n ) == 1 ) {
		if ( n == 0 ) { break; }
		if ( flg == 1 ) {
			flg = 0;
		} else {
			printf( "\n" );
		}

		for ( int i = 0 ; i < n ; i++ ) {
			scanf( "%s %d %d %d", str, &win, &lose, &draw );
			// printf( "%s %d %d %d\n", str, win, lose, draw );
			strcpy( c[i].str, str );
			c[i].point = 3 * win + 0 * lose + 1 * draw;
		}

		insertionsort( n );
		for ( int i = 0 ; i < n ; i++ ) {
			printf( "%s,%d\n", c[i].str, c[i].point );
		}

	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 280
c:
	.zero	280
	.text
	.globl	insertionsort
	.type	insertionsort, @function
insertionsort:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -44(%rbp)
	jmp	.L2
.L6:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L3
.L5:
	movl	-40(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	24+c(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	subl	$1, -40(%rbp)
.L3:
	cmpl	$0, -40(%rbp)
	js	.L4
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jg	.L5
.L4:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	24+c(%rip), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jl	.L6
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insertionsort, .-insertionsort
	.section	.rodata
.LC0:
	.string	"%s %d %d %d"
.LC1:
	.string	"%s,%d\n"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -60(%rbp)
	jmp	.L9
.L18:
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	je	.L21
	cmpl	$1, -60(%rbp)
	jne	.L12
	movl	$0, -60(%rbp)
	jmp	.L13
.L12:
	movl	$10, %edi
	call	putchar@PLT
.L13:
	movl	$0, -56(%rbp)
	jmp	.L14
.L15:
	leaq	-64(%rbp), %rsi
	leaq	-68(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	-72(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-64(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -56(%rbp)
.L14:
	movl	-76(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L15
	movl	-76(%rbp), %eax
	movl	%eax, %edi
	call	insertionsort
	movl	$0, -52(%rbp)
	jmp	.L16
.L17:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rcx
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -52(%rbp)
.L16:
	movl	-76(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L17
.L9:
	leaq	-76(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
	jmp	.L11
.L21:
	nop
.L11:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	insertionsort
	.type	insertionsort, @function
insertionsort:
.LFB53:
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%edi, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	cmpl	$1, %edi
	jle	.L1
	leaq	28+c(%rip), %r12
	movl	$1, %r13d
	leaq	16(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$21, %edx
	movq	%r12, %rsi
	movq	%r14, %rdi
	movl	24(%r12), %ebx
	call	__stpcpy_chk@PLT
	movq	%r12, %rbp
	movl	%r13d, %ecx
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movl	-4(%rbp), %eax
	movq	%rbp, %rdi
	movl	%ecx, %r15d
	cmpl	%ebx, %eax
	jge	.L4
	movl	%eax, 24(%rbp)
	leaq	-28(%rdi), %rbp
	movl	$21, %edx
	movq	%rbp, %rsi
	call	__strcpy_chk@PLT
	movl	%r15d, %ecx
	subl	$1, %ecx
	jne	.L3
	leaq	c(%rip), %rdi
	xorl	%r15d, %r15d
.L4:
	movslq	%r15d, %rcx
	movq	(%rsp), %rbp
	addl	$1, %r13d
	addq	$28, %r12
	leaq	0(,%rcx,8), %rax
	leaq	c(%rip), %rsi
	subq	%rcx, %rax
	subq	%r14, %rbp
	movl	$21, %ecx
	movl	%ebx, 24(%rsi,%rax,4)
	leaq	1(%rbp), %rdx
	movq	%r14, %rsi
	call	__memcpy_chk@PLT
	cmpl	%r13d, 12(%rsp)
	jne	.L6
.L1:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	insertionsort, .-insertionsort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %d %d %d"
.LC1:
	.string	"%s,%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	$1, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L16:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L17
	movl	16(%rsp), %edi
	testl	%edi, %edi
	je	.L17
	cmpl	$1, %ebx
	je	.L18
	movl	$10, %edi
	call	putchar@PLT
	movl	16(%rsp), %edi
.L18:
	testl	%edi, %edi
	jle	.L19
	leaq	c(%rip), %rbx
	xorl	%r12d, %r12d
	leaq	20(%rsp), %r13
	leaq	32(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	movl	$21, %edx
	movq	%rbp, %rsi
	call	__strcpy_chk@PLT
	movl	20(%rsp), %eax
	movl	16(%rsp), %edi
	addq	$28, %rbx
	leal	(%rax,%rax,2), %eax
	addl	28(%rsp), %eax
	movl	%eax, -4(%rbx)
	cmpl	%r12d, %edi
	jg	.L20
.L19:
	call	insertionsort
	movl	16(%rsp), %eax
	leaq	c(%rip), %rbx
	xorl	%ebp, %ebp
	testl	%eax, %eax
	jle	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	movl	24(%rbx), %ecx
	movq	%rbx, %rdx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	addl	$1, %ebp
	addq	$28, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 16(%rsp)
	jg	.L22
.L23:
	xorl	%ebx, %ebx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$88, %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
.L37:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 280
c:
	.zero	280
	.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	insertionsort
	.type	insertionsort, @function
insertionsort:
.LFB53:
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%edi, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	cmpl	$1, %edi
	jle	.L1
	leaq	28+c(%rip), %r12
	movl	$1, %r13d
	leaq	16(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$21, %edx
	movq	%r12, %rsi
	movq	%r14, %rdi
	movl	24(%r12), %ebx
	call	__stpcpy_chk@PLT
	movq	%r12, %rbp
	movl	%r13d, %ecx
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movl	-4(%rbp), %eax
	movq	%rbp, %rdi
	movl	%ecx, %r15d
	cmpl	%ebx, %eax
	jge	.L4
	movl	%eax, 24(%rbp)
	leaq	-28(%rdi), %rbp
	movl	$21, %edx
	movq	%rbp, %rsi
	call	__strcpy_chk@PLT
	movl	%r15d, %ecx
	subl	$1, %ecx
	jne	.L3
	leaq	c(%rip), %rdi
	xorl	%r15d, %r15d
.L4:
	movslq	%r15d, %rcx
	movq	(%rsp), %rbp
	addl	$1, %r13d
	addq	$28, %r12
	leaq	0(,%rcx,8), %rax
	leaq	c(%rip), %rsi
	subq	%rcx, %rax
	subq	%r14, %rbp
	movl	$21, %ecx
	movl	%ebx, 24(%rsi,%rax,4)
	leaq	1(%rbp), %rdx
	movq	%r14, %rsi
	call	__memcpy_chk@PLT
	cmpl	%r13d, 12(%rsp)
	jne	.L6
.L1:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	insertionsort, .-insertionsort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %d %d %d"
.LC1:
	.string	"%s,%d\n"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	$1, %ebx
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L16:
	movq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L17
	movl	16(%rsp), %edi
	testl	%edi, %edi
	je	.L17
	cmpl	$1, %ebx
	je	.L18
	movl	$10, %edi
	call	putchar@PLT
	movl	16(%rsp), %edi
.L18:
	testl	%edi, %edi
	jle	.L19
	leaq	c(%rip), %rbx
	xorl	%r12d, %r12d
	leaq	20(%rsp), %r13
	leaq	32(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	movl	$21, %edx
	movq	%rbp, %rsi
	call	__strcpy_chk@PLT
	movl	20(%rsp), %eax
	movl	16(%rsp), %edi
	addq	$28, %rbx
	leal	(%rax,%rax,2), %eax
	addl	28(%rsp), %eax
	movl	%eax, -4(%rbx)
	cmpl	%r12d, %edi
	jg	.L20
.L19:
	call	insertionsort
	movl	16(%rsp), %eax
	leaq	c(%rip), %rbx
	xorl	%ebp, %ebp
	testl	%eax, %eax
	jle	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	movl	24(%rbx), %ecx
	movq	%rbx, %rdx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	addl	$1, %ebp
	addq	$28, %rbx
	call	__printf_chk@PLT
	cmpl	%ebp, 16(%rsp)
	jg	.L22
.L23:
	xorl	%ebx, %ebx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$88, %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
.L37:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 280
c:
	.zero	280
	.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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

typedef struct _contry {
	char str[21];
	int point;
} contry_t;

contry_t c[10];

void insertionsort( int n )
{
	int i, j, v;
	char str[21];
	for ( i = 1 ; i < n ; i++ ) {
		v = c[i].point;
		strcpy( str, c[i].str );
		j = i-1;
		while ( j >= 0 && c[j].point < v ) {
			c[j+1].point = c[j].point;
			strcpy( c[j+1].str, c[j].str );
			j--;
		}
		c[j+1].point = v;
		strcpy( c[j+1].str, str );
	}
}

int main()
{
	int n, win, lose, draw, j, flg = 1;
	char str[30], *p;
	//contry_t c[10];

	while ( scanf( "%d", &n ) == 1 ) {
		if ( n == 0 ) { break; }
		if ( flg == 1 ) {
			flg = 0;
		} else {
			printf( "\n" );
		}

		for ( int i = 0 ; i < n ; i++ ) {
			scanf( "%s %d %d %d", str, &win, &lose, &draw );
			// printf( "%s %d %d %d\n", str, win, lose, draw );
			strcpy( c[i].str, str );
			c[i].point = 3 * win + 0 * lose + 1 * draw;
		}

		insertionsort( n );
		for ( int i = 0 ; i < n ; i++ ) {
			printf( "%s,%d\n", c[i].str, c[i].point );
		}

	}
	return 0;
}


4
Japan 1 0 2
Egypt 1 2 0
Canada 0 2 1
Spain 2 0 1
3
India 0 2 0
Poland 1 0 1
Italy 1 -1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Canada 0 2 1
Spain 2 0 1
3
India 0 2 0
Poland 1 0 1
Italx 1 -1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Canada 0 2 1
niapS 2 0 1
3
India 0 2 0
Poland 1 0 1
Italy 1 1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Canada 0 2 1
Spain 2 0 1
3
India -1 2 0
Poland 1 0 1
Italx 1 -1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Caaadn 0 2 1
niapS 2 0 1
3
India 0 2 0
Poland 1 0 1
Italy 1 1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Canada 0 2 1
Spain 2 0 1
3
Jndia -1 2 0
Poland 1 0 1
Italx 1 -1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Caaadn 0 2 1
niapS 2 0 1
3
Iodia 0 2 0
Poland 1 0 1
Italy 1 1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Canada 0 2 1
Spain 1 0 1
3
Jndia -1 2 0
Poland 1 0 1
Italx 1 -1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Caaadn 0 2 1
niapS 2 0 1
3
Ioida 0 2 0
Poland 1 0 1
Italy 1 1 1
0
 4
Japan 1 0 2
Egypt 1 2 0
Caaadn 0 2 1
nibpS 2 0 1
3
Ioida 0 2 0
Poland 1 0 1
Italy 1 1 1
0

Spain,7
Japan,5
Egypt,3
Canada,1

Poland,4
Italy,4
India,0
 Spain,7
Japan,5
Egypt,3
Canada,1

Poland,4
Italx,4
India,0
 niapS,7
Japan,5
Egypt,3
Canada,1

Poland,4
Italy,4
India,0
 Spain,7
Japan,5
Egypt,3
Canada,1

Poland,4
Italx,4
India,-3
 niapS,7
Japan,5
Egypt,3
Caaadn,1

Poland,4
Italy,4
India,0
 Spain,7
Japan,5
Egypt,3
Canada,1

Poland,4
Italx,4
Jndia,-3
 niapS,7
Japan,5
Egypt,3
Caaadn,1

Poland,4
Italy,4
Iodia,0
 Japan,5
Spain,4
Egypt,3
Canada,1

Poland,4
Italx,4
Jndia,-3
 niapS,7
Japan,5
Egypt,3
Caaadn,1

Poland,4
Italy,4
Ioida,0
 nibpS,7
Japan,5
Egypt,3
Caaadn,1

Poland,4
Italy,4
Ioida,0

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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

typedef struct _contry {
	char str[21];
	int point;
} contry_t;

contry_t c[10];

void insertionsort( int n )
{
	int i, j, v;
	char str[21];
	for ( i = 1 ; i < n ; i++ ) {
		v = c[i].point;
		strcpy( str, c[i].str );
		j = i-1;
		while ( j >= 0 && c[j].point < v ) {
			c[j+1].point = c[j].point;
			strcpy( c[j+1].str, c[j].str );
			j--;
		}
		c[j+1].point = v;
		strcpy( c[j+1].str, str );
	}
}

int main()
{
	int n, win, lose, draw, j, flg = 1;
	char str[30], *p;
	//contry_t c[10];

	while ( scanf( "%d", &n ) == 1 ) {
		if ( n == 0 ) { break; }
		if ( flg == 1 ) {
			flg = 0;
		} else {
			printf( "\n" );
		}

		for ( int i = 0 ; i < n ; i++ ) {
			scanf( "%s %d %d %d", str, &win, &lose, &draw );
			// printf( "%s %d %d %d\n", str, win, lose, draw );
			strcpy( c[i].str, str );
			c[i].point = 3 * win + 0 * lose + 1 * draw;
		}

		insertionsort( n );
		for ( int i = 0 ; i < n ; i++ ) {
			printf( "%s,%d\n", c[i].str, c[i].point );
		}

	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 280
c:
	.zero	280
	.text
	.globl	insertionsort
	.type	insertionsort, @function
insertionsort:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -44(%rbp)
	jmp	.L2
.L6:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L3
.L5:
	movl	-40(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	24+c(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	subl	$1, -40(%rbp)
.L3:
	cmpl	$0, -40(%rbp)
	js	.L4
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jg	.L5
.L4:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	24+c(%rip), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jl	.L6
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insertionsort, .-insertionsort
	.section	.rodata
.LC0:
	.string	"%s %d %d %d"
.LC1:
	.string	"%s,%d\n"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -60(%rbp)
	jmp	.L9
.L18:
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	je	.L21
	cmpl	$1, -60(%rbp)
	jne	.L12
	movl	$0, -60(%rbp)
	jmp	.L13
.L12:
	movl	$10, %edi
	call	putchar@PLT
.L13:
	movl	$0, -56(%rbp)
	jmp	.L14
.L15:
	leaq	-64(%rbp), %rsi
	leaq	-68(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	-72(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-64(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -56(%rbp)
.L14:
	movl	-76(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L15
	movl	-76(%rbp), %eax
	movl	%eax, %edi
	call	insertionsort
	movl	$0, -52(%rbp)
	jmp	.L16
.L17:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rcx
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -52(%rbp)
.L16:
	movl	-76(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L17
.L9:
	leaq	-76(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
	jmp	.L11
.L21:
	nop
.L11:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 280
c:
	.zero	280
	.text
	.globl	insertionsort
	.type	insertionsort, @function
insertionsort:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -44(%rbp)
	jmp	.L2
.L6:
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -40(%rbp)
	jmp	.L3
.L5:
	movl	-40(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	24+c(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	subl	$1, -40(%rbp)
.L3:
	cmpl	$0, -40(%rbp)
	js	.L4
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jg	.L5
.L4:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	24+c(%rip), %rdx
	movl	-36(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jl	.L6
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insertionsort, .-insertionsort
	.section	.rodata
.LC0:
	.string	"%s %d %d %d"
.LC1:
	.string	"%s,%d\n"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -60(%rbp)
	jmp	.L9
.L18:
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	je	.L21
	cmpl	$1, -60(%rbp)
	jne	.L12
	movl	$0, -60(%rbp)
	jmp	.L13
.L12:
	movl	$10, %edi
	call	putchar@PLT
.L13:
	movl	$0, -56(%rbp)
	jmp	.L14
.L15:
	leaq	-64(%rbp), %rsi
	leaq	-68(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rdx
	addq	%rax, %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	-72(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-64(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -56(%rbp)
.L14:
	movl	-76(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L15
	movl	-76(%rbp), %eax
	movl	%eax, %edi
	call	insertionsort
	movl	$0, -52(%rbp)
	jmp	.L16
.L17:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	24+c(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	c(%rip), %rcx
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -52(%rbp)
.L16:
	movl	-76(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L17
.L9:
	leaq	-76(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
	jmp	.L11
.L21:
	nop
.L11:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
