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>
#define NUM 100

int main(){
  int m[NUM+1][NUM+1],n,i,j,k,u,a;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      m[i][j]=0;
    }
  }
  
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(j=0;j<k;j++){
      scanf("%d",&a);
      m[u][a]=1;
    }
  }

  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      printf("%d",m[i][j]);
      if(j+1<=n){
	printf(" ");
      }
    }
    printf("\n");
  }
  
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
	.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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %edx
	leaq	424(%rsp), %rcx
	imulq	$404, %rdx, %rdx
	leaq	0(,%rax,4), %rbx
	leaq	828(%rsp,%rdx), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rdi
	movq	%rbx, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$404, %rcx
	cmpq	%r12, %rcx
	jne	.L3
	xorl	%r12d, %r12d
	leaq	4(%rsp), %r15
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rsi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rsi, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r13d, 4(%rsp)
	jg	.L4
.L7:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	420(%rsp), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	cmpl	%ebx, %eax
	jg	.L22
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L12
.L11:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$404, %r12
	call	putchar@PLT
	cmpl	%r13d, (%rsp)
	jge	.L8
.L2:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$40840, %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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movl	$32, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, (%rsp)
	jge	.L12
	jmp	.L11
.L23:
	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"
.LC1:
	.string	"%d%d"
	.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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %edx
	leaq	424(%rsp), %rcx
	imulq	$404, %rdx, %rdx
	leaq	0(,%rax,4), %rbx
	leaq	828(%rsp,%rdx), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rdi
	movq	%rbx, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$404, %rcx
	cmpq	%r12, %rcx
	jne	.L3
	xorl	%r12d, %r12d
	leaq	4(%rsp), %r15
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rsi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rsi, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r13d, 4(%rsp)
	jg	.L4
.L7:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	420(%rsp), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	cmpl	%ebx, %eax
	jg	.L22
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L12
.L11:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$404, %r12
	call	putchar@PLT
	cmpl	%r13d, (%rsp)
	jge	.L8
.L2:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$40840, %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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movl	$32, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, (%rsp)
	jge	.L12
	jmp	.L11
.L23:
	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"
.LC1:
	.string	"%d%d"
	.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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %edx
	leaq	424(%rsp), %rcx
	imulq	$404, %rdx, %rdx
	leaq	0(,%rax,4), %rbx
	leaq	828(%rsp,%rdx), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rdi
	movq	%rbx, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$404, %rcx
	cmpq	%r12, %rcx
	jne	.L3
	xorl	%r12d, %r12d
	leaq	4(%rsp), %r15
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rsi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rsi, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r13d, 4(%rsp)
	jg	.L4
.L7:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	420(%rsp), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	cmpl	%ebx, %eax
	jg	.L22
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L12
.L11:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$404, %r12
	call	putchar@PLT
	cmpl	%r13d, (%rsp)
	jge	.L8
.L2:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$40840, %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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movl	$32, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, (%rsp)
	jge	.L12
	jmp	.L11
.L23:
	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>
#define NUM 100

int main(){
  int m[NUM+1][NUM+1],n,i,j,k,u,a;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      m[i][j]=0;
    }
  }
  
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(j=0;j<k;j++){
      scanf("%d",&a);
      m[u][a]=1;
    }
  }

  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      printf("%d",m[i][j]);
      if(j+1<=n){
	printf(" ");
      }
    }
    printf("\n");
  }
  
  return 0;
}

```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#define NUM 100

int main(){
  int m[NUM+1][NUM+1],n,i,j,k,u,a;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      m[i][j]=0;
    }
  }
  
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(j=0;j<k;j++){
      scanf("%d",&a);
      m[u][a]=1;
    }
  }

  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      printf("%d",m[i][j]);
      if(j+1<=n){
	printf(" ");
      }
    }
    printf("\n");
  }
  
  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
1 2 2 4
2 1 1
3 0
4 1 3
 4
1 2 0 4
2 1 1
3 0
4 1 3
 4
1 2 1 4
2 1 1
3 0
4 1 3
 4
1 2 2 4
2 1 4
3 -1
4 1 3
 4
1 2 1 4
2 1 2
3 0
4 1 3
 4
1 2 1 4
2 1 4
1 -1
4 1 3
 4
1 2 2 4
2 1 4
3 -1
4 1 1
 4
1 2 0 4
2 1 2
3 0
4 1 3
 4
1 2 0 4
2 1 4
3 0
0 1 3
 4
1 2 0 4
2 1 3
3 0
4 1 3

0 1 0 1
1 0 0 0
0 0 0 0
0 0 1 0
 0 0 0 1
1 0 0 0
0 0 0 0
0 0 1 0
 1 0 0 1
1 0 0 0
0 0 0 0
0 0 1 0
 0 1 0 1
0 0 0 1
0 0 0 0
0 0 1 0
 1 0 0 1
0 1 0 0
0 0 0 0
0 0 1 0
 1 0 0 1
0 0 0 1
0 0 0 0
0 0 1 0
 0 1 0 1
0 0 0 1
0 0 0 0
1 0 0 0
 0 0 0 1
0 1 0 0
0 0 0 0
0 0 1 0
 0 0 0 1
0 0 0 1
0 0 0 0
0 0 0 0
 0 0 0 1
0 0 1 0
0 0 0 0
0 0 1 0

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>
#define NUM 100

int main(){
  int m[NUM+1][NUM+1],n,i,j,k,u,a;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      m[i][j]=0;
    }
  }
  
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(j=0;j<k;j++){
      scanf("%d",&a);
      m[u][a]=1;
    }
  }

  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      printf("%d",m[i][j]);
      if(j+1<=n){
	printf(" ");
      }
    }
    printf("\n");
  }
  
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
	.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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %edx
	leaq	424(%rsp), %rcx
	imulq	$404, %rdx, %rdx
	leaq	0(,%rax,4), %rbx
	leaq	828(%rsp,%rdx), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rdi
	movq	%rbx, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$404, %rcx
	cmpq	%r12, %rcx
	jne	.L3
	xorl	%r12d, %r12d
	leaq	4(%rsp), %r15
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rsi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rsi, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r13d, 4(%rsp)
	jg	.L4
.L7:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	420(%rsp), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	cmpl	%ebx, %eax
	jg	.L22
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L12
.L11:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$404, %r12
	call	putchar@PLT
	cmpl	%r13d, (%rsp)
	jge	.L8
.L2:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$40840, %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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movl	$32, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, (%rsp)
	jge	.L12
	jmp	.L11
.L23:
	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"
.LC1:
	.string	"%d%d"
	.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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %edx
	leaq	424(%rsp), %rcx
	imulq	$404, %rdx, %rdx
	leaq	0(,%rax,4), %rbx
	leaq	828(%rsp,%rdx), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rdi
	movq	%rbx, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$404, %rcx
	cmpq	%r12, %rcx
	jne	.L3
	xorl	%r12d, %r12d
	leaq	4(%rsp), %r15
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movslq	12(%rsp), %rsi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	%rsi, %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r13d, 4(%rsp)
	jg	.L4
.L7:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	leaq	420(%rsp), %r12
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rsp), %eax
	cmpl	%ebx, %eax
	jg	.L22
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L12
.L11:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$404, %r12
	call	putchar@PLT
	cmpl	%r13d, (%rsp)
	jge	.L8
.L2:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$40840, %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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movl	$32, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, (%rsp)
	jge	.L12
	jmp	.L11
.L23:
	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:
```