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>

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  int n;
  int i, j, k;

  scanf ( "%d", &n );
  while ( n-- )
  {
    int f[ 9 ][ 9 ] = { { 0 } };
    int d[ 9 ][ 9 ];

    for ( i = 0; i < 9; ++i )
    for ( j = 0; j < 9; ++j )
    {
      scanf ( "%d", &d[ i ][ j ] );
    }

    for ( i = 0; i < 9; ++i )
    for ( j = 0; j < 9; ++j )
    for ( k = 0; k < 9; ++k )
    {
      if ( j != k
        && d[ i ][ j ] == d[ i ][ k ] )
      {
        f[ i ][ j ] =
        f[ i ][ k ] = 1;
      }
      if ( i != k
        && d[ i ][ j ] == d[ k ][ j ] )
      {
        f[ i ][ j ] =
        f[ k ][ j ] = 1;
      }
      if ( i != i - ( i % 3 ) + ( k / 3 )
        && j != j - ( j % 3 ) + ( k % 3 )
        && d[ i ][ j ] == d[ i - ( i % 3 ) + ( k / 3 ) ]
                           [ j - ( j % 3 ) + ( k % 3 ) ] )
      {
        f[ i ][ j ] =
        f[ i - ( i % 3 ) + ( k / 3 ) ]
         [ j - ( j % 3 ) + ( k % 3 ) ] = 1;
      }
    }

    for ( i = 0; i < 9; ++i )
    {
      for ( j = 0; j < 9; ++j )
      {
        printf ( "%c%d", f[ i ][ j ] ? '*' : ' ', d[ i ][ j ] );
      }
      puts ( "" );
    }

    if ( n )  puts ( "" );
  }

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c%d"
.LC2:
	.string	""
	.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	$704, %rsp
	movl	%edi, -692(%rbp)
	movq	%rsi, -704(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-688(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L23:
	leaq	-672(%rbp), %rdx
	movl	$0, %eax
	movl	$40, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$0, -684(%rbp)
	jmp	.L3
.L6:
	movl	$0, -680(%rbp)
	jmp	.L4
.L5:
	leaq	-336(%rbp), %rcx
	movl	-680(%rbp), %eax
	movslq	%eax, %rsi
	movl	-684(%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	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -680(%rbp)
.L4:
	cmpl	$8, -680(%rbp)
	jle	.L5
	addl	$1, -684(%rbp)
.L3:
	cmpl	$8, -684(%rbp)
	jle	.L6
	movl	$0, -684(%rbp)
	jmp	.L7
.L15:
	movl	$0, -680(%rbp)
	jmp	.L8
.L14:
	movl	$0, -676(%rbp)
	jmp	.L9
.L13:
	movl	-680(%rbp), %eax
	cmpl	-676(%rbp), %eax
	je	.L10
	movl	-680(%rbp), %eax
	movslq	%eax, %rcx
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %ecx
	movl	-676(%rbp), %eax
	movslq	%eax, %rsi
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-336(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L10
	movl	-676(%rbp), %eax
	movslq	%eax, %rcx
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -672(%rbp,%rax,4)
	movl	-676(%rbp), %eax
	movslq	%eax, %rcx
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-672(%rbp,%rax,4), %edx
	movl	-680(%rbp), %eax
	movslq	%eax, %rsi
	movl	-684(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -672(%rbp,%rax,4)
.L10:
	movl	-684(%rbp), %eax
	cmpl	-676(%rbp), %eax
	je	.L11
	movl	-680(%rbp), %eax
	movslq	%eax, %rcx
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %ecx
	movl	-680(%rbp), %eax
	movslq	%eax, %rsi
	movl	-676(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-336(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L11
	movl	-680(%rbp), %eax
	movslq	%eax, %rcx
	movl	-676(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -672(%rbp,%rax,4)
	movl	-680(%rbp), %eax
	movslq	%eax, %rcx
	movl	-676(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-672(%rbp,%rax,4), %edx
	movl	-680(%rbp), %eax
	movslq	%eax, %rsi
	movl	-684(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -672(%rbp,%rax,4)
.L11:
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %esi
	sarl	$31, %esi
	movl	%edx, %ecx
	subl	%esi, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-684(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	-676(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%esi, %eax
	cmpl	%eax, -684(%rbp)
	je	.L12
	movl	-680(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %esi
	sarl	$31, %esi
	movl	%edx, %ecx
	subl	%esi, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-680(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	-676(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %edi
	sarl	$31, %edi
	movl	%edx, %ecx
	subl	%edi, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	leal	(%rsi,%rcx), %eax
	cmpl	%eax, -680(%rbp)
	je	.L12
	movl	-680(%rbp), %eax
	movslq	%eax, %rcx
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %esi
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %edi
	sarl	$31, %edi
	movl	%edx, %ecx
	subl	%edi, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-684(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-676(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, %edi
	movl	-680(%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
	movl	-680(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %r8d
	movl	-676(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %r9d
	sarl	$31, %r9d
	movl	%edx, %ecx
	subl	%r9d, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	leal	(%r8,%rcx), %eax
	movslq	%eax, %rcx
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %eax
	cmpl	%eax, %esi
	jne	.L12
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %esi
	sarl	$31, %esi
	movl	%edx, %ecx
	subl	%esi, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-684(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	-676(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, %esi
	movl	-680(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	movl	%eax, %edi
	sarl	$31, %edi
	movl	%edx, %ecx
	subl	%edi, %ecx
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-680(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-676(%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), %edx
	movslq	%edx, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	movl	$1, -672(%rbp,%rax,4)
	movslq	%edx, %rcx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-672(%rbp,%rax,4), %edx
	movl	-680(%rbp), %eax
	movslq	%eax, %rsi
	movl	-684(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	%edx, -672(%rbp,%rax,4)
.L12:
	addl	$1, -676(%rbp)
.L9:
	cmpl	$8, -676(%rbp)
	jle	.L13
	addl	$1, -680(%rbp)
.L8:
	cmpl	$8, -680(%rbp)
	jle	.L14
	addl	$1, -684(%rbp)
.L7:
	cmpl	$8, -684(%rbp)
	jle	.L15
	movl	$0, -684(%rbp)
	jmp	.L16
.L21:
	movl	$0, -680(%rbp)
	jmp	.L17
.L20:
	movl	-680(%rbp), %eax
	movslq	%eax, %rcx
	movl	-684(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-336(%rbp,%rax,4), %edx
	movl	-680(%rbp), %eax
	movslq	%eax, %rsi
	movl	-684(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	%rsi, %rax
	movl	-672(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L18
	movl	$42, %eax
	jmp	.L19
.L18:
	movl	$32, %eax
.L19:
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -680(%rbp)
.L17:
	cmpl	$8, -680(%rbp)
	jle	.L20
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -684(%rbp)
.L16:
	cmpl	$8, -684(%rbp)
	jle	.L21
	movl	-688(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	movl	-688(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -688(%rbp)
	testl	%eax, %eax
	jne	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	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	"%c%d"
.LC2:
	.string	""
	.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	$744, %rsp
	.cfi_def_cfa_offset 800
	movq	%fs:40, %rax
	movq	%rax, 728(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 60(%rsp)
	testl	%eax, %eax
	je	.L20
	leaq	64(%rsp), %rax
	movl	$2863311531, %r15d
	movq	%rax, 16(%rsp)
	leaq	400(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	436(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	760(%rsp), %rax
	movq	%rax, 40(%rsp)
.L2:
	movq	16(%rsp), %rdi
	movl	$40, %ecx
	xorl	%eax, %eax
	movq	32(%rsp), %rbp
	movq	40(%rsp), %r12
	rep stosq
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	-36(%rbp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %rbx
	jne	.L4
	leaq	36(%rbx), %rbp
	cmpq	%r12, %rbp
	jne	.L3
	movq	16(%rsp), %rax
	movq	24(%rsp), %r12
	xorl	%r10d, %r10d
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %eax
	movq	24(%rsp), %rbx
	movq	16(%rsp), %r14
	movq	%r12, %r8
	imulq	%r15, %rax
	movq	8(%rsp), %rbp
	xorl	%r9d, %r9d
	shrq	$33, %rax
	leal	(%rax,%rax,2), %r11d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r9d, %eax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	imulq	%r15, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %edx
	movl	%ecx, %eax
	cmpl	%r9d, %ecx
	je	.L6
	movl	(%r12,%rcx,4), %edi
	cmpl	%edi, (%r8)
	jne	.L6
	movq	8(%rsp), %rdi
	movl	$1, (%rdi,%rcx,4)
	movl	$1, 0(%rbp)
.L6:
	cmpl	%r10d, %eax
	je	.L7
	movl	(%rbx,%rsi), %eax
	cmpl	%eax, (%r8)
	jne	.L7
	movl	$1, (%r14,%rsi)
	movl	$1, 0(%rbp)
.L7:
	movl	%edx, %eax
	imulq	%r15, %rax
	shrq	$33, %rax
	leal	(%rax,%r11), %edi
	cmpl	%r10d, %edi
	je	.L8
	leal	(%rax,%rax,2), %eax
	subl	%eax, %edx
	addl	%r13d, %edx
	cmpl	%r9d, %edx
	je	.L8
	movslq	%edi, %rdi
	movslq	%edx, %rdx
	leaq	(%rdi,%rdi,8), %rax
	addq	%rdx, %rax
	movl	400(%rsp,%rax,4), %edi
	cmpl	%edi, (%r8)
	jne	.L8
	movl	$1, 64(%rsp,%rax,4)
	movl	$1, 0(%rbp)
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$36, %rsi
	addq	$1, %rcx
	cmpq	$324, %rsi
	jne	.L9
	addl	$1, %r9d
	addq	$4, %rbp
	addq	$4, %r8
	addq	$4, %r14
	addq	$4, %rbx
	cmpl	$9, %r9d
	jne	.L13
	addl	$1, %r10d
	addq	$36, 8(%rsp)
	addq	$36, %r12
	cmpl	$9, %r10d
	jne	.L11
	movq	16(%rsp), %r12
	movq	24(%rsp), %r13
	movl	$36, %ebp
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	-36(%rbp), %rbx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$42, %edx
.L29:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	je	.L31
.L18:
	movl	(%r12,%rbx), %edx
	movl	0(%r13,%rbx), %ecx
	testl	%edx, %edx
	jne	.L32
	movl	$32, %edx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	leaq	.LC2(%rip), %rdi
	addq	$36, %rbp
	call	puts@PLT
	cmpq	$360, %rbp
	jne	.L12
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jne	.L33
.L20:
	movq	728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$744, %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
.L33:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	movl	60(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 60(%rsp)
	testl	%eax, %eax
	jne	.L2
	jmp	.L20
.L34:
	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	"%c%d"
.LC2:
	.string	""
	.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	$744, %rsp
	.cfi_def_cfa_offset 800
	movq	%fs:40, %rax
	movq	%rax, 728(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 60(%rsp)
	testl	%eax, %eax
	je	.L20
	leaq	64(%rsp), %rax
	movl	$2863311531, %r15d
	movq	%rax, 16(%rsp)
	leaq	400(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	436(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	760(%rsp), %rax
	movq	%rax, 40(%rsp)
.L2:
	movq	16(%rsp), %rdi
	movl	$40, %ecx
	xorl	%eax, %eax
	movq	32(%rsp), %rbp
	movq	40(%rsp), %r12
	rep stosq
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	-36(%rbp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %rbx
	jne	.L4
	leaq	36(%rbx), %rbp
	cmpq	%r12, %rbp
	jne	.L3
	movq	16(%rsp), %rax
	movq	24(%rsp), %r12
	xorl	%r10d, %r10d
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %eax
	movq	24(%rsp), %rbx
	movq	16(%rsp), %r14
	movq	%r12, %r8
	imulq	%r15, %rax
	movq	8(%rsp), %rbp
	xorl	%r9d, %r9d
	shrq	$33, %rax
	leal	(%rax,%rax,2), %r11d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r9d, %eax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	imulq	%r15, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %edx
	movl	%ecx, %eax
	cmpl	%r9d, %ecx
	je	.L6
	movl	(%r12,%rcx,4), %edi
	cmpl	%edi, (%r8)
	jne	.L6
	movq	8(%rsp), %rdi
	movl	$1, (%rdi,%rcx,4)
	movl	$1, 0(%rbp)
.L6:
	cmpl	%r10d, %eax
	je	.L7
	movl	(%rbx,%rsi), %eax
	cmpl	%eax, (%r8)
	jne	.L7
	movl	$1, (%r14,%rsi)
	movl	$1, 0(%rbp)
.L7:
	movl	%edx, %eax
	imulq	%r15, %rax
	shrq	$33, %rax
	leal	(%rax,%r11), %edi
	cmpl	%r10d, %edi
	je	.L8
	leal	(%rax,%rax,2), %eax
	subl	%eax, %edx
	addl	%r13d, %edx
	cmpl	%r9d, %edx
	je	.L8
	movslq	%edi, %rdi
	movslq	%edx, %rdx
	leaq	(%rdi,%rdi,8), %rax
	addq	%rdx, %rax
	movl	400(%rsp,%rax,4), %edi
	cmpl	%edi, (%r8)
	jne	.L8
	movl	$1, 64(%rsp,%rax,4)
	movl	$1, 0(%rbp)
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$36, %rsi
	addq	$1, %rcx
	cmpq	$324, %rsi
	jne	.L9
	addl	$1, %r9d
	addq	$4, %rbp
	addq	$4, %r8
	addq	$4, %r14
	addq	$4, %rbx
	cmpl	$9, %r9d
	jne	.L13
	addl	$1, %r10d
	addq	$36, 8(%rsp)
	addq	$36, %r12
	cmpl	$9, %r10d
	jne	.L11
	movq	16(%rsp), %r12
	movq	24(%rsp), %r13
	movl	$36, %ebp
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	-36(%rbp), %rbx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$42, %edx
.L29:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %rbp
	je	.L31
.L18:
	movl	(%r12,%rbx), %edx
	movl	0(%r13,%rbx), %ecx
	testl	%edx, %edx
	jne	.L32
	movl	$32, %edx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	leaq	.LC2(%rip), %rdi
	addq	$36, %rbp
	call	puts@PLT
	cmpq	$360, %rbp
	jne	.L12
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jne	.L33
.L20:
	movq	728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$744, %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
.L33:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	movl	60(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 60(%rsp)
	testl	%eax, %eax
	jne	.L2
	jmp	.L20
.L34:
	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>

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  int n;
  int i, j, k;

  scanf ( "%d", &n );
  while ( n-- )
  {
    int f[ 9 ][ 9 ] = { { 0 } };
    int d[ 9 ][ 9 ];

    for ( i = 0; i < 9; ++i )
    for ( j = 0; j < 9; ++j )
    {
      scanf ( "%d", &d[ i ][ j ] );
    }

    for ( i = 0; i < 9; ++i )
    for ( j = 0; j < 9; ++j )
    for ( k = 0; k < 9; ++k )
    {
      if ( j != k
        && d[ i ][ j ] == d[ i ][ k ] )
      {
        f[ i ][ j ] =
        f[ i ][ k ] = 1;
      }
      if ( i != k
        && d[ i ][ j ] == d[ k ][ j ] )
      {
        f[ i ][ j ] =
        f[ k ][ j ] = 1;
      }
      if ( i != i - ( i % 3 ) + ( k / 3 )
        && j != j - ( j % 3 ) + ( k % 3 )
        && d[ i ][ j ] == d[ i - ( i % 3 ) + ( k / 3 ) ]
                           [ j - ( j % 3 ) + ( k % 3 ) ] )
      {
        f[ i ][ j ] =
        f[ i - ( i % 3 ) + ( k / 3 ) ]
         [ j - ( j % 3 ) + ( k % 3 ) ] = 1;
      }
    }

    for ( i = 0;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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 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>

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  int n;
  int i, j, k;

  scanf ( "%d", &n );
  while ( n-- )
  {
    int f[ 9 ][ 9 ] = { { 0 } };
    int d[ 9 ][ 9 ];

    for ( i = 0; i < 9; ++i )
    for ( j = 0; j < 9; ++j )
    {
      scanf ( "%d", &d[ i ][ j ] );
    }

    for ( i = 0; i < 9; ++i )
    for ( j = 0; j < 9; ++j )
    for ( k = 0; k < 9; ++k )
    {
      if ( j != k
        && d[ i ][ j ] == d[ i ][ k ] )
      {
        f[ i ][ j ] =
        f[ i ][ k ] = 1;
      }
      if ( i != k
        && d[ i ][ j ] == d[ k ][ j ] )
      {
        f[ i ][ j ] =
        f[ k ][ j ] = 1;
      }
      if ( i != i - ( i % 3 ) + ( k / 3 )
        && j != j - ( j % 3 ) + ( k % 3 )
        && d[ i ][ j ] == d[ i - ( i % 3 ) + ( k / 3 ) ]
                           [ j - ( j % 3 ) + ( k % 3 ) ] )
      {
        f[ i ][ j ] =
        f[ i - ( i % 3 ) + ( k / 3 ) ]
         [ j - ( j % 3 ) + ( k % 3 ) ] = 1;
      }
    }

    for ( i = 0; i < 9; ++i )
    {
      for ( j = 0; j < 9; ++j )
      {
        printf ( "%c%d", f[ i ][ j ] ? '*' : ' ', d[ i ][ j ] );
      }
      puts ( "" );
    }

    if ( n )  puts ( "" );
  }

  return ( 0 );
}```

Unoptimized Assembly Code:

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