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>
#include <string.h>

int main(void)
{
    int num[9][9];
    int row[9][10], col[9][10], group[9][10];
    int t;
    int i, j, k;
    
    scanf("%d", &t);
    
    for (i = 0; i < t; i++){
        memset(row, 0, sizeof(row));
        memset(col, 0, sizeof(col));
        memset(group, 0, sizeof(group));
        for (j = 0; j < 9; j++){
            for (k = 0; k < 9; k++){
                scanf("%d", &num[j][k]);
                row[k][num[j][k]]++;
                col[j][num[j][k]]++;
                group[j - j % 3 + k / 3][num[j][k]]++;
            }
        }
        
        if (i > 0){
            printf("\n");
        }
        
        for (j = 0; j < 9; j++){
            for (k = 0; k < 9; k++){
                printf("%c%d", ((row[k][num[j][k]] > 1 || col[j][num[j][k]] > 1 || group[j - j % 3 + k / 3][num[j][k]] > 1) ? '*' : ' '), num[j][k]);
            }
            printf("\n");
        }
    }
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	$1456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1456(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1452(%rbp)
	jmp	.L2
.L15:
	leaq	-1104(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-736(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-368(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1448(%rbp)
	jmp	.L3
.L6:
	movl	$0, -1444(%rbp)
	jmp	.L4
.L5:
	leaq	-1440(%rbp), %rcx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1448(%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
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rsi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-1104(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -1104(%rbp,%rax,4)
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-736(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -736(%rbp,%rax,4)
	movl	-1448(%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	-1448(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	-1444(%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	(%rsi,%rax), %ecx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rsi
	movq	%rsi, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	-368(%rbp,%rax,4), %eax
	leal	1(%rax), %esi
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%esi, -368(%rbp,%rax,4)
	addl	$1, -1444(%rbp)
.L4:
	cmpl	$8, -1444(%rbp)
	jle	.L5
	addl	$1, -1448(%rbp)
.L3:
	cmpl	$8, -1448(%rbp)
	jle	.L6
	cmpl	$0, -1452(%rbp)
	jle	.L7
	movl	$10, %edi
	call	putchar@PLT
.L7:
	movl	$0, -1448(%rbp)
	jmp	.L8
.L14:
	movl	$0, -1444(%rbp)
	jmp	.L9
.L13:
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %esi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-1104(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-736(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-1448(%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	-1448(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-1444(%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	(%rdi,%rax), %ecx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	-368(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L11
.L10:
	movl	$42, %eax
	jmp	.L12
.L11:
	movl	$32, %eax
.L12:
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1444(%rbp)
.L9:
	cmpl	$8, -1444(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -1448(%rbp)
.L8:
	cmpl	$8, -1448(%rbp)
	jle	.L14
	addl	$1, -1452(%rbp)
.L2:
	movl	-1456(%rbp), %eax
	cmpl	%eax, -1452(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$1528, %rsp
	.cfi_def_cfa_offset 1584
	movq	%fs:40, %rax
	movq	%rax, 1512(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	leaq	416(%rsp), %rax
	movl	$0, 36(%rsp)
	leaq	.LC1(%rip), %r15
	movq	%rax, 56(%rsp)
	leaq	784(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	1152(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	56(%rsp), %rdi
	xorl	%eax, %eax
	movl	$45, %ecx
	xorl	%ebx, %ebx
	movq	$0, (%rsp)
	rep stosq
	movq	48(%rsp), %rdi
	movl	$45, %ecx
	movl	$0, 32(%rsp)
	rep stosq
	movq	40(%rsp), %rdi
	movl	$45, %ecx
	rep stosq
	.p2align 4,,10
	.p2align 3
.L3:
	movl	32(%rsp), %eax
	movl	$2863311531, %edx
	xorl	%r14d, %r14d
	movq	%rax, %rcx
	imulq	%rdx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 12(%rsp)
	movq	24(%rsp), %rax
	movq	%rax, 16(%rsp)
	subq	%rbx, %rax
	movq	%rax, %r13
	movslq	%ecx, %rax
	leaq	(%rax,%rax,4), %r12
	addq	%r12, %r12
	movq	%r12, %rax
	movq	%r13, %r12
	movl	%r14d, %r13d
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rcx
	leaq	(%r12,%rbx), %rax
	movl	$2863311531, %edi
	addq	$4, %r12
	movslq	(%rax,%rcx), %rsi
	movslq	%r13d, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rsi,%rax,2), %rax
	addl	$1, 416(%rsp,%rax,4)
	leaq	(%r14,%rsi), %rax
	addl	$1, 784(%rsp,%rax,4)
	movl	%r13d, %eax
	addl	$1, %r13d
	imulq	%rdi, %rax
	shrq	$33, %rax
	addl	12(%rsp), %eax
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%rsi,%rax,2), %rax
	addl	$1, 1152(%rsp,%rax,4)
	cmpl	$9, %r13d
	jne	.L4
	addl	$1, 32(%rsp)
	movl	32(%rsp), %eax
	subq	$36, %rbx
	addq	$36, (%rsp)
	cmpl	$9, %eax
	jne	.L3
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jne	.L24
.L6:
	movq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r12d, %eax
	movl	$2863311531, %ecx
	xorl	%r14d, %r14d
	imulq	%rcx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, (%rsp)
	movslq	%r12d, %rax
	leaq	(%rax,%rax,4), %r13
	addq	%r13, %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__printf_chk@PLT
	cmpq	$9, %r14
	je	.L25
.L9:
	movslq	(%rbx,%r14,4), %rsi
	movslq	%r14d, %rdx
	movl	%r14d, %eax
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rsi,%rdx,2), %rdi
	movq	%rsi, %rcx
	movl	$42, %edx
	cmpl	$1, 416(%rsp,%rdi,4)
	jg	.L8
	leaq	0(%r13,%rsi), %rdi
	cmpl	$1, 784(%rsp,%rdi,4)
	jg	.L8
	movl	$2863311531, %edi
	imulq	%rdi, %rax
	shrq	$33, %rax
	addl	(%rsp), %eax
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%rsi,%rax,2), %rax
	cmpl	$2, 1152(%rsp,%rax,4)
	movl	$32, %eax
	cmovl	%eax, %edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	movl	$10, %edi
	addl	$1, %r12d
	addq	$36, %rbx
	call	putchar@PLT
	cmpl	$9, %r12d
	jne	.L7
	addl	$1, 36(%rsp)
	movl	36(%rsp), %eax
	cmpl	%eax, 76(%rsp)
	jg	.L11
.L2:
	movq	1512(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$1528, %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
.L24:
	.cfi_restore_state
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L6
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$1528, %rsp
	.cfi_def_cfa_offset 1584
	movq	%fs:40, %rax
	movq	%rax, 1512(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	leaq	416(%rsp), %rax
	movl	$0, 36(%rsp)
	leaq	.LC1(%rip), %r15
	movq	%rax, 56(%rsp)
	leaq	784(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	1152(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	56(%rsp), %rdi
	xorl	%eax, %eax
	movl	$45, %ecx
	xorl	%ebx, %ebx
	movq	$0, (%rsp)
	rep stosq
	movq	48(%rsp), %rdi
	movl	$45, %ecx
	movl	$0, 32(%rsp)
	rep stosq
	movq	40(%rsp), %rdi
	movl	$45, %ecx
	rep stosq
	.p2align 4,,10
	.p2align 3
.L3:
	movl	32(%rsp), %eax
	movl	$2863311531, %edx
	xorl	%r14d, %r14d
	movq	%rax, %rcx
	imulq	%rdx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 12(%rsp)
	movq	24(%rsp), %rax
	movq	%rax, 16(%rsp)
	subq	%rbx, %rax
	movq	%rax, %r13
	movslq	%ecx, %rax
	leaq	(%rax,%rax,4), %r12
	addq	%r12, %r12
	movq	%r12, %rax
	movq	%r13, %r12
	movl	%r14d, %r13d
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rcx
	leaq	(%r12,%rbx), %rax
	movl	$2863311531, %edi
	addq	$4, %r12
	movslq	(%rax,%rcx), %rsi
	movslq	%r13d, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rsi,%rax,2), %rax
	addl	$1, 416(%rsp,%rax,4)
	leaq	(%r14,%rsi), %rax
	addl	$1, 784(%rsp,%rax,4)
	movl	%r13d, %eax
	addl	$1, %r13d
	imulq	%rdi, %rax
	shrq	$33, %rax
	addl	12(%rsp), %eax
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%rsi,%rax,2), %rax
	addl	$1, 1152(%rsp,%rax,4)
	cmpl	$9, %r13d
	jne	.L4
	addl	$1, 32(%rsp)
	movl	32(%rsp), %eax
	subq	$36, %rbx
	addq	$36, (%rsp)
	cmpl	$9, %eax
	jne	.L3
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jne	.L24
.L6:
	movq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r12d, %eax
	movl	$2863311531, %ecx
	xorl	%r14d, %r14d
	imulq	%rcx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, (%rsp)
	movslq	%r12d, %rax
	leaq	(%rax,%rax,4), %r13
	addq	%r13, %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__printf_chk@PLT
	cmpq	$9, %r14
	je	.L25
.L9:
	movslq	(%rbx,%r14,4), %rsi
	movslq	%r14d, %rdx
	movl	%r14d, %eax
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rsi,%rdx,2), %rdi
	movq	%rsi, %rcx
	movl	$42, %edx
	cmpl	$1, 416(%rsp,%rdi,4)
	jg	.L8
	leaq	0(%r13,%rsi), %rdi
	cmpl	$1, 784(%rsp,%rdi,4)
	jg	.L8
	movl	$2863311531, %edi
	imulq	%rdi, %rax
	shrq	$33, %rax
	addl	(%rsp), %eax
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%rsi,%rax,2), %rax
	cmpl	$2, 1152(%rsp,%rax,4)
	movl	$32, %eax
	cmovl	%eax, %edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	movl	$10, %edi
	addl	$1, %r12d
	addq	$36, %rbx
	call	putchar@PLT
	cmpl	$9, %r12d
	jne	.L7
	addl	$1, 36(%rsp)
	movl	36(%rsp), %eax
	cmpl	%eax, 76(%rsp)
	jg	.L11
.L2:
	movq	1512(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$1528, %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
.L24:
	.cfi_restore_state
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L6
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include <string.h>

int main(void)
{
    int num[9][9];
    int row[9][10], col[9][10], group[9][10];
    int t;
    int i, j, k;
    
    scanf("%d", &t);
    
    for (i = 0; i < t; i++){
        memset(row, 0, sizeof(row));
        memset(col, 0, sizeof(col));
        memset(group, 0, sizeof(group));
        for (j = 0; j < 9; j++){
            for (k = 0; k < 9; k++){
                scanf("%d", &num[j][k]);
                row[k][num[j][k]]++;
                col[j][num[j][k]]++;
                group[j - j % 3 + k / 3][num[j][k]]++;
            }
        }
        
        if (i > 0){
            printf("\n");
        }
        
        for (j = 0; j < 9; j++){
            for (k = 0; k < 9; k++){
                printf("%c%d", ((row[k][num[j][k]] > 1 || col[j][num[j][k]] > 1 || group[j - j % 3 + k / 3][num[j][k]] > 1) ? '*' : ' '), num[j][k]);
            }
            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 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
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 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>
#include <string.h>

int main(void)
{
    int num[9][9];
    int row[9][10], col[9][10], group[9][10];
    int t;
    int i, j, k;
    
    scanf("%d", &t);
    
    for (i = 0; i < t; i++){
        memset(row, 0, sizeof(row));
        memset(col, 0, sizeof(col));
        memset(group, 0, sizeof(group));
        for (j = 0; j < 9; j++){
            for (k = 0; k < 9; k++){
                scanf("%d", &num[j][k]);
                row[k][num[j][k]]++;
                col[j][num[j][k]]++;
                group[j - j % 3 + k / 3][num[j][k]]++;
            }
        }
        
        if (i > 0){
            printf("\n");
        }
        
        for (j = 0; j < 9; j++){
            for (k = 0; k < 9; k++){
                printf("%c%d", ((row[k][num[j][k]] > 1 || col[j][num[j][k]] > 1 || group[j - j % 3 + k / 3][num[j][k]] > 1) ? '*' : ' '), num[j][k]);
            }
            printf("\n");
        }
    }
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	$1456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1456(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1452(%rbp)
	jmp	.L2
.L15:
	leaq	-1104(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-736(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-368(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1448(%rbp)
	jmp	.L3
.L6:
	movl	$0, -1444(%rbp)
	jmp	.L4
.L5:
	leaq	-1440(%rbp), %rcx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1448(%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
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rsi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-1104(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -1104(%rbp,%rax,4)
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-736(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -736(%rbp,%rax,4)
	movl	-1448(%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	-1448(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	-1444(%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	(%rsi,%rax), %ecx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rsi
	movq	%rsi, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	-368(%rbp,%rax,4), %eax
	leal	1(%rax), %esi
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%esi, -368(%rbp,%rax,4)
	addl	$1, -1444(%rbp)
.L4:
	cmpl	$8, -1444(%rbp)
	jle	.L5
	addl	$1, -1448(%rbp)
.L3:
	cmpl	$8, -1448(%rbp)
	jle	.L6
	cmpl	$0, -1452(%rbp)
	jle	.L7
	movl	$10, %edi
	call	putchar@PLT
.L7:
	movl	$0, -1448(%rbp)
	jmp	.L8
.L14:
	movl	$0, -1444(%rbp)
	jmp	.L9
.L13:
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %esi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-1104(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-736(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-1448(%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	-1448(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-1444(%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	(%rdi,%rax), %ecx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	-368(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L11
.L10:
	movl	$42, %eax
	jmp	.L12
.L11:
	movl	$32, %eax
.L12:
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1444(%rbp)
.L9:
	cmpl	$8, -1444(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -1448(%rbp)
.L8:
	cmpl	$8, -1448(%rbp)
	jle	.L14
	addl	$1, -1452(%rbp)
.L2:
	movl	-1456(%rbp), %eax
	cmpl	%eax, -1452(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	$1456, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1456(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1452(%rbp)
	jmp	.L2
.L15:
	leaq	-1104(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-736(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-368(%rbp), %rax
	movl	$360, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -1448(%rbp)
	jmp	.L3
.L6:
	movl	$0, -1444(%rbp)
	jmp	.L4
.L5:
	leaq	-1440(%rbp), %rcx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1448(%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
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rsi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-1104(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -1104(%rbp,%rax,4)
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	-736(%rbp,%rax,4), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%ecx, -736(%rbp,%rax,4)
	movl	-1448(%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	-1448(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	-1444(%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	(%rsi,%rax), %ecx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1440(%rbp,%rax,4), %edx
	movslq	%edx, %rdi
	movslq	%ecx, %rsi
	movq	%rsi, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	-368(%rbp,%rax,4), %eax
	leal	1(%rax), %esi
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	%esi, -368(%rbp,%rax,4)
	addl	$1, -1444(%rbp)
.L4:
	cmpl	$8, -1444(%rbp)
	jle	.L5
	addl	$1, -1448(%rbp)
.L3:
	cmpl	$8, -1448(%rbp)
	jle	.L6
	cmpl	$0, -1452(%rbp)
	jle	.L7
	movl	$10, %edi
	call	putchar@PLT
.L7:
	movl	$0, -1448(%rbp)
	jmp	.L8
.L14:
	movl	$0, -1444(%rbp)
	jmp	.L9
.L13:
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %esi
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-1104(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-1444(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rcx
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-736(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jg	.L10
	movl	-1448(%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	-1448(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-1444(%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	(%rdi,%rax), %ecx
	movl	-1444(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1448(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	-1440(%rbp,%rax,4), %eax
	movslq	%eax, %rdi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	-368(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L11
.L10:
	movl	$42, %eax
	jmp	.L12
.L11:
	movl	$32, %eax
.L12:
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1444(%rbp)
.L9:
	cmpl	$8, -1444(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -1448(%rbp)
.L8:
	cmpl	$8, -1448(%rbp)
	jle	.L14
	addl	$1, -1452(%rbp)
.L2:
	movl	-1456(%rbp), %eax
	cmpl	%eax, -1452(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
