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 i,j,l;
  int n;
  int u,k;

  //input
  scanf("%d",&n);
  int A[n][n];
  int B[n][n];
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(l=0;l<k;l++){
      scanf("%d",&B[i][l]);
    }
    for(j=0;j<n;j++){
      A[i][j]=0;
      for(l=0;l<k;l++){
	if(B[i][l]==j+1){
	  A[i][j]=1;
	}
      }
    }
  }  
  //output
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      if(j==n-1) printf("%d\n",A[i][j]);
      else printf("%d ",A[i][j]);
    }
  }  
   
     

  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$232, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -264(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %esi
	movl	-128(%rbp), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%esi, %rax
	salq	$2, %rax
	movq	%rax, -144(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-160(%rbp), %r8
	movq	-152(%rbp), %r9
	movq	%r9, %rdx
	movq	-176(%rbp), %r10
	movq	-168(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-128(%rbp), %esi
	movl	-128(%rbp), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%esi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	movq	%r11, %rdx
	movq	-208(%rbp), %r8
	movq	-200(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r8
	movq	-216(%rbp), %r9
	movq	%r9, %rdx
	movq	-240(%rbp), %r14
	movq	-232(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -116(%rbp)
	jmp	.L8
.L16:
	leaq	-120(%rbp), %rdx
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -108(%rbp)
	jmp	.L9
.L10:
	movq	%rbx, %rdx
	shrq	$2, %rdx
	movl	-108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-116(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L9:
	movl	-120(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L10
	movl	$0, -112(%rbp)
	jmp	.L11
.L15:
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	movl	$0, -108(%rbp)
	jmp	.L12
.L14:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	-112(%rbp), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jne	.L13
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$1, (%rax,%rdx,4)
.L13:
	addl	$1, -108(%rbp)
.L12:
	movl	-120(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L14
	addl	$1, -112(%rbp)
.L11:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L15
	addl	$1, -116(%rbp)
.L8:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L16
	movl	$0, -116(%rbp)
	jmp	.L17
.L22:
	movl	$0, -112(%rbp)
	jmp	.L18
.L21:
	movl	-128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -112(%rbp)
	jne	.L19
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L20
.L19:
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	addl	$1, -112(%rbp)
.L18:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L21
	addl	$1, -116(%rbp)
.L17:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	-264(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-68(%rbp), %rax
	movq	%rsp, %rsi
	leaq	0(,%rax,4), %rbx
	movq	%rax, %rcx
	imulq	%rax, %rax
	movq	%rbx, -96(%rbp)
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L3
.L50:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L50
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L51
.L4:
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rsi
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L51:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L52
.L7:
	movq	%rsp, %rbx
	testl	%ecx, %ecx
	jle	.L8
	movq	-96(%rbp), %rax
	movq	$0, -104(%rbp)
	movq	%r12, %r15
	movl	$0, -84(%rbp)
	shrq	$2, %rax
	movq	%r12, -152(%rbp)
	movq	%rax, -136(%rbp)
	leaq	-60(%rbp), %rax
	movq	%rax, -128(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -120(%rbp)
	leaq	4(%rbx), %rax
	movq	%rax, -144(%rbp)
	.p2align 4,,10
	.p2align 3
.L13:
	movq	-128(%rbp), %rdx
	movq	-120(%rbp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r8d
	testl	%r8d, %r8d
	jle	.L9
	movq	%rbx, %r14
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r8d
	addq	$4, %r14
	cmpl	%r12d, %r8d
	jg	.L10
.L9:
	movl	-68(%rbp), %ecx
	testl	%ecx, %ecx
	jle	.L8
	movl	%ecx, %edx
	xorl	%esi, %esi
	movq	%r15, %rdi
	movl	%r8d, -108(%rbp)
	salq	$2, %rdx
	movl	%ecx, -88(%rbp)
	call	memset@PLT
	movl	-108(%rbp), %r8d
	movl	-88(%rbp), %ecx
	movl	$1, %edx
	movq	-144(%rbp), %rsi
	leal	-1(%r8), %eax
	addq	-104(%rbp), %rax
	leal	1(%rcx), %edi
	leaq	(%rsi,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rax
	testl	%r8d, %r8d
	jle	.L18
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edx, (%rax)
	jne	.L17
	movl	$1, -4(%r15,%rdx,4)
.L17:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L14
.L18:
	addq	$1, %rdx
	cmpq	%rdi, %rdx
	jne	.L15
	movq	-96(%rbp), %rdi
	addl	$1, -84(%rbp)
	movl	-84(%rbp), %eax
	movq	-136(%rbp), %rsi
	addq	%rdi, %rbx
	addq	%rsi, -104(%rbp)
	addq	%rdi, %r15
	cmpl	%ecx, %eax
	jl	.L13
	movq	-152(%rbp), %r12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	leaq	.LC3(%rip), %rbx
	leaq	.LC2(%rip), %r13
	testl	%ecx, %ecx
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	subl	$1, %ecx
	movl	(%r12,%r15,4), %edx
	movq	%r13, %rsi
	cmpl	%r15d, %ecx
	je	.L48
	movq	%rbx, %rsi
.L48:
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__printf_chk@PLT
	movl	-68(%rbp), %ecx
	cmpl	%r15d, %ecx
	jg	.L19
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jge	.L8
	addq	-96(%rbp), %r12
	testl	%ecx, %ecx
	jle	.L8
	xorl	%r15d, %r15d
	jmp	.L19
.L8:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L53
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L52:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L53:
	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"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rsi
	pushq	%r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	leaq	.LC0(%rip), %r13
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-68(%rbp), %rax
	movq	%rsp, %rsi
	leaq	0(,%rax,4), %rbx
	movq	%rax, %rcx
	imulq	%rax, %rax
	movq	%rbx, -96(%rbp)
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L3
.L50:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L50
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L51
.L4:
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rsi
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L51:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L52
.L7:
	movq	%rsp, %rbx
	testl	%ecx, %ecx
	jle	.L8
	movq	-96(%rbp), %rax
	movq	$0, -104(%rbp)
	movq	%r12, %r15
	movl	$0, -84(%rbp)
	shrq	$2, %rax
	movq	%r12, -152(%rbp)
	movq	%rax, -136(%rbp)
	leaq	-60(%rbp), %rax
	movq	%rax, -128(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -120(%rbp)
	leaq	4(%rbx), %rax
	movq	%rax, -144(%rbp)
	.p2align 4,,10
	.p2align 3
.L13:
	movq	-128(%rbp), %rdx
	movq	-120(%rbp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r8d
	testl	%r8d, %r8d
	jle	.L9
	movq	%rbx, %r14
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r8d
	addq	$4, %r14
	cmpl	%r12d, %r8d
	jg	.L10
.L9:
	movl	-68(%rbp), %ecx
	testl	%ecx, %ecx
	jle	.L8
	movl	%ecx, %edx
	xorl	%esi, %esi
	movq	%r15, %rdi
	movl	%r8d, -108(%rbp)
	salq	$2, %rdx
	movl	%ecx, -88(%rbp)
	call	memset@PLT
	movl	-108(%rbp), %r8d
	movl	-88(%rbp), %ecx
	movl	$1, %edx
	movq	-144(%rbp), %rsi
	leal	-1(%r8), %eax
	addq	-104(%rbp), %rax
	leal	1(%rcx), %edi
	leaq	(%rsi,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rax
	testl	%r8d, %r8d
	jle	.L18
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%edx, (%rax)
	jne	.L17
	movl	$1, -4(%r15,%rdx,4)
.L17:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L14
.L18:
	addq	$1, %rdx
	cmpq	%rdi, %rdx
	jne	.L15
	movq	-96(%rbp), %rdi
	addl	$1, -84(%rbp)
	movl	-84(%rbp), %eax
	movq	-136(%rbp), %rsi
	addq	%rdi, %rbx
	addq	%rsi, -104(%rbp)
	addq	%rdi, %r15
	cmpl	%ecx, %eax
	jl	.L13
	movq	-152(%rbp), %r12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	leaq	.LC3(%rip), %rbx
	leaq	.LC2(%rip), %r13
	testl	%ecx, %ecx
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	subl	$1, %ecx
	movl	(%r12,%r15,4), %edx
	movq	%r13, %rsi
	cmpl	%r15d, %ecx
	je	.L48
	movq	%rbx, %rsi
.L48:
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__printf_chk@PLT
	movl	-68(%rbp), %ecx
	cmpl	%r15d, %ecx
	jg	.L19
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jge	.L8
	addq	-96(%rbp), %r12
	testl	%ecx, %ecx
	jle	.L8
	xorl	%r15d, %r15d
	jmp	.L19
.L8:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L53
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L52:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L53:
	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 i,j,l;
  int n;
  int u,k;

  //input
  scanf("%d",&n);
  int A[n][n];
  int B[n][n];
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(l=0;l<k;l++){
      scanf("%d",&B[i][l]);
    }
    for(j=0;j<n;j++){
      A[i][j]=0;
      for(l=0;l<k;l++){
	if(B[i][l]==j+1){
	  A[i][j]=1;
	}
      }
    }
  }  
  //output
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      if(j==n-1) printf("%d\n",A[i][j]);
      else printf("%d ",A[i][j]);
    }
  }  
   
     

  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 1 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 i,j,l;
  int n;
  int u,k;

  //input
  scanf("%d",&n);
  int A[n][n];
  int B[n][n];
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    for(l=0;l<k;l++){
      scanf("%d",&B[i][l]);
    }
    for(j=0;j<n;j++){
      A[i][j]=0;
      for(l=0;l<k;l++){
	if(B[i][l]==j+1){
	  A[i][j]=1;
	}
      }
    }
  }  
  //output
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      if(j==n-1) printf("%d\n",A[i][j]);
      else printf("%d ",A[i][j]);
    }
  }  
   
     

  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$232, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -264(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %esi
	movl	-128(%rbp), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%esi, %rax
	salq	$2, %rax
	movq	%rax, -144(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-160(%rbp), %r8
	movq	-152(%rbp), %r9
	movq	%r9, %rdx
	movq	-176(%rbp), %r10
	movq	-168(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-128(%rbp), %esi
	movl	-128(%rbp), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%esi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	movq	%r11, %rdx
	movq	-208(%rbp), %r8
	movq	-200(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r8
	movq	-216(%rbp), %r9
	movq	%r9, %rdx
	movq	-240(%rbp), %r14
	movq	-232(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -116(%rbp)
	jmp	.L8
.L16:
	leaq	-120(%rbp), %rdx
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -108(%rbp)
	jmp	.L9
.L10:
	movq	%rbx, %rdx
	shrq	$2, %rdx
	movl	-108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-116(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L9:
	movl	-120(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L10
	movl	$0, -112(%rbp)
	jmp	.L11
.L15:
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	movl	$0, -108(%rbp)
	jmp	.L12
.L14:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	-112(%rbp), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jne	.L13
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$1, (%rax,%rdx,4)
.L13:
	addl	$1, -108(%rbp)
.L12:
	movl	-120(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L14
	addl	$1, -112(%rbp)
.L11:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L15
	addl	$1, -116(%rbp)
.L8:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L16
	movl	$0, -116(%rbp)
	jmp	.L17
.L22:
	movl	$0, -112(%rbp)
	jmp	.L18
.L21:
	movl	-128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -112(%rbp)
	jne	.L19
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L20
.L19:
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	addl	$1, -112(%rbp)
.L18:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L21
	addl	$1, -116(%rbp)
.L17:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	-264(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d\n"
.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$232, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -264(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %esi
	movl	-128(%rbp), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%esi, %rax
	salq	$2, %rax
	movq	%rax, -144(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-160(%rbp), %r8
	movq	-152(%rbp), %r9
	movq	%r9, %rdx
	movq	-176(%rbp), %r10
	movq	-168(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-128(%rbp), %esi
	movl	-128(%rbp), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%esi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	movq	%r11, %rdx
	movq	-208(%rbp), %r8
	movq	-200(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r8
	movq	-216(%rbp), %r9
	movq	%r9, %rdx
	movq	-240(%rbp), %r14
	movq	-232(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -116(%rbp)
	jmp	.L8
.L16:
	leaq	-120(%rbp), %rdx
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -108(%rbp)
	jmp	.L9
.L10:
	movq	%rbx, %rdx
	shrq	$2, %rdx
	movl	-108(%rbp), %eax
	movslq	%eax, %rcx
	movl	-116(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L9:
	movl	-120(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L10
	movl	$0, -112(%rbp)
	jmp	.L11
.L15:
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	movl	$0, -108(%rbp)
	jmp	.L12
.L14:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	-112(%rbp), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jne	.L13
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$1, (%rax,%rdx,4)
.L13:
	addl	$1, -108(%rbp)
.L12:
	movl	-120(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L14
	addl	$1, -112(%rbp)
.L11:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L15
	addl	$1, -116(%rbp)
.L8:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L16
	movl	$0, -116(%rbp)
	jmp	.L17
.L22:
	movl	$0, -112(%rbp)
	jmp	.L18
.L21:
	movl	-128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -112(%rbp)
	jne	.L19
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L20
.L19:
	movq	-144(%rbp), %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	addl	$1, -112(%rbp)
.L18:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L21
	addl	$1, -116(%rbp)
.L17:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	-264(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
