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 Map[101][101];
    int N, u, k, temp;
    scanf("%d\n",&N);
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++)
            Map[ix][jx] = 0;
    for (int ix = 0; ix < N; ix++){
        scanf("%d %d",&u,&k);
        for (int kx = 0; kx < k; kx++){
            scanf("%d",&temp);
            Map[u-1][temp-1] = 1;
        }
    }
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++){
            if (jx == N-1) printf("%d\n",Map[ix][jx]);
            else printf("%d ",Map[ix][jx]);
        }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d "
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4000, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40856(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40840(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40836(%rbp)
	jmp	.L3
.L4:
	movl	-40836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40840(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -40816(%rbp,%rax,4)
	addl	$1, -40836(%rbp)
.L3:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L4
	addl	$1, -40840(%rbp)
.L2:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40840(%rbp)
	jl	.L5
	movl	$0, -40832(%rbp)
	jmp	.L6
.L9:
	leaq	-40848(%rbp), %rdx
	leaq	-40852(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40828(%rbp)
	jmp	.L7
.L8:
	leaq	-40844(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40852(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-40844(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -40816(%rbp,%rax,4)
	addl	$1, -40828(%rbp)
.L7:
	movl	-40848(%rbp), %eax
	cmpl	%eax, -40828(%rbp)
	jl	.L8
	addl	$1, -40832(%rbp)
.L6:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40832(%rbp)
	jl	.L9
	movl	$0, -40824(%rbp)
	jmp	.L10
.L15:
	movl	$0, -40820(%rbp)
	jmp	.L11
.L14:
	movl	-40856(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40820(%rbp)
	jne	.L12
	movl	-40820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L12:
	movl	-40820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -40820(%rbp)
.L11:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L14
	addl	$1, -40824(%rbp)
.L10:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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\n"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%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	$3992, %rsp
	.cfi_def_cfa_offset 40912
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 40840(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %edx
	leaq	32(%rsp), %rbx
	imulq	$404, %rdx, %rdx
	leaq	0(,%rax,4), %rbp
	movq	%rbx, %rcx
	leaq	436(%rsp,%rdx), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rdi
	movq	%rbp, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$404, %rcx
	cmpq	%r12, %rcx
	jne	.L3
	leaq	24(%rsp), %rax
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %r12
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %rdi
	leaq	28(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	20(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rax,%rsi,4), %rax
	addq	%rdx, %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r15d, 24(%rsp)
	jg	.L4
.L7:
	movl	16(%rsp), %eax
	addl	$1, %r13d
	cmpl	%r13d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$1, %eax
	movl	(%rbx,%r13,4), %edx
	movq	%r14, %rsi
	cmpl	%r13d, %eax
	je	.L25
	movq	%rbp, %rsi
.L25:
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__printf_chk@PLT
	movl	16(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L8
	addl	$1, %r12d
	cmpl	%eax, %r12d
	jge	.L2
	addq	$404, %rbx
	testl	%eax, %eax
	jle	.L2
	xorl	%r13d, %r13d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$40856, %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
.L27:
	.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\n"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%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	$3992, %rsp
	.cfi_def_cfa_offset 40912
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 40840(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %edx
	leaq	32(%rsp), %rbx
	imulq	$404, %rdx, %rdx
	leaq	0(,%rax,4), %rbp
	movq	%rbx, %rcx
	leaq	436(%rsp,%rdx), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rcx, %rdi
	movq	%rbp, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$404, %rcx
	cmpq	%r12, %rcx
	jne	.L3
	leaq	24(%rsp), %rax
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %r12
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %rdi
	leaq	28(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	20(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rax,%rsi,4), %rax
	addq	%rdx, %rax
	movl	$1, 32(%rsp,%rax,4)
	cmpl	%r15d, 24(%rsp)
	jg	.L4
.L7:
	movl	16(%rsp), %eax
	addl	$1, %r13d
	cmpl	%r13d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$1, %eax
	movl	(%rbx,%r13,4), %edx
	movq	%r14, %rsi
	cmpl	%r13d, %eax
	je	.L25
	movq	%rbp, %rsi
.L25:
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__printf_chk@PLT
	movl	16(%rsp), %eax
	cmpl	%r13d, %eax
	jg	.L8
	addl	$1, %r12d
	cmpl	%eax, %r12d
	jge	.L2
	addq	$404, %rbx
	testl	%eax, %eax
	jle	.L2
	xorl	%r13d, %r13d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movq	40840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$40856, %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
.L27:
	.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 Map[101][101];
    int N, u, k, temp;
    scanf("%d\n",&N);
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++)
            Map[ix][jx] = 0;
    for (int ix = 0; ix < N; ix++){
        scanf("%d %d",&u,&k);
        for (int kx = 0; kx < k; kx++){
            scanf("%d",&temp);
            Map[u-1][temp-1] = 1;
        }
    }
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++){
            if (jx == N-1) printf("%d\n",Map[ix][jx]);
            else printf("%d ",Map[ix][jx]);
        }
    return 0;
}

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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(){
    int Map[101][101];
    int N, u, k, temp;
    scanf("%d\n",&N);
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++)
            Map[ix][jx] = 0;
    for (int ix = 0; ix < N; ix++){
        scanf("%d %d",&u,&k);
        for (int kx = 0; kx < k; kx++){
            scanf("%d",&temp);
            Map[u-1][temp-1] = 1;
        }
    }
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++){
            if (jx == N-1) printf("%d\n",Map[ix][jx]);
            else printf("%d ",Map[ix][jx]);
        }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d "
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4000, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40856(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40840(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40836(%rbp)
	jmp	.L3
.L4:
	movl	-40836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40840(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -40816(%rbp,%rax,4)
	addl	$1, -40836(%rbp)
.L3:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L4
	addl	$1, -40840(%rbp)
.L2:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40840(%rbp)
	jl	.L5
	movl	$0, -40832(%rbp)
	jmp	.L6
.L9:
	leaq	-40848(%rbp), %rdx
	leaq	-40852(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40828(%rbp)
	jmp	.L7
.L8:
	leaq	-40844(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40852(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-40844(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -40816(%rbp,%rax,4)
	addl	$1, -40828(%rbp)
.L7:
	movl	-40848(%rbp), %eax
	cmpl	%eax, -40828(%rbp)
	jl	.L8
	addl	$1, -40832(%rbp)
.L6:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40832(%rbp)
	jl	.L9
	movl	$0, -40824(%rbp)
	jmp	.L10
.L15:
	movl	$0, -40820(%rbp)
	jmp	.L11
.L14:
	movl	-40856(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40820(%rbp)
	jne	.L12
	movl	-40820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L12:
	movl	-40820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -40820(%rbp)
.L11:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L14
	addl	$1, -40824(%rbp)
.L10:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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\n"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d "
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4000, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40856(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40840(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40836(%rbp)
	jmp	.L3
.L4:
	movl	-40836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40840(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -40816(%rbp,%rax,4)
	addl	$1, -40836(%rbp)
.L3:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40836(%rbp)
	jl	.L4
	addl	$1, -40840(%rbp)
.L2:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40840(%rbp)
	jl	.L5
	movl	$0, -40832(%rbp)
	jmp	.L6
.L9:
	leaq	-40848(%rbp), %rdx
	leaq	-40852(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40828(%rbp)
	jmp	.L7
.L8:
	leaq	-40844(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40852(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-40844(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -40816(%rbp,%rax,4)
	addl	$1, -40828(%rbp)
.L7:
	movl	-40848(%rbp), %eax
	cmpl	%eax, -40828(%rbp)
	jl	.L8
	addl	$1, -40832(%rbp)
.L6:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40832(%rbp)
	jl	.L9
	movl	$0, -40824(%rbp)
	jmp	.L10
.L15:
	movl	$0, -40820(%rbp)
	jmp	.L11
.L14:
	movl	-40856(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40820(%rbp)
	jne	.L12
	movl	-40820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L13
.L12:
	movl	-40820(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -40820(%rbp)
.L11:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L14
	addl	$1, -40824(%rbp)
.L10:
	movl	-40856(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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:
