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 <memory.h>
#include <stdlib.h>
int c(const void *v1,const void *v2){
    return *(int *)v2-*(int *)v1;
}
int main(void){
    int n,m,i,o,count,num,line[100],line1[100];
    for(;count=0,memset(line,0,sizeof(line)),scanf("%d %d",&n,&m),m;){
        for(i=0;i<n;i++)
            for(o=0;o<m;o++){
                scanf("%d",&num);
                line[o]+=num;
            }
        memcpy(line1,line,4*m);
        qsort(line,m,4,c);
        for(i=0;i<m;i++)
            for(o=0;o<m;o++)
                if(line[i] == line1[o]){
                    printf("%d%s",o+1,(count==m-1)?"\n":" ");
                    line1[o]=-1;
                    count++;
                }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.type	c, @function
c:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	c, .-c
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"\n"
.LC2:
	.string	" "
.LC3:
	.string	"%d%s"
.LC4:
	.string	"%d %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	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L16:
	movl	$0, -828(%rbp)
	jmp	.L5
.L8:
	movl	$0, -824(%rbp)
	jmp	.L6
.L7:
	leaq	-832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	addl	%eax, %edx
	movl	-824(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -824(%rbp)
.L6:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L7
	addl	$1, -828(%rbp)
.L5:
	movl	-840(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L8
	movl	-836(%rbp), %eax
	sall	$2, %eax
	movslq	%eax, %rdx
	leaq	-816(%rbp), %rcx
	leaq	-416(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-836(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-816(%rbp), %rax
	leaq	c(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -828(%rbp)
	jmp	.L9
.L15:
	movl	$0, -824(%rbp)
	jmp	.L10
.L14:
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-836(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -820(%rbp)
	jne	.L12
	leaq	.LC1(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
.L13:
	movl	-824(%rbp), %edx
	leal	1(%rdx), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-824(%rbp), %eax
	cltq
	movl	$-1, -416(%rbp,%rax,4)
	addl	$1, -820(%rbp)
.L11:
	addl	$1, -824(%rbp)
.L10:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L14
	addl	$1, -828(%rbp)
.L9:
	movl	-836(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L15
.L4:
	movl	$0, -820(%rbp)
	leaq	-816(%rbp), %rax
	movl	$400, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-836(%rbp), %rdx
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-836(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	c
	.type	c, @function
c:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	c, .-c
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
.LC1:
	.string	" "
.LC2:
	.string	"%d"
.LC3:
	.string	"%d%s"
.LC4:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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
	leaq	.LC2(%rip), %rbx
	subq	$872, %rsp
	.cfi_def_cfa_offset 928
	movq	%fs:40, %rax
	movq	%rax, 856(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	movl	$50, %ecx
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	rep stosq
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L15
	movl	36(%rsp), %eax
	movq	8(%rsp), %r14
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	testl	%r9d, %r9d
	jle	.L17
	movq	%r14, %rbp
	xorl	%r12d, %r12d
	leaq	44(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r9d
	movl	44(%rsp), %eax
	addl	%eax, 0(%rbp)
	addq	$4, %rbp
	cmpl	%r12d, %r9d
	jg	.L5
	addl	$1, %r15d
	cmpl	%r15d, 36(%rsp)
	jg	.L16
.L17:
	movq	8(%rsp), %r15
	leal	0(,%r9,4), %edx
	movl	$400, %ecx
	xorl	%r13d, %r13d
	leaq	448(%rsp), %r14
	movslq	%edx, %rdx
	movl	%r9d, 4(%rsp)
	leaq	.LC3(%rip), %r12
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	__memcpy_chk@PLT
	movslq	4(%rsp), %rsi
	movl	$4, %edx
	movq	%r15, %rdi
	leaq	c(%rip), %rcx
	call	qsort@PLT
	movl	40(%rsp), %eax
	movl	$0, 4(%rsp)
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r14,%rbp,4), %ecx
	leal	1(%rbp), %edx
	cmpl	%ecx, (%r15)
	jne	.L10
	subl	$1, %eax
	leaq	.LC1(%rip), %rcx
	movq	%r12, %rsi
	movl	$1, %edi
	cmpl	%r13d, %eax
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rcx
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__printf_chk@PLT
	movl	$-1, (%r14,%rbp,4)
	movl	40(%rsp), %eax
.L10:
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L12
	addl	$1, 4(%rsp)
	movl	4(%rsp), %esi
	cmpl	%esi, %eax
	jle	.L4
	addq	$4, %r15
	testl	%eax, %eax
	jg	.L14
	jmp	.L4
.L15:
	movq	856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$872, %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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	c
	.type	c, @function
c:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	c, .-c
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
.LC1:
	.string	" "
.LC2:
	.string	"%d"
.LC3:
	.string	"%d%s"
.LC4:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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
	leaq	.LC2(%rip), %rbx
	subq	$872, %rsp
	.cfi_def_cfa_offset 928
	movq	%fs:40, %rax
	movq	%rax, 856(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	movl	$50, %ecx
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	rep stosq
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L15
	movl	36(%rsp), %eax
	movq	8(%rsp), %r14
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	testl	%r9d, %r9d
	jle	.L17
	movq	%r14, %rbp
	xorl	%r12d, %r12d
	leaq	44(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r9d
	movl	44(%rsp), %eax
	addl	%eax, 0(%rbp)
	addq	$4, %rbp
	cmpl	%r12d, %r9d
	jg	.L5
	addl	$1, %r15d
	cmpl	%r15d, 36(%rsp)
	jg	.L16
.L17:
	movq	8(%rsp), %r15
	leal	0(,%r9,4), %edx
	movl	$400, %ecx
	xorl	%r13d, %r13d
	leaq	448(%rsp), %r14
	movslq	%edx, %rdx
	movl	%r9d, 4(%rsp)
	leaq	.LC3(%rip), %r12
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	__memcpy_chk@PLT
	movslq	4(%rsp), %rsi
	movl	$4, %edx
	movq	%r15, %rdi
	leaq	c(%rip), %rcx
	call	qsort@PLT
	movl	40(%rsp), %eax
	movl	$0, 4(%rsp)
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r14,%rbp,4), %ecx
	leal	1(%rbp), %edx
	cmpl	%ecx, (%r15)
	jne	.L10
	subl	$1, %eax
	leaq	.LC1(%rip), %rcx
	movq	%r12, %rsi
	movl	$1, %edi
	cmpl	%r13d, %eax
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rcx
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__printf_chk@PLT
	movl	$-1, (%r14,%rbp,4)
	movl	40(%rsp), %eax
.L10:
	addq	$1, %rbp
	cmpl	%ebp, %eax
	jg	.L12
	addl	$1, 4(%rsp)
	movl	4(%rsp), %esi
	cmpl	%esi, %eax
	jle	.L4
	addq	$4, %r15
	testl	%eax, %eax
	jg	.L14
	jmp	.L4
.L15:
	movq	856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$872, %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
.L32:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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>
#include <memory.h>
#include <stdlib.h>
int c(const void *v1,const void *v2){
    return *(int *)v2-*(int *)v1;
}
int main(void){
    int n,m,i,o,count,num,line[100],line1[100];
    for(;count=0,memset(line,0,sizeof(line)),scanf("%d %d",&n,&m),m;){
        for(i=0;i<n;i++)
            for(o=0;o<m;o++){
                scanf("%d",&num);
                line[o]+=num;
            }
        memcpy(line1,line,4*m);
        qsort(line,m,4,c);
        for(i=0;i<m;i++)
            for(o=0;o<m;o++)
                if(line[i] == line1[o]){
                    printf("%d%s",o+1,(count==m-1)?"\n":" ");
                    line1[o]=-1;
                    count++;
                }
    }
    return 0;
}
4 6
1 0 1 0 1 1
1 2 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 2 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
2 1 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
0 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 2 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
1 1 -1 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 2
1 2 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
2 1 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 0 1 0 0 0
1 0 1 0 1 0
4 6
0 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 2 0 1 0 0
1 1 1 0 0 1
1 0 1 0 1 0
4 6
1 0 1 0 1 1
1 1 -1 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 0 0 1 1
1 2 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
2 1 0 1 1 0
1 1 0 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 2
1 0 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
2 1 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
0 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 -1 1 0 1 0
0 0

1 2 3 5 4 6
1 3 2 5 4 6
 1 2 3 5 4 6
1 3 5 2 4 6
 1 3 2 5 4 6
1 3 2 5 4 6
 1 2 3 5 4 6
1 2 3 5 4 6
 1 2 3 5 6 4
1 3 5 2 4 6
 1 3 5 2 4 6
1 3 2 5 4 6
 1 2 3 5 6 4
1 2 3 5 4 6
 1 2 3 5 4 6
1 5 2 3 4 6
 1 3 5 6 2 4
1 3 5 2 4 6
 1 3 2 5 4 6
1 3 5 2 4 6

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 <memory.h>
#include <stdlib.h>
int c(const void *v1,const void *v2){
    return *(int *)v2-*(int *)v1;
}
int main(void){
    int n,m,i,o,count,num,line[100],line1[100];
    for(;count=0,memset(line,0,sizeof(line)),scanf("%d %d",&n,&m),m;){
        for(i=0;i<n;i++)
            for(o=0;o<m;o++){
                scanf("%d",&num);
                line[o]+=num;
            }
        memcpy(line1,line,4*m);
        qsort(line,m,4,c);
        for(i=0;i<m;i++)
            for(o=0;o<m;o++)
                if(line[i] == line1[o]){
                    printf("%d%s",o+1,(count==m-1)?"\n":" ");
                    line1[o]=-1;
                    count++;
                }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.type	c, @function
c:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	c, .-c
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"\n"
.LC2:
	.string	" "
.LC3:
	.string	"%d%s"
.LC4:
	.string	"%d %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	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L16:
	movl	$0, -828(%rbp)
	jmp	.L5
.L8:
	movl	$0, -824(%rbp)
	jmp	.L6
.L7:
	leaq	-832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	addl	%eax, %edx
	movl	-824(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -824(%rbp)
.L6:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L7
	addl	$1, -828(%rbp)
.L5:
	movl	-840(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L8
	movl	-836(%rbp), %eax
	sall	$2, %eax
	movslq	%eax, %rdx
	leaq	-816(%rbp), %rcx
	leaq	-416(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-836(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-816(%rbp), %rax
	leaq	c(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -828(%rbp)
	jmp	.L9
.L15:
	movl	$0, -824(%rbp)
	jmp	.L10
.L14:
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-836(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -820(%rbp)
	jne	.L12
	leaq	.LC1(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
.L13:
	movl	-824(%rbp), %edx
	leal	1(%rdx), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-824(%rbp), %eax
	cltq
	movl	$-1, -416(%rbp,%rax,4)
	addl	$1, -820(%rbp)
.L11:
	addl	$1, -824(%rbp)
.L10:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L14
	addl	$1, -828(%rbp)
.L9:
	movl	-836(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L15
.L4:
	movl	$0, -820(%rbp)
	leaq	-816(%rbp), %rax
	movl	$400, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-836(%rbp), %rdx
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-836(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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
	.type	c, @function
c:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	c, .-c
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"\n"
.LC2:
	.string	" "
.LC3:
	.string	"%d%s"
.LC4:
	.string	"%d %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	$848, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L16:
	movl	$0, -828(%rbp)
	jmp	.L5
.L8:
	movl	$0, -824(%rbp)
	jmp	.L6
.L7:
	leaq	-832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-832(%rbp), %eax
	addl	%eax, %edx
	movl	-824(%rbp), %eax
	cltq
	movl	%edx, -816(%rbp,%rax,4)
	addl	$1, -824(%rbp)
.L6:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L7
	addl	$1, -828(%rbp)
.L5:
	movl	-840(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L8
	movl	-836(%rbp), %eax
	sall	$2, %eax
	movslq	%eax, %rdx
	leaq	-816(%rbp), %rcx
	leaq	-416(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-836(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-816(%rbp), %rax
	leaq	c(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -828(%rbp)
	jmp	.L9
.L15:
	movl	$0, -824(%rbp)
	jmp	.L10
.L14:
	movl	-828(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-836(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -820(%rbp)
	jne	.L12
	leaq	.LC1(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
.L13:
	movl	-824(%rbp), %edx
	leal	1(%rdx), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-824(%rbp), %eax
	cltq
	movl	$-1, -416(%rbp,%rax,4)
	addl	$1, -820(%rbp)
.L11:
	addl	$1, -824(%rbp)
.L10:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L14
	addl	$1, -828(%rbp)
.L9:
	movl	-836(%rbp), %eax
	cmpl	%eax, -828(%rbp)
	jl	.L15
.L4:
	movl	$0, -820(%rbp)
	leaq	-816(%rbp), %rax
	movl	$400, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-836(%rbp), %rdx
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-836(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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:
