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>

typedef struct {
	int no;
	int num;
} place_t;

int comp(const void* x,const void* y) {
	place_t* a=(place_t*)x;
	place_t* b=(place_t*)y;
	if(a->num<b->num)return 1;
	if(a->num>b->num)return -1;
	if(a->no>b->no)return 1;
	if(a->no<b->no)return -1;
	return 0;
}

int main(void) {
	place_t place[100];
	int i,j,n,m;
	int one;
	while(1) {
		scanf("%d %d",&n,&m);
		if(n==0 && m==0)break;
		for(i=0;i<100;i++) {
			place[i].no=i;
			place[i].num=0;
		}
		for(i=0;i<n;i++) {
			for(j=0;j<m;j++) {
				scanf("%d",&one);
				if(one)place[j].num++;
			}
		}
		qsort(place,m,sizeof(place_t),comp);
		for(i=0;i<m-1;i++) {
			printf("%d ",place[i].no+1);
		}
		printf("%d\n",place[m-1].no+1);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	$-1, %eax
	jmp	.L3
.L6:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
	.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
.L19:
	leaq	-832(%rbp), %rdx
	leaq	-836(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-836(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-832(%rbp), %eax
	testl	%eax, %eax
	je	.L23
.L8:
	movl	$0, -824(%rbp)
	jmp	.L10
.L11:
	movl	-824(%rbp), %eax
	cltq
	movl	-824(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,8)
	movl	-824(%rbp), %eax
	cltq
	movl	$0, -812(%rbp,%rax,8)
	addl	$1, -824(%rbp)
.L10:
	cmpl	$99, -824(%rbp)
	jle	.L11
	movl	$0, -824(%rbp)
	jmp	.L12
.L16:
	movl	$0, -820(%rbp)
	jmp	.L13
.L15:
	leaq	-828(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-828(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	movl	-820(%rbp), %eax
	cltq
	movl	-812(%rbp,%rax,8), %eax
	leal	1(%rax), %edx
	movl	-820(%rbp), %eax
	cltq
	movl	%edx, -812(%rbp,%rax,8)
.L14:
	addl	$1, -820(%rbp)
.L13:
	movl	-832(%rbp), %eax
	cmpl	%eax, -820(%rbp)
	jl	.L15
	addl	$1, -824(%rbp)
.L12:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L16
	movl	-832(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-816(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -824(%rbp)
	jmp	.L17
.L18:
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,8), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -824(%rbp)
.L17:
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -824(%rbp)
	jl	.L18
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,8), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	4(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, 4(%rdi)
	jl	.L1
	movl	$-1, %eax
	jg	.L1
	movl	(%rsi), %ecx
	movl	$1, %eax
	cmpl	%ecx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d "
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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	.LC3(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %esi
	movl	24(%rsp), %eax
	movl	%esi, %ecx
	orl	%eax, %ecx
	je	.L8
	leaq	32(%rsp), %r13
	movdqa	.LC0(%rip), %xmm1
	leaq	832(%rsp), %rcx
	pxor	%xmm2, %xmm2
	movq	%r13, %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm1, %xmm0
	addq	$32, %rdx
	paddd	.LC2(%rip), %xmm1
	movdqa	%xmm0, %xmm3
	punpckhdq	%xmm2, %xmm0
	punpckldq	%xmm2, %xmm3
	movaps	%xmm0, -16(%rdx)
	movaps	%xmm3, -32(%rdx)
	cmpq	%rcx, %rdx
	jne	.L9
	xorl	%r12d, %r12d
	testl	%esi, %esi
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%eax, %eax
	jle	.L11
	leaq	36(%rsp), %r15
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L12
	addl	$1, (%r15)
.L12:
	movl	24(%rsp), %eax
	addl	$1, %r14d
	addq	$8, %r15
	cmpl	%r14d, %eax
	jg	.L15
	addl	$1, %r12d
	cmpl	%r12d, 20(%rsp)
	jg	.L10
.L11:
	movslq	%eax, %rsi
	leaq	comp(%rip), %rcx
	movl	$8, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	24(%rsp), %eax
	subl	$1, %eax
	testl	%eax, %eax
	jle	.L18
	xorl	%r12d, %r12d
	leaq	.LC4(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L19:
	movl	0(%r13,%r12,8), %eax
	movq	%rbx, %rsi
	movl	$1, %edi
	addq	$1, %r12
	leal	1(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	24(%rsp), %eax
	subl	$1, %eax
	cmpl	%r12d, %eax
	jg	.L19
.L18:
	cltq
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	32(%rsp,%rax,8), %edx
	xorl	%eax, %eax
	addl	$1, %edx
	call	__printf_chk@PLT
	jmp	.L20
.L8:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$856, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	4(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, 4(%rdi)
	jl	.L1
	movl	$-1, %eax
	jg	.L1
	movl	(%rsi), %ecx
	movl	$1, %eax
	cmpl	%ecx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d "
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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	.LC3(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %esi
	movl	24(%rsp), %eax
	movl	%esi, %ecx
	orl	%eax, %ecx
	je	.L8
	leaq	32(%rsp), %r13
	movdqa	.LC0(%rip), %xmm1
	leaq	832(%rsp), %rcx
	pxor	%xmm2, %xmm2
	movq	%r13, %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm1, %xmm0
	addq	$32, %rdx
	paddd	.LC2(%rip), %xmm1
	movdqa	%xmm0, %xmm3
	punpckhdq	%xmm2, %xmm0
	punpckldq	%xmm2, %xmm3
	movaps	%xmm0, -16(%rdx)
	movaps	%xmm3, -32(%rdx)
	cmpq	%rcx, %rdx
	jne	.L9
	xorl	%r12d, %r12d
	testl	%esi, %esi
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%eax, %eax
	jle	.L11
	leaq	36(%rsp), %r15
	xorl	%r14d, %r14d
	leaq	28(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L12
	addl	$1, (%r15)
.L12:
	movl	24(%rsp), %eax
	addl	$1, %r14d
	addq	$8, %r15
	cmpl	%r14d, %eax
	jg	.L15
	addl	$1, %r12d
	cmpl	%r12d, 20(%rsp)
	jg	.L10
.L11:
	movslq	%eax, %rsi
	leaq	comp(%rip), %rcx
	movl	$8, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	24(%rsp), %eax
	subl	$1, %eax
	testl	%eax, %eax
	jle	.L18
	xorl	%r12d, %r12d
	leaq	.LC4(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L19:
	movl	0(%r13,%r12,8), %eax
	movq	%rbx, %rsi
	movl	$1, %edi
	addq	$1, %r12
	leal	1(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	24(%rsp), %eax
	subl	$1, %eax
	cmpl	%r12d, %eax
	jg	.L19
.L18:
	cltq
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	32(%rsp,%rax,8), %edx
	xorl	%eax, %eax
	addl	$1, %edx
	call	__printf_chk@PLT
	jmp	.L20
.L8:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$856, %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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <stdlib.h>

typedef struct {
	int no;
	int num;
} place_t;

int comp(const void* x,const void* y) {
	place_t* a=(place_t*)x;
	place_t* b=(place_t*)y;
	if(a->num<b->num)return 1;
	if(a->num>b->num)return -1;
	if(a->no>b->no)return 1;
	if(a->no<b->no)return -1;
	return 0;
}

int main(void) {
	place_t place[100];
	int i,j,n,m;
	int one;
	while(1) {
		scanf("%d %d",&n,&m);
		if(n==0 && m==0)break;
		for(i=0;i<100;i++) {
			place[i].no=i;
			place[i].num=0;
		}
		for(i=0;i<n;i++) {
			for(j=0;j<m;j++) {
				scanf("%d",&one);
				if(one)place[j].num++;
			}
		}
		qsort(place,m,sizeof(place_t),comp);
		for(i=0;i<m-1;i++) {
			printf("%d ",place[i].no+1);
		}
		printf("%d\n",place[m-1].no+1);
	}
	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 3 2 5 4 6
1 3 2 5 4 6
 1 3 2 5 4 6
1 3 5 2 4 6
 1 3 2 5 4 6
1 3 2 5 4 6
 1 3 2 5 4 6
1 3 2 5 4 6
 1 3 5 2 4 6
1 3 5 2 4 6
 1 3 5 2 4 6
1 3 2 5 4 6
 1 3 2 5 6 4
1 3 2 5 4 6
 1 2 3 5 4 6
1 5 2 3 4 6
 1 3 5 2 4 6
1 3 5 2 4 6
 1 3 2 5 4 6
1 2 3 5 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 <stdlib.h>

typedef struct {
	int no;
	int num;
} place_t;

int comp(const void* x,const void* y) {
	place_t* a=(place_t*)x;
	place_t* b=(place_t*)y;
	if(a->num<b->num)return 1;
	if(a->num>b->num)return -1;
	if(a->no>b->no)return 1;
	if(a->no<b->no)return -1;
	return 0;
}

int main(void) {
	place_t place[100];
	int i,j,n,m;
	int one;
	while(1) {
		scanf("%d %d",&n,&m);
		if(n==0 && m==0)break;
		for(i=0;i<100;i++) {
			place[i].no=i;
			place[i].num=0;
		}
		for(i=0;i<n;i++) {
			for(j=0;j<m;j++) {
				scanf("%d",&one);
				if(one)place[j].num++;
			}
		}
		qsort(place,m,sizeof(place_t),comp);
		for(i=0;i<m-1;i++) {
			printf("%d ",place[i].no+1);
		}
		printf("%d\n",place[m-1].no+1);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	$-1, %eax
	jmp	.L3
.L6:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
	.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
.L19:
	leaq	-832(%rbp), %rdx
	leaq	-836(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-836(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-832(%rbp), %eax
	testl	%eax, %eax
	je	.L23
.L8:
	movl	$0, -824(%rbp)
	jmp	.L10
.L11:
	movl	-824(%rbp), %eax
	cltq
	movl	-824(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,8)
	movl	-824(%rbp), %eax
	cltq
	movl	$0, -812(%rbp,%rax,8)
	addl	$1, -824(%rbp)
.L10:
	cmpl	$99, -824(%rbp)
	jle	.L11
	movl	$0, -824(%rbp)
	jmp	.L12
.L16:
	movl	$0, -820(%rbp)
	jmp	.L13
.L15:
	leaq	-828(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-828(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	movl	-820(%rbp), %eax
	cltq
	movl	-812(%rbp,%rax,8), %eax
	leal	1(%rax), %edx
	movl	-820(%rbp), %eax
	cltq
	movl	%edx, -812(%rbp,%rax,8)
.L14:
	addl	$1, -820(%rbp)
.L13:
	movl	-832(%rbp), %eax
	cmpl	%eax, -820(%rbp)
	jl	.L15
	addl	$1, -824(%rbp)
.L12:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L16
	movl	-832(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-816(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -824(%rbp)
	jmp	.L17
.L18:
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,8), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -824(%rbp)
.L17:
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -824(%rbp)
	jl	.L18
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,8), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	comp
	.type	comp, @function
comp:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	$-1, %eax
	jmp	.L3
.L6:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
	.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
.L19:
	leaq	-832(%rbp), %rdx
	leaq	-836(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-836(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-832(%rbp), %eax
	testl	%eax, %eax
	je	.L23
.L8:
	movl	$0, -824(%rbp)
	jmp	.L10
.L11:
	movl	-824(%rbp), %eax
	cltq
	movl	-824(%rbp), %edx
	movl	%edx, -816(%rbp,%rax,8)
	movl	-824(%rbp), %eax
	cltq
	movl	$0, -812(%rbp,%rax,8)
	addl	$1, -824(%rbp)
.L10:
	cmpl	$99, -824(%rbp)
	jle	.L11
	movl	$0, -824(%rbp)
	jmp	.L12
.L16:
	movl	$0, -820(%rbp)
	jmp	.L13
.L15:
	leaq	-828(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-828(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	movl	-820(%rbp), %eax
	cltq
	movl	-812(%rbp,%rax,8), %eax
	leal	1(%rax), %edx
	movl	-820(%rbp), %eax
	cltq
	movl	%edx, -812(%rbp,%rax,8)
.L14:
	addl	$1, -820(%rbp)
.L13:
	movl	-832(%rbp), %eax
	cmpl	%eax, -820(%rbp)
	jl	.L15
	addl	$1, -824(%rbp)
.L12:
	movl	-836(%rbp), %eax
	cmpl	%eax, -824(%rbp)
	jl	.L16
	movl	-832(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-816(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -824(%rbp)
	jmp	.L17
.L18:
	movl	-824(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,8), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -824(%rbp)
.L17:
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -824(%rbp)
	jl	.L18
	movl	-832(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-816(%rbp,%rax,8), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L19
.L23:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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:
