Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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.
Optimized Assembly Code:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```