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

```c
/*
AizuOnline A0126
Maximum Sum Sequence
*/
#include <stdio.h>

char suudoku[9][9];
char flags[9][9];
char *p;

void chkdbl()
{
  int i,j;
  int k,l;

  int flg;

  /*row*/
  /*colomn*/
  for(i=0;i<9;i++)
    for(j=0;j<9;j++)
      { flg = 0;
        for(k=0;k<9;k++)
          { flg |= ((j!=k) && (suudoku[i][j] == suudoku[i][k]))?1:0;
            flg |= ((i!=k) && (suudoku[i][j] == suudoku[k][j]))?1:0;
          }
      
        for(k=(i/3)*3;k<(i/3)*3+3;k++)
          for(l=(j/3)*3;l<(j/3)*3+3;l++)
            {
              /* printf("%d %d %d %d\n",i,j,k,l);*/
              flg |= ((i!=k) && (j!=l)&& (suudoku[i][j] == suudoku[k][l]))?1:0;
            }
        flags[i][j]=flg;
      }
}

main()
{
int i,j,cnt;


  for(i=0;i<9;i++)
    for(j=0;j<9;j++)
       flags[i][j]=0;

scanf("%d",&cnt);

  while(cnt--)
    {
      for(i=0;i<9;i++)
        for(j=0;j<9;j++)
        {
          scanf(" %c",&suudoku[i][j]);
        }

      chkdbl();

  
      for(i=0;i<9;i++)
        { 
          for(j=0;j<9;j++)
            printf("%c%c",(flags[i][j])?'*':' ',suudoku[i][j]);
          printf("\n");
        }
      if(cnt)
        printf("\n");
    }

return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	suudoku
	.bss
	.align 32
	.type	suudoku, @object
	.size	suudoku, 81
suudoku:
	.zero	81
	.globl	flags
	.align 32
	.type	flags, @object
	.size	flags, 81
flags:
	.zero	81
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.text
	.globl	chkdbl
	.type	chkdbl, @function
chkdbl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -20(%rbp)
	jmp	.L2
.L17:
	movl	$0, -16(%rbp)
	jmp	.L3
.L16:
	movl	$0, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L4
.L9:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L5
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movl	$0, %eax
.L6:
	orl	%eax, -4(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L7
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	movl	$0, %eax
.L8:
	orl	%eax, -4(%rbp)
	addl	$1, -12(%rbp)
.L4:
	cmpl	$8, -12(%rbp)
	jle	.L9
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L15:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L12
	movl	-16(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L12
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, %eax
.L13:
	orl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L11:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L14
	addl	$1, -12(%rbp)
.L10:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L15
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	flags(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -16(%rbp)
.L3:
	cmpl	$8, -16(%rbp)
	jle	.L16
	addl	$1, -20(%rbp)
.L2:
	cmpl	$8, -20(%rbp)
	jle	.L17
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	chkdbl, .-chkdbl
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%c%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	jmp	.L19
.L22:
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	flags(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	addl	$1, -12(%rbp)
.L20:
	cmpl	$8, -12(%rbp)
	jle	.L21
	addl	$1, -16(%rbp)
.L19:
	cmpl	$8, -16(%rbp)
	jle	.L22
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L23
.L34:
	movl	$0, -16(%rbp)
	jmp	.L24
.L27:
	movl	$0, -12(%rbp)
	jmp	.L25
.L26:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L25:
	cmpl	$8, -12(%rbp)
	jle	.L26
	addl	$1, -16(%rbp)
.L24:
	cmpl	$8, -16(%rbp)
	jle	.L27
	movl	$0, %eax
	call	chkdbl
	movl	$0, -16(%rbp)
	jmp	.L28
.L33:
	movl	$0, -12(%rbp)
	jmp	.L29
.L32:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	flags(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L30
	movl	$42, %eax
	jmp	.L31
.L30:
	movl	$32, %eax
.L31:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L29:
	cmpl	$8, -12(%rbp)
	jle	.L32
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -16(%rbp)
.L28:
	cmpl	$8, -16(%rbp)
	jle	.L33
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	je	.L23
	movl	$10, %edi
	call	putchar@PLT
.L23:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L34
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	chkdbl
	.type	chkdbl, @function
chkdbl:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	flags(%rip), %rax
	movl	$1, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	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
	leaq	suudoku(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %r13
	movq	%rax, -8(%rsp)
.L2:
	movl	$2863311531, %edi
	movl	%r14d, %eax
	leaq	suudoku(%rip), %rbx
	xorl	%ecx, %ecx
	imulq	%rdi, %rax
	movq	%r13, %rdi
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -20(%rsp)
	leal	3(%rax), %ebp
	leaq	(%rax,%rax,8), %rax
	movq	%rax, -16(%rsp)
	movq	-8(%rsp), %rax
	movq	%rax, -40(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L37:
	testl	%r14d, %r14d
	je	.L16
	movzbl	(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
.L16:
	xorl	%edx, %edx
	cmpl	$1, %eax
	je	.L17
	xorl	%edx, %edx
	movzbl	1(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%dl
.L17:
	cmpl	$1, %r14d
	je	.L18
	movzbl	9(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %edx
.L18:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	je	.L19
	xorl	%ecx, %ecx
	movzbl	2(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L19:
	cmpl	$2, %r14d
	je	.L20
	movzbl	18(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
.L20:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	je	.L21
	xorl	%ecx, %ecx
	movzbl	3(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L21:
	cmpl	$3, %r14d
	je	.L22
	movzbl	27(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
.L22:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	je	.L23
	xorl	%ecx, %ecx
	movzbl	4(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L23:
	cmpl	$4, %r14d
	je	.L24
	movzbl	36(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
.L24:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$5, %eax
	je	.L25
	xorl	%ecx, %ecx
	movzbl	5(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L25:
	cmpl	$5, %r14d
	je	.L26
	movzbl	45(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$6, %eax
	je	.L28
.L41:
	xorl	%ecx, %ecx
	movzbl	6(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L28:
	cmpl	$6, %r14d
	je	.L29
.L42:
	movzbl	54(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
	orl	%edx, %ecx
	xorl	%edx, %edx
	cmpl	$7, %eax
	je	.L31
.L39:
	xorl	%edx, %edx
	movzbl	7(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%dl
.L31:
	cmpl	$7, %r14d
	je	.L32
.L40:
	movzbl	63(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %edx
	xorl	%esi, %esi
	orl	%ecx, %edx
	cmpl	$8, %eax
	je	.L35
.L34:
	movzbl	8(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%sil
	movzbl	%sil, %esi
.L35:
	cmpl	$8, %r14d
	je	.L3
.L38:
	movzbl	72(%rbx), %ecx
	cmpb	%cl, (%rdi)
	cmove	%r15d, %esi
.L3:
	movl	$2863311531, %ecx
	orl	%edx, %esi
	movl	%eax, %edx
	imulq	%rcx, %rdx
	shrq	$33, %rdx
	leal	(%rdx,%rdx,2), %r10d
	movq	-16(%rsp), %rdx
	movslq	%r10d, %r8
	leal	2(%r10), %r9d
	leal	3(%r10), %r12d
	leaq	(%r8,%rdx), %rcx
	leaq	suudoku(%rip), %rdx
	negq	%r8
	addq	%rdx, %rcx
	movl	-20(%rsp), %edx
	movq	%r8, -48(%rsp)
	leal	1(%r10), %r11d
	movl	%edx, -32(%rsp)
	movl	%r9d, %edx
	movq	%rdx, -56(%rsp)
	movl	-32(%rsp), %edx
	movq	%rbx, -32(%rsp)
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%r14d, %edx
	setne	%r8b
	cmpl	%eax, %r10d
	je	.L4
	testb	%r8b, %r8b
	je	.L4
	movzbl	(%rcx), %ebx
	cmpb	%bl, (%rdi)
	cmove	%r15d, %esi
.L4:
	cmpl	%eax, %r11d
	je	.L5
	testb	%r8b, %r8b
	je	.L5
	movzbl	1(%rcx), %ebx
	cmpb	%bl, (%rdi)
	cmove	%r15d, %esi
.L5:
	cmpl	%r9d, %r12d
	jle	.L6
	cmpl	%eax, %r9d
	je	.L6
	testb	%r8b, %r8b
	je	.L6
	movq	-56(%rsp), %rbx
	leaq	(%rbx,%rcx), %r8
	movq	-48(%rsp), %rbx
	movzbl	(%r8,%rbx), %ebx
	cmpb	%bl, (%rdi)
	cmove	%r15d, %esi
.L6:
	addl	$1, %edx
	addq	$9, %rcx
	cmpl	%ebp, %edx
	jl	.L14
	movq	-40(%rsp), %rcx
	movq	-32(%rsp), %rbx
	addl	$1, %eax
	addq	$1, %rdi
	movb	%sil, (%rcx)
	addq	$1, %rcx
	addq	$1, %rbx
	movq	%rcx, -40(%rsp)
	cmpl	$9, %eax
	je	.L15
	xorl	%ecx, %ecx
	movzbl	0(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
	jmp	.L37
.L32:
	orl	%ecx, %edx
	xorl	%esi, %esi
	cmpl	$8, %eax
	jne	.L34
	jmp	.L38
.L29:
	orl	%edx, %ecx
	xorl	%edx, %edx
	cmpl	$7, %eax
	jne	.L39
	jmp	.L40
.L26:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$6, %eax
	jne	.L41
	jmp	.L42
.L15:
	addl	$1, %r14d
	addq	$9, -8(%rsp)
	addq	$9, %r13
	cmpl	$9, %r14d
	jne	.L2
	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
	.cfi_endproc
.LFE23:
	.size	chkdbl, .-chkdbl
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%c%c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	leaq	90+suudoku(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC1(%rip), %r13
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	movb	$0, 80+flags(%rip)
	movq	$0, flags(%rip)
	movq	$0, 8+flags(%rip)
	movq	$0, 16+flags(%rip)
	movq	$0, 24+flags(%rip)
	movq	$0, 32+flags(%rip)
	movq	$0, 40+flags(%rip)
	movq	$0, 48+flags(%rip)
	movq	$0, 56+flags(%rip)
	movq	$0, 64+flags(%rip)
	movq	$0, 72+flags(%rip)
	call	__isoc99_scanf@PLT
.L131:
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	je	.L140
	leaq	suudoku(%rip), %rbx
	leaq	9(%rbx), %rbp
	.p2align 4,,10
	.p2align 3
.L141:
	leaq	-9(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L132:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %r12
	jne	.L132
	leaq	9(%r12), %rbp
	cmpq	%rbp, %r15
	jne	.L141
	xorl	%eax, %eax
	leaq	flags(%rip), %rbp
	leaq	.LC2(%rip), %r12
	call	chkdbl
	.p2align 4,,10
	.p2align 3
.L134:
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L139:
	cmpb	$0, 0(%rbp,%r14)
	movsbl	(%rbx,%r14), %ecx
	movl	$42, %edx
	jne	.L148
	movl	$32, %edx
.L148:
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__printf_chk@PLT
	cmpq	$9, %r14
	jne	.L139
	movl	$10, %edi
	addq	$9, %rbx
	addq	$9, %rbp
	call	putchar@PLT
	leaq	81+suudoku(%rip), %rax
	cmpq	%rax, %rbx
	jne	.L134
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jne	.L149
.L140:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L150
	addq	$24, %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
.L149:
	.cfi_restore_state
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L131
.L150:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	flags
	.align 32
	.type	flags, @object
	.size	flags, 81
flags:
	.zero	81
	.globl	suudoku
	.align 32
	.type	suudoku, @object
	.size	suudoku, 81
suudoku:
	.zero	81
	.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
	.p2align 4
	.globl	chkdbl
	.type	chkdbl, @function
chkdbl:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	flags(%rip), %rax
	movl	$1, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	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
	leaq	suudoku(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %r13
	movq	%rax, -8(%rsp)
.L2:
	movl	$2863311531, %edi
	movl	%r14d, %eax
	leaq	suudoku(%rip), %rbx
	xorl	%ecx, %ecx
	imulq	%rdi, %rax
	movq	%r13, %rdi
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -20(%rsp)
	leal	3(%rax), %ebp
	leaq	(%rax,%rax,8), %rax
	movq	%rax, -16(%rsp)
	movq	-8(%rsp), %rax
	movq	%rax, -40(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L37:
	testl	%r14d, %r14d
	je	.L16
	movzbl	(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
.L16:
	xorl	%edx, %edx
	cmpl	$1, %eax
	je	.L17
	xorl	%edx, %edx
	movzbl	1(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%dl
.L17:
	cmpl	$1, %r14d
	je	.L18
	movzbl	9(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %edx
.L18:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	je	.L19
	xorl	%ecx, %ecx
	movzbl	2(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L19:
	cmpl	$2, %r14d
	je	.L20
	movzbl	18(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
.L20:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	je	.L21
	xorl	%ecx, %ecx
	movzbl	3(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L21:
	cmpl	$3, %r14d
	je	.L22
	movzbl	27(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
.L22:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	je	.L23
	xorl	%ecx, %ecx
	movzbl	4(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L23:
	cmpl	$4, %r14d
	je	.L24
	movzbl	36(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
.L24:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$5, %eax
	je	.L25
	xorl	%ecx, %ecx
	movzbl	5(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L25:
	cmpl	$5, %r14d
	je	.L26
	movzbl	45(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$6, %eax
	je	.L28
.L41:
	xorl	%ecx, %ecx
	movzbl	6(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
.L28:
	cmpl	$6, %r14d
	je	.L29
.L42:
	movzbl	54(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %ecx
	orl	%edx, %ecx
	xorl	%edx, %edx
	cmpl	$7, %eax
	je	.L31
.L39:
	xorl	%edx, %edx
	movzbl	7(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%dl
.L31:
	cmpl	$7, %r14d
	je	.L32
.L40:
	movzbl	63(%rbx), %esi
	cmpb	%sil, (%rdi)
	cmove	%r15d, %edx
	xorl	%esi, %esi
	orl	%ecx, %edx
	cmpl	$8, %eax
	je	.L35
.L34:
	movzbl	8(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%sil
	movzbl	%sil, %esi
.L35:
	cmpl	$8, %r14d
	je	.L3
.L38:
	movzbl	72(%rbx), %ecx
	cmpb	%cl, (%rdi)
	cmove	%r15d, %esi
.L3:
	movl	$2863311531, %ecx
	orl	%edx, %esi
	movl	%eax, %edx
	imulq	%rcx, %rdx
	shrq	$33, %rdx
	leal	(%rdx,%rdx,2), %r10d
	movq	-16(%rsp), %rdx
	movslq	%r10d, %r8
	leal	2(%r10), %r9d
	leal	3(%r10), %r12d
	leaq	(%r8,%rdx), %rcx
	leaq	suudoku(%rip), %rdx
	negq	%r8
	addq	%rdx, %rcx
	movl	-20(%rsp), %edx
	movq	%r8, -48(%rsp)
	leal	1(%r10), %r11d
	movl	%edx, -32(%rsp)
	movl	%r9d, %edx
	movq	%rdx, -56(%rsp)
	movl	-32(%rsp), %edx
	movq	%rbx, -32(%rsp)
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%r14d, %edx
	setne	%r8b
	cmpl	%eax, %r10d
	je	.L4
	testb	%r8b, %r8b
	je	.L4
	movzbl	(%rcx), %ebx
	cmpb	%bl, (%rdi)
	cmove	%r15d, %esi
.L4:
	cmpl	%eax, %r11d
	je	.L5
	testb	%r8b, %r8b
	je	.L5
	movzbl	1(%rcx), %ebx
	cmpb	%bl, (%rdi)
	cmove	%r15d, %esi
.L5:
	cmpl	%r9d, %r12d
	jle	.L6
	cmpl	%eax, %r9d
	je	.L6
	testb	%r8b, %r8b
	je	.L6
	movq	-56(%rsp), %rbx
	leaq	(%rbx,%rcx), %r8
	movq	-48(%rsp), %rbx
	movzbl	(%r8,%rbx), %ebx
	cmpb	%bl, (%rdi)
	cmove	%r15d, %esi
.L6:
	addl	$1, %edx
	addq	$9, %rcx
	cmpl	%ebp, %edx
	jl	.L14
	movq	-40(%rsp), %rcx
	movq	-32(%rsp), %rbx
	addl	$1, %eax
	addq	$1, %rdi
	movb	%sil, (%rcx)
	addq	$1, %rcx
	addq	$1, %rbx
	movq	%rcx, -40(%rsp)
	cmpl	$9, %eax
	je	.L15
	xorl	%ecx, %ecx
	movzbl	0(%r13), %esi
	cmpb	%sil, (%rdi)
	sete	%cl
	jmp	.L37
.L32:
	orl	%ecx, %edx
	xorl	%esi, %esi
	cmpl	$8, %eax
	jne	.L34
	jmp	.L38
.L29:
	orl	%edx, %ecx
	xorl	%edx, %edx
	cmpl	$7, %eax
	jne	.L39
	jmp	.L40
.L26:
	orl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$6, %eax
	jne	.L41
	jmp	.L42
.L15:
	addl	$1, %r14d
	addq	$9, -8(%rsp)
	addq	$9, %r13
	cmpl	$9, %r14d
	jne	.L2
	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
	.cfi_endproc
.LFE23:
	.size	chkdbl, .-chkdbl
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%c%c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	leaq	90+suudoku(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC1(%rip), %r13
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	movb	$0, 80+flags(%rip)
	movq	$0, flags(%rip)
	movq	$0, 8+flags(%rip)
	movq	$0, 16+flags(%rip)
	movq	$0, 24+flags(%rip)
	movq	$0, 32+flags(%rip)
	movq	$0, 40+flags(%rip)
	movq	$0, 48+flags(%rip)
	movq	$0, 56+flags(%rip)
	movq	$0, 64+flags(%rip)
	movq	$0, 72+flags(%rip)
	call	__isoc99_scanf@PLT
.L131:
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	je	.L140
	leaq	suudoku(%rip), %rbx
	leaq	9(%rbx), %rbp
	.p2align 4,,10
	.p2align 3
.L141:
	leaq	-9(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L132:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %r12
	jne	.L132
	leaq	9(%r12), %rbp
	cmpq	%rbp, %r15
	jne	.L141
	xorl	%eax, %eax
	leaq	flags(%rip), %rbp
	leaq	.LC2(%rip), %r12
	call	chkdbl
	.p2align 4,,10
	.p2align 3
.L134:
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L139:
	cmpb	$0, 0(%rbp,%r14)
	movsbl	(%rbx,%r14), %ecx
	movl	$42, %edx
	jne	.L148
	movl	$32, %edx
.L148:
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__printf_chk@PLT
	cmpq	$9, %r14
	jne	.L139
	movl	$10, %edi
	addq	$9, %rbx
	addq	$9, %rbp
	call	putchar@PLT
	leaq	81+suudoku(%rip), %rax
	cmpq	%rax, %rbx
	jne	.L134
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jne	.L149
.L140:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L150
	addq	$24, %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
.L149:
	.cfi_restore_state
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L131
.L150:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	flags
	.align 32
	.type	flags, @object
	.size	flags, 81
flags:
	.zero	81
	.globl	suudoku
	.align 32
	.type	suudoku, @object
	.size	suudoku, 81
suudoku:
	.zero	81
	.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:

/*
AizuOnline A0126
Maximum Sum Sequence
*/
#include <stdio.h>

char suudoku[9][9];
char flags[9][9];
char *p;

void chkdbl()
{
  int i,j;
  int k,l;

  int flg;

  /*row*/
  /*colomn*/
  for(i=0;i<9;i++)
    for(j=0;j<9;j++)
      { flg = 0;
        for(k=0;k<9;k++)
          { flg |= ((j!=k) && (suudoku[i][j] == suudoku[i][k]))?1:0;
            flg |= ((i!=k) && (suudoku[i][j] == suudoku[k][j]))?1:0;
          }
      
        for(k=(i/3)*3;k<(i/3)*3+3;k++)
          for(l=(j/3)*3;l<(j/3)*3+3;l++)
            {
              /* printf("%d %d %d %d\n",i,j,k,l);*/
              flg |= ((i!=k) && (j!=l)&& (suudoku[i][j] == suudoku[k][l]))?1:0;
            }
        flags[i][j]=flg;
      }
}

main()
{
int i,j,cnt;


  for(i=0;i<9;i++)
    for(j=0;j<9;j++)
       flags[i][j]=0;

scanf("%d",&cnt);

  while(cnt--)
    {
      for(i=0;i<9;i++)
        for(j=0;j<9;j++)
        {
          scanf(" %c",&suudoku[i][j]);
        }

      chkdbl();

  
      for(i=0;i<9;i++)
        { 
          for(j=0;j<9;j++)
            printf("%c%c",(flags[i][j])?'*':' ',suudoku[i][j]);
          printf("\n");
        }
      if(cnt)
        printf("\n");
    }

return(0);
}
2
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 0 2 3 4
8 9 1 2 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 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
2 1 3 4 5 6 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 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 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

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

```c
/*
AizuOnline A0126
Maximum Sum Sequence
*/
#include <stdio.h>

char suudoku[9][9];
char flags[9][9];
char *p;

void chkdbl()
{
  int i,j;
  int k,l;

  int flg;

  /*row*/
  /*colomn*/
  for(i=0;i<9;i++)
    for(j=0;j<9;j++)
      { flg = 0;
        for(k=0;k<9;k++)
          { flg |= ((j!=k) && (suudoku[i][j] == suudoku[i][k]))?1:0;
            flg |= ((i!=k) && (suudoku[i][j] == suudoku[k][j]))?1:0;
          }
      
        for(k=(i/3)*3;k<(i/3)*3+3;k++)
          for(l=(j/3)*3;l<(j/3)*3+3;l++)
            {
              /* printf("%d %d %d %d\n",i,j,k,l);*/
              flg |= ((i!=k) && (j!=l)&& (suudoku[i][j] == suudoku[k][l]))?1:0;
            }
        flags[i][j]=flg;
      }
}

main()
{
int i,j,cnt;


  for(i=0;i<9;i++)
    for(j=0;j<9;j++)
       flags[i][j]=0;

scanf("%d",&cnt);

  while(cnt--)
    {
      for(i=0;i<9;i++)
        for(j=0;j<9;j++)
        {
          scanf(" %c",&suudoku[i][j]);
        }

      chkdbl();

  
      for(i=0;i<9;i++)
        { 
          for(j=0;j<9;j++)
            printf("%c%c",(flags[i][j])?'*':' ',suudoku[i][j]);
          printf("\n");
        }
      if(cnt)
        printf("\n");
    }

return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	suudoku
	.bss
	.align 32
	.type	suudoku, @object
	.size	suudoku, 81
suudoku:
	.zero	81
	.globl	flags
	.align 32
	.type	flags, @object
	.size	flags, 81
flags:
	.zero	81
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.text
	.globl	chkdbl
	.type	chkdbl, @function
chkdbl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -20(%rbp)
	jmp	.L2
.L17:
	movl	$0, -16(%rbp)
	jmp	.L3
.L16:
	movl	$0, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L4
.L9:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L5
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movl	$0, %eax
.L6:
	orl	%eax, -4(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L7
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	movl	$0, %eax
.L8:
	orl	%eax, -4(%rbp)
	addl	$1, -12(%rbp)
.L4:
	cmpl	$8, -12(%rbp)
	jle	.L9
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L15:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L12
	movl	-16(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L12
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, %eax
.L13:
	orl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L11:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L14
	addl	$1, -12(%rbp)
.L10:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L15
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	flags(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -16(%rbp)
.L3:
	cmpl	$8, -16(%rbp)
	jle	.L16
	addl	$1, -20(%rbp)
.L2:
	cmpl	$8, -20(%rbp)
	jle	.L17
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	chkdbl, .-chkdbl
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%c%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	jmp	.L19
.L22:
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	flags(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	addl	$1, -12(%rbp)
.L20:
	cmpl	$8, -12(%rbp)
	jle	.L21
	addl	$1, -16(%rbp)
.L19:
	cmpl	$8, -16(%rbp)
	jle	.L22
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L23
.L34:
	movl	$0, -16(%rbp)
	jmp	.L24
.L27:
	movl	$0, -12(%rbp)
	jmp	.L25
.L26:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L25:
	cmpl	$8, -12(%rbp)
	jle	.L26
	addl	$1, -16(%rbp)
.L24:
	cmpl	$8, -16(%rbp)
	jle	.L27
	movl	$0, %eax
	call	chkdbl
	movl	$0, -16(%rbp)
	jmp	.L28
.L33:
	movl	$0, -12(%rbp)
	jmp	.L29
.L32:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	flags(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L30
	movl	$42, %eax
	jmp	.L31
.L30:
	movl	$32, %eax
.L31:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L29:
	cmpl	$8, -12(%rbp)
	jle	.L32
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -16(%rbp)
.L28:
	cmpl	$8, -16(%rbp)
	jle	.L33
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	je	.L23
	movl	$10, %edi
	call	putchar@PLT
.L23:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L34
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	suudoku
	.bss
	.align 32
	.type	suudoku, @object
	.size	suudoku, 81
suudoku:
	.zero	81
	.globl	flags
	.align 32
	.type	flags, @object
	.size	flags, 81
flags:
	.zero	81
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.text
	.globl	chkdbl
	.type	chkdbl, @function
chkdbl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -20(%rbp)
	jmp	.L2
.L17:
	movl	$0, -16(%rbp)
	jmp	.L3
.L16:
	movl	$0, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L4
.L9:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L5
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movl	$0, %eax
.L6:
	orl	%eax, -4(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L7
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	movl	$0, %eax
.L8:
	orl	%eax, -4(%rbp)
	addl	$1, -12(%rbp)
.L4:
	cmpl	$8, -12(%rbp)
	jle	.L9
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L15:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	subl	%eax, %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	cmpl	-12(%rbp), %eax
	je	.L12
	movl	-16(%rbp), %eax
	cmpl	-8(%rbp), %eax
	je	.L12
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	jne	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, %eax
.L13:
	orl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L11:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L14
	addl	$1, -12(%rbp)
.L10:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	1(%rax), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L15
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	flags(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -16(%rbp)
.L3:
	cmpl	$8, -16(%rbp)
	jle	.L16
	addl	$1, -20(%rbp)
.L2:
	cmpl	$8, -20(%rbp)
	jle	.L17
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	chkdbl, .-chkdbl
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%c%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -16(%rbp)
	jmp	.L19
.L22:
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	flags(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	addl	$1, -12(%rbp)
.L20:
	cmpl	$8, -12(%rbp)
	jle	.L21
	addl	$1, -16(%rbp)
.L19:
	cmpl	$8, -16(%rbp)
	jle	.L22
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L23
.L34:
	movl	$0, -16(%rbp)
	jmp	.L24
.L27:
	movl	$0, -12(%rbp)
	jmp	.L25
.L26:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L25:
	cmpl	$8, -12(%rbp)
	jle	.L26
	addl	$1, -16(%rbp)
.L24:
	cmpl	$8, -16(%rbp)
	jle	.L27
	movl	$0, %eax
	call	chkdbl
	movl	$0, -16(%rbp)
	jmp	.L28
.L33:
	movl	$0, -12(%rbp)
	jmp	.L29
.L32:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	suudoku(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	flags(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L30
	movl	$42, %eax
	jmp	.L31
.L30:
	movl	$32, %eax
.L31:
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L29:
	cmpl	$8, -12(%rbp)
	jle	.L32
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -16(%rbp)
.L28:
	cmpl	$8, -16(%rbp)
	jle	.L33
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	je	.L23
	movl	$10, %edi
	call	putchar@PLT
.L23:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -20(%rbp)
	testl	%eax, %eax
	jne	.L34
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
