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 col[9][9],row[9][9],sq[9][9],n,i,pz[9][9],j,k;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    for(j=0;j<9;j++){
      col[j][0]=row[j][0]=sq[j][0]=0;
      scanf("%d",&(pz[j][0]));
      for(k=1;k<9;k++){
	col[j][k]=row[j][k]=sq[j][k]=0;
	scanf(" %d",&(pz[j][k]));
      }
    }
    for(j=0;j<9;j++){
      for(k=0;k<9;k++){
	col[j][pz[j][k]-1]++;
	row[j][pz[k][j]-1]++;
	sq[j][pz[(j/3)*3+k/3][(j%3)*3+k%3]-1]++;
      }
    }
    for(j=0;j<9;j++){
      for(k=0;k<9;k++)
	printf("%c%d",(col[j][pz[j][k]-1]!=1
	       ||row[k][pz[j][k]-1]!=1
	       ||sq[(j/3)*3+k/3][pz[j][k]-1]!=1)
	  ?'*':' ',pz[j][k]);
      printf("\n");
    }
    if(i+1!=n) printf("\n");
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
.LC2:
	.string	"%c%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
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1360(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1356(%rbp)
	jmp	.L2
.L19:
	movl	$0, -1352(%rbp)
	jmp	.L3
.L6:
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$672, %rax
	movl	$0, (%rax)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$672, %rax
	movl	(%rax), %edx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1008, %rax
	movl	%edx, (%rax)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1008, %rax
	movl	(%rax), %edx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1344, %rax
	movl	%edx, (%rax)
	leaq	-336(%rbp), %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %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	$1, -1348(%rbp)
	jmp	.L4
.L5:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -672(%rbp,%rax,4)
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-672(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -1008(%rbp,%rax,4)
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1008(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -1344(%rbp,%rax,4)
	leaq	-336(%rbp), %rcx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1348(%rbp)
.L4:
	cmpl	$8, -1348(%rbp)
	jle	.L5
	addl	$1, -1352(%rbp)
.L3:
	cmpl	$8, -1352(%rbp)
	jle	.L6
	movl	$0, -1352(%rbp)
	jmp	.L7
.L10:
	movl	$0, -1348(%rbp)
	jmp	.L8
.L9:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1344(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1344(%rbp,%rax,4)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1008(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1008(%rbp,%rax,4)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	leal	(%rax,%rdx), %ecx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	leal	(%rcx,%rax), %esi
	movl	-1352(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	addl	%edx, %edx
	leal	(%rdx,%rax), %edi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %r8d
	sarl	$31, %r8d
	movl	%edx, %ecx
	subl	%r8d, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	leal	(%rdi,%rcx), %eax
	movslq	%eax, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-672(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -672(%rbp,%rax,4)
	addl	$1, -1348(%rbp)
.L8:
	cmpl	$8, -1348(%rbp)
	jle	.L9
	addl	$1, -1352(%rbp)
.L7:
	cmpl	$8, -1352(%rbp)
	jle	.L10
	movl	$0, -1352(%rbp)
	jmp	.L11
.L17:
	movl	$0, -1348(%rbp)
	jmp	.L12
.L16:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1344(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1008(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	imulq	$1431655766, %rcx, %rcx
	shrq	$32, %rcx
	sarl	$31, %eax
	subl	%eax, %ecx
	movl	%ecx, %eax
	addl	%eax, %eax
	leal	(%rax,%rcx), %esi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	imulq	$1431655766, %rcx, %rcx
	shrq	$32, %rcx
	sarl	$31, %eax
	movl	%eax, %edi
	movl	%ecx, %eax
	subl	%edi, %eax
	addl	%eax, %esi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	movl	-672(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L14
.L13:
	movl	$42, %eax
	jmp	.L15
.L14:
	movl	$32, %eax
.L15:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1348(%rbp)
.L12:
	cmpl	$8, -1348(%rbp)
	jle	.L16
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -1352(%rbp)
.L11:
	cmpl	$8, -1352(%rbp)
	jle	.L17
	movl	-1356(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1360(%rbp), %eax
	cmpl	%eax, %edx
	je	.L18
	movl	$10, %edi
	call	putchar@PLT
.L18:
	addl	$1, -1356(%rbp)
.L2:
	movl	-1360(%rbp), %eax
	cmpl	%eax, -1356(%rbp)
	jl	.L19
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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"
.LC1:
	.string	" %d"
.LC2:
	.string	"%c%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
	leaq	.LC0(%rip), %rdi
	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
	subq	$1448, %rsp
	.cfi_def_cfa_offset 1504
	movq	%fs:40, %rax
	movq	%rax, 1432(%rsp)
	xorl	%eax, %eax
	leaq	92(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	92(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	leaq	1104(%rsp), %rax
	movl	$0, 52(%rsp)
	leaq	96(%rsp), %r14
	movq	%rax, 56(%rsp)
	leaq	1428(%rsp), %rax
	leaq	.LC1(%rip), %r15
	movq	%r14, %r13
	movq	%rax, 40(%rsp)
	leaq	768(%rsp), %rax
	leaq	.LC2(%rip), %r12
	movq	%rax, 72(%rsp)
	leaq	432(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	56(%rsp), %rax
	movq	72(%rsp), %rbp
	movq	$36, 8(%rsp)
	movq	$0, 32(%rsp)
	movq	%rax, 24(%rsp)
	movq	%rax, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	32(%rsp), %rbx
	movq	16(%rsp), %rax
	leaq	.LC0(%rip), %rdi
	movq	24(%rsp), %r14
	movl	$0, (%rax,%rbx)
	xorl	%eax, %eax
	movl	$0, 0(%rbp,%rbx)
	movq	%r14, %rsi
	movl	$0, 0(%r13,%rbx)
	call	__isoc99_scanf@PLT
	movq	%rbx, %rax
	leaq	4(%rbx), %rbx
	subq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L3:
	movq	16(%rsp), %rax
	movl	$0, 0(%rbp,%rbx)
	leaq	(%r14,%rbx), %rsi
	movq	%r15, %rdi
	movl	$0, 0(%r13,%rbx)
	movl	$0, (%rax,%rbx)
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, 8(%rsp)
	jne	.L3
	addq	$36, 24(%rsp)
	movq	24(%rsp), %rax
	addq	$36, 32(%rsp)
	addq	$36, 8(%rsp)
	cmpq	%rax, 40(%rsp)
	jne	.L4
	movq	56(%rsp), %rdx
	movq	64(%rsp), %r14
	xorl	%ebx, %ebx
	movq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rdx), %eax
	movl	(%rcx), %edi
	movl	4(%rdx), %r9d
	leal	-1(%rax), %esi
	movslq	%ebx, %rax
	leaq	(%rax,%rax,8), %rax
	movslq	%esi, %rsi
	addq	%rax, %rsi
	addl	$1, 96(%rsp,%rsi,4)
	leal	-1(%rdi), %esi
	movl	$2863311531, %edi
	movslq	%esi, %rsi
	addq	%rax, %rsi
	addl	$1, 432(%rsp,%rsi,4)
	movl	%ebx, %esi
	imulq	%rdi, %rsi
	shrq	$33, %rsi
	leal	(%rsi,%rsi,2), %edi
	movl	%ebx, %esi
	subl	%edi, %esi
	movslq	%edi, %r8
	leal	(%rsi,%rsi,2), %esi
	leaq	(%r8,%r8,8), %r11
	movslq	%esi, %r10
	leaq	(%r11,%r10), %r8
	movl	1104(%rsp,%r8,4), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	leal	-1(%r9), %r8d
	movl	36(%rcx), %r9d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	leal	-1(%r9), %r8d
	leal	1(%rsi), %r9d
	addl	$2, %esi
	movslq	%r8d, %r8
	movslq	%r9d, %r9
	movslq	%esi, %rsi
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	leaq	(%r11,%r9), %r8
	addq	%rsi, %r11
	movl	1104(%rsp,%r8,4), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	movl	8(%rdx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	movl	72(%rcx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	movl	1104(%rsp,%r11,4), %r8d
	movl	12(%rdx), %r11d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	leal	-1(%r11), %r8d
	movl	108(%rcx), %r11d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	leal	-1(%r11), %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	leal	1(%rdi), %r8d
	movslq	%r8d, %r8
	leaq	(%r8,%r8,8), %r11
	leaq	(%r11,%r10), %r8
	movl	1104(%rsp,%r8,4), %r8d
	subl	$1, %r8d
	addl	$2, %edi
	movslq	%r8d, %r8
	movslq	%edi, %rdi
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	movl	16(%rdx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	movl	144(%rcx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	leaq	(%r11,%r9), %r8
	addq	%rsi, %r11
	movl	1104(%rsp,%r8,4), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	movl	20(%rdx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	movl	180(%rcx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	movl	1104(%rsp,%r11,4), %r8d
	movl	24(%rdx), %r11d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	leal	-1(%r11), %r8d
	movl	216(%rcx), %r11d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	leal	-1(%r11), %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	leaq	(%rdi,%rdi,8), %r8
	addq	%r8, %r10
	movl	1104(%rsp,%r10,4), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addl	$1, 768(%rsp,%rdi,4)
	movl	28(%rdx), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addq	%r8, %r9
	addq	%rsi, %r8
	addl	$1, %ebx
	addl	$1, 96(%rsp,%rdi,4)
	movl	252(%rcx), %edi
	addq	$36, %rdx
	addq	$4, %rcx
	movl	1104(%rsp,%r8,4), %esi
	subl	$1, %edi
	movslq	%edi, %rdi
	subl	$1, %esi
	addq	%rax, %rdi
	movslq	%esi, %rsi
	addl	$1, 432(%rsp,%rdi,4)
	movl	1104(%rsp,%r9,4), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addl	$1, 768(%rsp,%rdi,4)
	movl	-4(%rdx), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addl	$1, 96(%rsp,%rdi,4)
	movl	284(%rcx), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addq	%rsi, %rax
	addl	$1, 432(%rsp,%rdi,4)
	addl	$1, 768(%rsp,%rax,4)
	cmpl	$9, %ebx
	jne	.L5
	movq	%r13, 24(%rsp)
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%ebp, %eax
	movl	$2863311531, %edx
	xorl	%r13d, %r13d
	imulq	%rdx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 8(%rsp)
	movslq	%ebp, %rax
	leaq	(%rax,%rax,8), %rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$1, %r13
	cmpq	$9, %r13
	je	.L24
.L8:
	movl	(%r14,%r13,4), %ecx
	movl	%r13d, %edx
	movl	$42, %r8d
	leal	-1(%rcx), %eax
	cltq
	leaq	(%rbx,%rax), %rsi
	cmpl	$1, 96(%rsp,%rsi,4)
	jne	.L7
	movslq	%r13d, %rsi
	leaq	(%rsi,%rsi,8), %rsi
	addq	%rax, %rsi
	cmpl	$1, 432(%rsp,%rsi,4)
	jne	.L7
	movl	$2863311531, %edi
	movl	$32, %r8d
	imulq	%rdi, %rdx
	shrq	$33, %rdx
	addl	8(%rsp), %edx
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,8), %rdx
	addq	%rdx, %rax
	cmpl	$1, 768(%rsp,%rax,4)
	movl	$42, %eax
	cmovne	%eax, %r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$10, %edi
	addl	$1, %ebp
	addq	$36, %r14
	call	putchar@PLT
	cmpl	$9, %ebp
	jne	.L6
	addl	$1, 52(%rsp)
	movq	24(%rsp), %r13
	movl	52(%rsp), %ebx
	cmpl	92(%rsp), %ebx
	jne	.L25
.L10:
	movq	1432(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$1448, %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
	movl	$10, %edi
	call	putchar@PLT
	cmpl	92(%rsp), %ebx
	jl	.L2
	jmp	.L10
.L26:
	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"
.LC2:
	.string	"%c%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
	leaq	.LC0(%rip), %rdi
	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
	subq	$1448, %rsp
	.cfi_def_cfa_offset 1504
	movq	%fs:40, %rax
	movq	%rax, 1432(%rsp)
	xorl	%eax, %eax
	leaq	92(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	92(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	leaq	1104(%rsp), %rax
	movl	$0, 52(%rsp)
	leaq	96(%rsp), %r14
	movq	%rax, 56(%rsp)
	leaq	1428(%rsp), %rax
	leaq	.LC1(%rip), %r15
	movq	%r14, %r13
	movq	%rax, 40(%rsp)
	leaq	768(%rsp), %rax
	leaq	.LC2(%rip), %r12
	movq	%rax, 72(%rsp)
	leaq	432(%rsp), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	56(%rsp), %rax
	movq	72(%rsp), %rbp
	movq	$36, 8(%rsp)
	movq	$0, 32(%rsp)
	movq	%rax, 24(%rsp)
	movq	%rax, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	32(%rsp), %rbx
	movq	16(%rsp), %rax
	leaq	.LC0(%rip), %rdi
	movq	24(%rsp), %r14
	movl	$0, (%rax,%rbx)
	xorl	%eax, %eax
	movl	$0, 0(%rbp,%rbx)
	movq	%r14, %rsi
	movl	$0, 0(%r13,%rbx)
	call	__isoc99_scanf@PLT
	movq	%rbx, %rax
	leaq	4(%rbx), %rbx
	subq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L3:
	movq	16(%rsp), %rax
	movl	$0, 0(%rbp,%rbx)
	leaq	(%r14,%rbx), %rsi
	movq	%r15, %rdi
	movl	$0, 0(%r13,%rbx)
	movl	$0, (%rax,%rbx)
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, 8(%rsp)
	jne	.L3
	addq	$36, 24(%rsp)
	movq	24(%rsp), %rax
	addq	$36, 32(%rsp)
	addq	$36, 8(%rsp)
	cmpq	%rax, 40(%rsp)
	jne	.L4
	movq	56(%rsp), %rdx
	movq	64(%rsp), %r14
	xorl	%ebx, %ebx
	movq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rdx), %eax
	movl	(%rcx), %edi
	movl	4(%rdx), %r9d
	leal	-1(%rax), %esi
	movslq	%ebx, %rax
	leaq	(%rax,%rax,8), %rax
	movslq	%esi, %rsi
	addq	%rax, %rsi
	addl	$1, 96(%rsp,%rsi,4)
	leal	-1(%rdi), %esi
	movl	$2863311531, %edi
	movslq	%esi, %rsi
	addq	%rax, %rsi
	addl	$1, 432(%rsp,%rsi,4)
	movl	%ebx, %esi
	imulq	%rdi, %rsi
	shrq	$33, %rsi
	leal	(%rsi,%rsi,2), %edi
	movl	%ebx, %esi
	subl	%edi, %esi
	movslq	%edi, %r8
	leal	(%rsi,%rsi,2), %esi
	leaq	(%r8,%r8,8), %r11
	movslq	%esi, %r10
	leaq	(%r11,%r10), %r8
	movl	1104(%rsp,%r8,4), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	leal	-1(%r9), %r8d
	movl	36(%rcx), %r9d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	leal	-1(%r9), %r8d
	leal	1(%rsi), %r9d
	addl	$2, %esi
	movslq	%r8d, %r8
	movslq	%r9d, %r9
	movslq	%esi, %rsi
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	leaq	(%r11,%r9), %r8
	addq	%rsi, %r11
	movl	1104(%rsp,%r8,4), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	movl	8(%rdx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	movl	72(%rcx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	movl	1104(%rsp,%r11,4), %r8d
	movl	12(%rdx), %r11d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	leal	-1(%r11), %r8d
	movl	108(%rcx), %r11d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	leal	-1(%r11), %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	leal	1(%rdi), %r8d
	movslq	%r8d, %r8
	leaq	(%r8,%r8,8), %r11
	leaq	(%r11,%r10), %r8
	movl	1104(%rsp,%r8,4), %r8d
	subl	$1, %r8d
	addl	$2, %edi
	movslq	%r8d, %r8
	movslq	%edi, %rdi
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	movl	16(%rdx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	movl	144(%rcx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	leaq	(%r11,%r9), %r8
	addq	%rsi, %r11
	movl	1104(%rsp,%r8,4), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	movl	20(%rdx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	movl	180(%rcx), %r8d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	movl	1104(%rsp,%r11,4), %r8d
	movl	24(%rdx), %r11d
	subl	$1, %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 768(%rsp,%r8,4)
	leal	-1(%r11), %r8d
	movl	216(%rcx), %r11d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 96(%rsp,%r8,4)
	leal	-1(%r11), %r8d
	movslq	%r8d, %r8
	addq	%rax, %r8
	addl	$1, 432(%rsp,%r8,4)
	leaq	(%rdi,%rdi,8), %r8
	addq	%r8, %r10
	movl	1104(%rsp,%r10,4), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addl	$1, 768(%rsp,%rdi,4)
	movl	28(%rdx), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addq	%r8, %r9
	addq	%rsi, %r8
	addl	$1, %ebx
	addl	$1, 96(%rsp,%rdi,4)
	movl	252(%rcx), %edi
	addq	$36, %rdx
	addq	$4, %rcx
	movl	1104(%rsp,%r8,4), %esi
	subl	$1, %edi
	movslq	%edi, %rdi
	subl	$1, %esi
	addq	%rax, %rdi
	movslq	%esi, %rsi
	addl	$1, 432(%rsp,%rdi,4)
	movl	1104(%rsp,%r9,4), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addl	$1, 768(%rsp,%rdi,4)
	movl	-4(%rdx), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addl	$1, 96(%rsp,%rdi,4)
	movl	284(%rcx), %edi
	subl	$1, %edi
	movslq	%edi, %rdi
	addq	%rax, %rdi
	addq	%rsi, %rax
	addl	$1, 432(%rsp,%rdi,4)
	addl	$1, 768(%rsp,%rax,4)
	cmpl	$9, %ebx
	jne	.L5
	movq	%r13, 24(%rsp)
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%ebp, %eax
	movl	$2863311531, %edx
	xorl	%r13d, %r13d
	imulq	%rdx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 8(%rsp)
	movslq	%ebp, %rax
	leaq	(%rax,%rax,8), %rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$1, %r13
	cmpq	$9, %r13
	je	.L24
.L8:
	movl	(%r14,%r13,4), %ecx
	movl	%r13d, %edx
	movl	$42, %r8d
	leal	-1(%rcx), %eax
	cltq
	leaq	(%rbx,%rax), %rsi
	cmpl	$1, 96(%rsp,%rsi,4)
	jne	.L7
	movslq	%r13d, %rsi
	leaq	(%rsi,%rsi,8), %rsi
	addq	%rax, %rsi
	cmpl	$1, 432(%rsp,%rsi,4)
	jne	.L7
	movl	$2863311531, %edi
	movl	$32, %r8d
	imulq	%rdi, %rdx
	shrq	$33, %rdx
	addl	8(%rsp), %edx
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,8), %rdx
	addq	%rdx, %rax
	cmpl	$1, 768(%rsp,%rax,4)
	movl	$42, %eax
	cmovne	%eax, %r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$10, %edi
	addl	$1, %ebp
	addq	$36, %r14
	call	putchar@PLT
	cmpl	$9, %ebp
	jne	.L6
	addl	$1, 52(%rsp)
	movq	24(%rsp), %r13
	movl	52(%rsp), %ebx
	cmpl	92(%rsp), %ebx
	jne	.L25
.L10:
	movq	1432(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$1448, %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
	movl	$10, %edi
	call	putchar@PLT
	cmpl	92(%rsp), %ebx
	jl	.L2
	jmp	.L10
.L26:
	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 col[9][9],row[9][9],sq[9][9],n,i,pz[9][9],j,k;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    for(j=0;j<9;j++){
      col[j][0]=row[j][0]=sq[j][0]=0;
      scanf("%d",&(pz[j][0]));
      for(k=1;k<9;k++){
	col[j][k]=row[j][k]=sq[j][k]=0;
	scanf(" %d",&(pz[j][k]));
      }
    }
    for(j=0;j<9;j++){
      for(k=0;k<9;k++){
	col[j][pz[j][k]-1]++;
	row[j][pz[k][j]-1]++;
	sq[j][pz[(j/3)*3+k/3][(j%3)*3+k%3]-1]++;
      }
    }
    for(j=0;j<9;j++){
      for(k=0;k<9;k++)
	printf("%c%d",(col[j][pz[j][k]-1]!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*13 9
*4 5 6 7 8 9*1 2 3
 7 8*9 1 2*3 4 5 6
*2 3*4 5 6 7 8*9*1
 5 6 7 8*9*0 2*1*4
 8*9 1*0 3 4 5 6 7
 3 4 5 6 7 8 9*1 2
 6 7 8 9 1 2 3 4 5
 9*1 2*3 4 5 6 7 8

*2*1 3 4 5 6 7 8 9
 4 5 6 7 8 9 1*2*3
 7 8 9 1 2 3 4 5 6
*2 3 4 5 6 7 8 9 1
 5 6 7 8 9 1*2 3 4
 8 9 1*2 3 4 5 6*2
 3 4 5 6 7 8 9 1*2
 6 7 8 9 1*2 3*2 5
 9*1 2 3 4 5 6*12 8
 *2*1*3*3 5*10 7*13 9
*4 5 6 7 8 9*1 2 3
 7 8*9 1 2*3 4 5 6
*2 3*4 5 6 7 8*9*1
 5 6 7 8*9*0 2*1*4
 8*9 1*0 3 4 5 6 7
 3 4 5 6 7 8 9*1 2
 6 7 8 9 1 2 3 4 5
 9*1 2*3 4 5 6 7 8

*2*1 3 4 5 6 7 8*9
 4 5 6 7 8 9 1*2*3
 7 8*9 1 2 3 4 5*9
*2 3 4 5 6 7 8 9 1
 5 6 7 8 9 1*2 3 4
 8 9 1*2 3 4 5 6*2
 3 4 5 6 7 8 9 1*2
 6 7 8 9 1*2 3*2 5
 9*1 2 3 4 5 6*12 8

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 col[9][9],row[9][9],sq[9][9],n,i,pz[9][9],j,k;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    for(j=0;j<9;j++){
      col[j][0]=row[j][0]=sq[j][0]=0;
      scanf("%d",&(pz[j][0]));
      for(k=1;k<9;k++){
	col[j][k]=row[j][k]=sq[j][k]=0;
	scanf(" %d",&(pz[j][k]));
      }
    }
    for(j=0;j<9;j++){
      for(k=0;k<9;k++){
	col[j][pz[j][k]-1]++;
	row[j][pz[k][j]-1]++;
	sq[j][pz[(j/3)*3+k/3][(j%3)*3+k%3]-1]++;
      }
    }
    for(j=0;j<9;j++){
      for(k=0;k<9;k++)
	printf("%c%d",(col[j][pz[j][k]-1]!=1
	       ||row[k][pz[j][k]-1]!=1
	       ||sq[(j/3)*3+k/3][pz[j][k]-1]!=1)
	  ?'*':' ',pz[j][k]);
      printf("\n");
    }
    if(i+1!=n) printf("\n");
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
.LC2:
	.string	"%c%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
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1360(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1356(%rbp)
	jmp	.L2
.L19:
	movl	$0, -1352(%rbp)
	jmp	.L3
.L6:
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$672, %rax
	movl	$0, (%rax)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$672, %rax
	movl	(%rax), %edx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1008, %rax
	movl	%edx, (%rax)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1008, %rax
	movl	(%rax), %edx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1344, %rax
	movl	%edx, (%rax)
	leaq	-336(%rbp), %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %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	$1, -1348(%rbp)
	jmp	.L4
.L5:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -672(%rbp,%rax,4)
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-672(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -1008(%rbp,%rax,4)
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1008(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -1344(%rbp,%rax,4)
	leaq	-336(%rbp), %rcx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1348(%rbp)
.L4:
	cmpl	$8, -1348(%rbp)
	jle	.L5
	addl	$1, -1352(%rbp)
.L3:
	cmpl	$8, -1352(%rbp)
	jle	.L6
	movl	$0, -1352(%rbp)
	jmp	.L7
.L10:
	movl	$0, -1348(%rbp)
	jmp	.L8
.L9:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1344(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1344(%rbp,%rax,4)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1008(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1008(%rbp,%rax,4)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	leal	(%rax,%rdx), %ecx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	leal	(%rcx,%rax), %esi
	movl	-1352(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	addl	%edx, %edx
	leal	(%rdx,%rax), %edi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %r8d
	sarl	$31, %r8d
	movl	%edx, %ecx
	subl	%r8d, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	leal	(%rdi,%rcx), %eax
	movslq	%eax, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-672(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -672(%rbp,%rax,4)
	addl	$1, -1348(%rbp)
.L8:
	cmpl	$8, -1348(%rbp)
	jle	.L9
	addl	$1, -1352(%rbp)
.L7:
	cmpl	$8, -1352(%rbp)
	jle	.L10
	movl	$0, -1352(%rbp)
	jmp	.L11
.L17:
	movl	$0, -1348(%rbp)
	jmp	.L12
.L16:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1344(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1008(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	imulq	$1431655766, %rcx, %rcx
	shrq	$32, %rcx
	sarl	$31, %eax
	subl	%eax, %ecx
	movl	%ecx, %eax
	addl	%eax, %eax
	leal	(%rax,%rcx), %esi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	imulq	$1431655766, %rcx, %rcx
	shrq	$32, %rcx
	sarl	$31, %eax
	movl	%eax, %edi
	movl	%ecx, %eax
	subl	%edi, %eax
	addl	%eax, %esi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	movl	-672(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L14
.L13:
	movl	$42, %eax
	jmp	.L15
.L14:
	movl	$32, %eax
.L15:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1348(%rbp)
.L12:
	cmpl	$8, -1348(%rbp)
	jle	.L16
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -1352(%rbp)
.L11:
	cmpl	$8, -1352(%rbp)
	jle	.L17
	movl	-1356(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1360(%rbp), %eax
	cmpl	%eax, %edx
	je	.L18
	movl	$10, %edi
	call	putchar@PLT
.L18:
	addl	$1, -1356(%rbp)
.L2:
	movl	-1360(%rbp), %eax
	cmpl	%eax, -1356(%rbp)
	jl	.L19
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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"
.LC1:
	.string	" %d"
.LC2:
	.string	"%c%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
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1360(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1356(%rbp)
	jmp	.L2
.L19:
	movl	$0, -1352(%rbp)
	jmp	.L3
.L6:
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$672, %rax
	movl	$0, (%rax)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$672, %rax
	movl	(%rax), %edx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1008, %rax
	movl	%edx, (%rax)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1008, %rax
	movl	(%rax), %edx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1344, %rax
	movl	%edx, (%rax)
	leaq	-336(%rbp), %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %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	$1, -1348(%rbp)
	jmp	.L4
.L5:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -672(%rbp,%rax,4)
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-672(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -1008(%rbp,%rax,4)
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1008(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -1344(%rbp,%rax,4)
	leaq	-336(%rbp), %rcx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1348(%rbp)
.L4:
	cmpl	$8, -1348(%rbp)
	jle	.L5
	addl	$1, -1352(%rbp)
.L3:
	cmpl	$8, -1352(%rbp)
	jle	.L6
	movl	$0, -1352(%rbp)
	jmp	.L7
.L10:
	movl	$0, -1348(%rbp)
	jmp	.L8
.L9:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1344(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1344(%rbp,%rax,4)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1008(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1008(%rbp,%rax,4)
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	leal	(%rax,%rdx), %ecx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	leal	(%rcx,%rax), %esi
	movl	-1352(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	addl	%edx, %edx
	leal	(%rdx,%rax), %edi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %r8d
	sarl	$31, %r8d
	movl	%edx, %ecx
	subl	%r8d, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	leal	(%rdi,%rcx), %eax
	movslq	%eax, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-672(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -672(%rbp,%rax,4)
	addl	$1, -1348(%rbp)
.L8:
	cmpl	$8, -1348(%rbp)
	jle	.L9
	addl	$1, -1352(%rbp)
.L7:
	cmpl	$8, -1352(%rbp)
	jle	.L10
	movl	$0, -1352(%rbp)
	jmp	.L11
.L17:
	movl	$0, -1348(%rbp)
	jmp	.L12
.L16:
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1352(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %edx
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1344(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-1348(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rsi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-1008(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	imulq	$1431655766, %rcx, %rcx
	shrq	$32, %rcx
	sarl	$31, %eax
	subl	%eax, %ecx
	movl	%ecx, %eax
	addl	%eax, %eax
	leal	(%rax,%rcx), %esi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rcx
	imulq	$1431655766, %rcx, %rcx
	shrq	$32, %rcx
	sarl	$31, %eax
	movl	%eax, %edi
	movl	%ecx, %eax
	subl	%edi, %eax
	addl	%eax, %esi
	movl	-1348(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1352(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	movl	-336(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	movl	-672(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L14
.L13:
	movl	$42, %eax
	jmp	.L15
.L14:
	movl	$32, %eax
.L15:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1348(%rbp)
.L12:
	cmpl	$8, -1348(%rbp)
	jle	.L16
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -1352(%rbp)
.L11:
	cmpl	$8, -1352(%rbp)
	jle	.L17
	movl	-1356(%rbp), %eax
	leal	1(%rax), %edx
	movl	-1360(%rbp), %eax
	cmpl	%eax, %edx
	je	.L18
	movl	$10, %edi
	call	putchar@PLT
.L18:
	addl	$1, -1356(%rbp)
.L2:
	movl	-1360(%rbp), %eax
	cmpl	%eax, -1356(%rbp)
	jl	.L19
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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:
