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>

int main() {
  int n, m;
  int data[1010][101];
  int result[101] = {};
  int idx;
  int i, j;

  while(scanf("%d %d", &n, &m), n || m) {
    for(i = 0; i < 101; i++) result[i] = 0;
    for(i = 0; i < n; i++) {
      for(j = 0; j < m; j++) {
	scanf("%d", &data[i][j]);
	result[j] += data[i][j];
      }
    }
    for(i = 0; i < m; i++) {
      idx = 0;
      for(j = 0; j < m; j++) {
	if(result[j] > result[idx]) idx = j;
      }
      printf("%d%c", idx+1, " \n"[i==m-1]);
      result[idx] = -1;
    }
  }

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d %d"
.LC1:
	.string	" \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-405504(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2992, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-408464(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	jmp	.L2
.L17:
	movl	$0, -408472(%rbp)
	jmp	.L3
.L4:
	movl	-408472(%rbp), %eax
	cltq
	movl	$0, -408464(%rbp,%rax,4)
	addl	$1, -408472(%rbp)
.L3:
	cmpl	$100, -408472(%rbp)
	jle	.L4
	movl	$0, -408472(%rbp)
	jmp	.L5
.L8:
	movl	$0, -408468(%rbp)
	jmp	.L6
.L7:
	leaq	-408048(%rbp), %rcx
	movl	-408468(%rbp), %eax
	movslq	%eax, %rsi
	movl	-408472(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-408468(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %ecx
	movl	-408468(%rbp), %eax
	movslq	%eax, %rsi
	movl	-408472(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-408048(%rbp,%rax,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-408468(%rbp), %eax
	cltq
	movl	%edx, -408464(%rbp,%rax,4)
	addl	$1, -408468(%rbp)
.L6:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408468(%rbp)
	jl	.L7
	addl	$1, -408472(%rbp)
.L5:
	movl	-408484(%rbp), %eax
	cmpl	%eax, -408472(%rbp)
	jl	.L8
	movl	$0, -408472(%rbp)
	jmp	.L9
.L13:
	movl	$0, -408476(%rbp)
	movl	$0, -408468(%rbp)
	jmp	.L10
.L12:
	movl	-408468(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %edx
	movl	-408476(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L11
	movl	-408468(%rbp), %eax
	movl	%eax, -408476(%rbp)
.L11:
	addl	$1, -408468(%rbp)
.L10:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408468(%rbp)
	jl	.L12
	movl	-408480(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -408472(%rbp)
	sete	%al
	movzbl	%al, %eax
	cltq
	leaq	.LC1(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	-408476(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-408476(%rbp), %eax
	cltq
	movl	$-1, -408464(%rbp,%rax,4)
	addl	$1, -408472(%rbp)
.L9:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408472(%rbp)
	jl	.L13
.L2:
	leaq	-408480(%rbp), %rdx
	leaq	-408484(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-408484(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-408480(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L14:
	movl	$1, %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d %d"
.LC1:
	.string	" \n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	-405504(%rsp), %r11
	.cfi_def_cfa 11, 405560
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3016, %rsp
	.cfi_def_cfa_offset 408576
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 408504(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %edx
	movl	44(%rsp), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L24
	leaq	48(%rsp), %r15
	movl	$50, %ecx
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	movq	%r15, %rdi
	movl	$0, 12(%rsp)
	xorl	%ebx, %ebx
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%esi, %esi
	jle	.L2
	leaq	464(%rsp), %rcx
	xorl	%r14d, %r14d
	subq	%rbx, %rcx
	movq	%rcx, %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	0(%r13,%rbx), %rax
	movl	44(%rsp), %esi
	addq	$4, %r13
	movl	(%rax,%rbp), %eax
	addl	%eax, (%r15,%r14,4)
	addq	$1, %r14
	cmpl	%r14d, %esi
	jg	.L5
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	cmpl	%eax, 40(%rsp)
	jle	.L4
	subq	$404, %rbx
	addq	$404, %rbp
	jmp	.L3
.L4:
	testl	%esi, %esi
	jle	.L2
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	48(%rsp), %ecx
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r15,%rax,4), %edx
	cmpl	%edx, %ecx
	jge	.L10
	movl	%edx, %ecx
	movslq	%eax, %rbp
.L10:
	addq	$1, %rax
	cmpl	%eax, %esi
	jg	.L11
	subl	$1, %esi
	leaq	.LC1(%rip), %rdi
	leal	1(%rbp), %edx
	xorl	%eax, %eax
	cmpl	%r13d, %esi
	movq	%rbx, %rsi
	sete	%al
	addl	$1, %r13d
	movsbl	(%rdi,%rax), %ecx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	44(%rsp), %esi
	movl	$-1, 48(%rsp,%rbp,4)
	cmpl	%esi, %r13d
	jl	.L9
	jmp	.L2
.L24:
	movq	408504(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$408520, %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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d %d"
.LC1:
	.string	" \n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	-405504(%rsp), %r11
	.cfi_def_cfa 11, 405560
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3016, %rsp
	.cfi_def_cfa_offset 408576
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 408504(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %edx
	movl	44(%rsp), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L24
	leaq	48(%rsp), %r15
	movl	$50, %ecx
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	movq	%r15, %rdi
	movl	$0, 12(%rsp)
	xorl	%ebx, %ebx
	rep stosq
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%esi, %esi
	jle	.L2
	leaq	464(%rsp), %rcx
	xorl	%r14d, %r14d
	subq	%rbx, %rcx
	movq	%rcx, %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	0(%r13,%rbx), %rax
	movl	44(%rsp), %esi
	addq	$4, %r13
	movl	(%rax,%rbp), %eax
	addl	%eax, (%r15,%r14,4)
	addq	$1, %r14
	cmpl	%r14d, %esi
	jg	.L5
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	cmpl	%eax, 40(%rsp)
	jle	.L4
	subq	$404, %rbx
	addq	$404, %rbp
	jmp	.L3
.L4:
	testl	%esi, %esi
	jle	.L2
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	48(%rsp), %ecx
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r15,%rax,4), %edx
	cmpl	%edx, %ecx
	jge	.L10
	movl	%edx, %ecx
	movslq	%eax, %rbp
.L10:
	addq	$1, %rax
	cmpl	%eax, %esi
	jg	.L11
	subl	$1, %esi
	leaq	.LC1(%rip), %rdi
	leal	1(%rbp), %edx
	xorl	%eax, %eax
	cmpl	%r13d, %esi
	movq	%rbx, %rsi
	sete	%al
	addl	$1, %r13d
	movsbl	(%rdi,%rax), %ecx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	44(%rsp), %esi
	movl	$-1, 48(%rsp,%rbp,4)
	cmpl	%esi, %r13d
	jl	.L9
	jmp	.L2
.L24:
	movq	408504(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$408520, %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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main() {
  int n, m;
  int data[1010][101];
  int result[101] = {};
  int idx;
  int i, j;

  while(scanf("%d %d", &n, &m), n || m) {
    for(i = 0; i < 101; i++) result[i] = 0;
    for(i = 0; i < n; i++) {
      for(j = 0; j < m; j++) {
	scanf("%d", &data[i][j]);
	result[j] += data[i][j];
      }
    }
    for(i = 0; i < m; i++) {
      idx = 0;
      for(j = 0; j < m; j++) {
	if(result[j] > result[idx]) idx = j;
      }
      printf("%d%c", idx+1, " \n"[i==m-1]);
      result[idx] = -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 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>

int main() {
  int n, m;
  int data[1010][101];
  int result[101] = {};
  int idx;
  int i, j;

  while(scanf("%d %d", &n, &m), n || m) {
    for(i = 0; i < 101; i++) result[i] = 0;
    for(i = 0; i < n; i++) {
      for(j = 0; j < m; j++) {
	scanf("%d", &data[i][j]);
	result[j] += data[i][j];
      }
    }
    for(i = 0; i < m; i++) {
      idx = 0;
      for(j = 0; j < m; j++) {
	if(result[j] > result[idx]) idx = j;
      }
      printf("%d%c", idx+1, " \n"[i==m-1]);
      result[idx] = -1;
    }
  }

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d %d"
.LC1:
	.string	" \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-405504(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2992, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-408464(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	jmp	.L2
.L17:
	movl	$0, -408472(%rbp)
	jmp	.L3
.L4:
	movl	-408472(%rbp), %eax
	cltq
	movl	$0, -408464(%rbp,%rax,4)
	addl	$1, -408472(%rbp)
.L3:
	cmpl	$100, -408472(%rbp)
	jle	.L4
	movl	$0, -408472(%rbp)
	jmp	.L5
.L8:
	movl	$0, -408468(%rbp)
	jmp	.L6
.L7:
	leaq	-408048(%rbp), %rcx
	movl	-408468(%rbp), %eax
	movslq	%eax, %rsi
	movl	-408472(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-408468(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %ecx
	movl	-408468(%rbp), %eax
	movslq	%eax, %rsi
	movl	-408472(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-408048(%rbp,%rax,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-408468(%rbp), %eax
	cltq
	movl	%edx, -408464(%rbp,%rax,4)
	addl	$1, -408468(%rbp)
.L6:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408468(%rbp)
	jl	.L7
	addl	$1, -408472(%rbp)
.L5:
	movl	-408484(%rbp), %eax
	cmpl	%eax, -408472(%rbp)
	jl	.L8
	movl	$0, -408472(%rbp)
	jmp	.L9
.L13:
	movl	$0, -408476(%rbp)
	movl	$0, -408468(%rbp)
	jmp	.L10
.L12:
	movl	-408468(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %edx
	movl	-408476(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L11
	movl	-408468(%rbp), %eax
	movl	%eax, -408476(%rbp)
.L11:
	addl	$1, -408468(%rbp)
.L10:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408468(%rbp)
	jl	.L12
	movl	-408480(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -408472(%rbp)
	sete	%al
	movzbl	%al, %eax
	cltq
	leaq	.LC1(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	-408476(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-408476(%rbp), %eax
	cltq
	movl	$-1, -408464(%rbp,%rax,4)
	addl	$1, -408472(%rbp)
.L9:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408472(%rbp)
	jl	.L13
.L2:
	leaq	-408480(%rbp), %rdx
	leaq	-408484(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-408484(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-408480(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L14:
	movl	$1, %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC2:
	.string	"%d%c"
.LC3:
	.string	"%d %d"
.LC1:
	.string	" \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-405504(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2992, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-408464(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	jmp	.L2
.L17:
	movl	$0, -408472(%rbp)
	jmp	.L3
.L4:
	movl	-408472(%rbp), %eax
	cltq
	movl	$0, -408464(%rbp,%rax,4)
	addl	$1, -408472(%rbp)
.L3:
	cmpl	$100, -408472(%rbp)
	jle	.L4
	movl	$0, -408472(%rbp)
	jmp	.L5
.L8:
	movl	$0, -408468(%rbp)
	jmp	.L6
.L7:
	leaq	-408048(%rbp), %rcx
	movl	-408468(%rbp), %eax
	movslq	%eax, %rsi
	movl	-408472(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-408468(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %ecx
	movl	-408468(%rbp), %eax
	movslq	%eax, %rsi
	movl	-408472(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-408048(%rbp,%rax,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-408468(%rbp), %eax
	cltq
	movl	%edx, -408464(%rbp,%rax,4)
	addl	$1, -408468(%rbp)
.L6:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408468(%rbp)
	jl	.L7
	addl	$1, -408472(%rbp)
.L5:
	movl	-408484(%rbp), %eax
	cmpl	%eax, -408472(%rbp)
	jl	.L8
	movl	$0, -408472(%rbp)
	jmp	.L9
.L13:
	movl	$0, -408476(%rbp)
	movl	$0, -408468(%rbp)
	jmp	.L10
.L12:
	movl	-408468(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %edx
	movl	-408476(%rbp), %eax
	cltq
	movl	-408464(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L11
	movl	-408468(%rbp), %eax
	movl	%eax, -408476(%rbp)
.L11:
	addl	$1, -408468(%rbp)
.L10:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408468(%rbp)
	jl	.L12
	movl	-408480(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -408472(%rbp)
	sete	%al
	movzbl	%al, %eax
	cltq
	leaq	.LC1(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	-408476(%rbp), %edx
	leal	1(%rdx), %ecx
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-408476(%rbp), %eax
	cltq
	movl	$-1, -408464(%rbp,%rax,4)
	addl	$1, -408472(%rbp)
.L9:
	movl	-408480(%rbp), %eax
	cmpl	%eax, -408472(%rbp)
	jl	.L13
.L2:
	leaq	-408480(%rbp), %rdx
	leaq	-408484(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-408484(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-408480(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L14:
	movl	$1, %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
