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

```c
#include <stdio.h>
int main(void){
   int n,i,j,k,l;
   int dice[24][6];
   int label[24][6]={{1,2,3,4,5,6},{1,3,5,2,4,6},{1,4,2,5,3,6},{1,5,4,3,2,6},{2,1,4,3,6,5},{2,3,1,6,4,5},
   {2,4,6,1,3,5},{2,6,3,4,1,5},{3,1,2,5,6,4},{3,2,6,1,5,4},{3,5,1,6,2,4},{3,6,5,2,1,4},{4,1,5,2,6,3},
   {4,2,1,6,5,3},{4,5,6,1,2,3},{4,6,2,5,1,3},{5,1,3,4,6,2},{5,3,6,1,4,2},{5,4,1,6,3,2},{5,6,4,3,1,2},
   {6,2,4,3,5,1},{6,3,2,5,4,1},{6,4,5,2,3,1},{6,5,3,4,2,1}};
   
   scanf("%d",&n);
   int dices[n][6];
   
   for(i=0;i<n;i++){
       for(j=0;j<6;j++) scanf("%d",&dices[i][j]);
   }
   
   /*for(i=0;i<n;i++){
       for(j=0;j<6;j++) {
           printf("%d",dices[i][j]);
       }
       putchar('\n');
   }*/
   
   for(i=0;i<n-1;i++){
       for(j=i+1;j<n;j++){
           
           for(k=0;k<24;k++){
               for(l=0;l<6;l++) dice[k][l]=dices[j][label[k][l]-1];
           }
           
          /* for(k=0;k<24;k++){
               for(l=0;l<6;l++) {
                   printf("%d",dice[k][l]);
               }
               putchar('\n');
           }*/
           
           for(k=0;k<24;k++){
               for(l=0;l<6;l++) {
                   if(dice[k][l]!=dices[i][l]) {
                       break;
                   }
               }
               if(l==6){
                    printf("No\n");
                    return 0;
               }
           }
       }
   }
   
   printf("Yes\n");
   return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.align 32
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1224, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-640(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movl	$72, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1252(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -1232(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -1224(%rbp)
	movl	$0, -1248(%rbp)
	jmp	.L5
.L8:
	movl	$0, -1244(%rbp)
	jmp	.L6
.L7:
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1248(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-1224(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1244(%rbp)
.L6:
	cmpl	$5, -1244(%rbp)
	jle	.L7
	addl	$1, -1248(%rbp)
.L5:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1248(%rbp)
	jl	.L8
	movl	$0, -1248(%rbp)
	jmp	.L9
.L24:
	movl	-1248(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1244(%rbp)
	jmp	.L10
.L23:
	movl	$0, -1240(%rbp)
	jmp	.L11
.L14:
	movl	$0, -1236(%rbp)
	jmp	.L12
.L13:
	movl	-1236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-640(%rbp,%rax,4), %eax
	subl	$1, %eax
	movq	-1224(%rbp), %rdx
	movslq	%eax, %rsi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	(%rdx,%rax,4), %edx
	movl	-1236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1240(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%edx, -1216(%rbp,%rax,4)
	addl	$1, -1236(%rbp)
.L12:
	cmpl	$5, -1236(%rbp)
	jle	.L13
	addl	$1, -1240(%rbp)
.L11:
	cmpl	$23, -1240(%rbp)
	jle	.L14
	movl	$0, -1240(%rbp)
	jmp	.L15
.L22:
	movl	$0, -1236(%rbp)
	jmp	.L16
.L19:
	movl	-1236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-1216(%rbp,%rax,4), %esi
	movq	-1224(%rbp), %rdx
	movl	-1236(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1248(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	(%rdx,%rax,4), %eax
	cmpl	%eax, %esi
	jne	.L27
	addl	$1, -1236(%rbp)
.L16:
	cmpl	$5, -1236(%rbp)
	jle	.L19
	jmp	.L18
.L27:
	nop
.L18:
	cmpl	$6, -1236(%rbp)
	jne	.L20
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L21
.L20:
	addl	$1, -1240(%rbp)
.L15:
	cmpl	$23, -1240(%rbp)
	jle	.L22
	addl	$1, -1244(%rbp)
.L10:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jl	.L23
	addl	$1, -1248(%rbp)
.L9:
	movl	-1252(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1248(%rbp)
	jl	.L24
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L21:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.rodata
	.align 32
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	movl	$72, %ecx
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-640(%rbp), %rdi
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC1(%rip), %r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1224, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rdi, -1248(%rbp)
	rep movsq
	leaq	-1220(%rbp), %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movslq	-1220(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r13
	leaq	(%rax,%rax,2), %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L34:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L34
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L35
.L4:
	movq	%rsp, %rbx
	testl	%r13d, %r13d
	jle	.L5
	leaq	24(%rbx), %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	-24(%r12), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %r13
	call	__isoc99_scanf@PLT
	cmpq	%r12, %r13
	jne	.L6
	movl	-1220(%rbp), %r13d
	addq	$1, %r15
	addq	$24, %r12
	cmpl	%r15d, %r13d
	jg	.L7
.L5:
	leal	-1(%r13), %eax
	leaq	-1216(%rbp), %rdx
	movq	%rbx, %r11
	movl	$0, -1236(%rbp)
	movl	%eax, -1260(%rbp)
	leaq	-64(%rbp), %r12
	leaq	-640(%rbp), %r15
	movq	%rdx, -1256(%rbp)
	testl	%eax, %eax
	jle	.L12
	movl	%r13d, -1240(%rbp)
.L11:
	addl	$1, -1236(%rbp)
	movl	-1236(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jle	.L19
	movl	(%r11), %r13d
	movl	%eax, %r14d
.L18:
	movq	-1256(%rbp), %r9
	movslq	%r14d, %rdx
	movq	-1248(%rbp), %rax
	leaq	(%rdx,%rdx,2), %r8
	movq	%r9, %r10
	addq	%r8, %r8
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%rax), %esi
	movl	8(%rax), %edi
	addq	$24, %rax
	addq	$24, %r9
	leal	-1(%rsi), %edx
	movl	-20(%rax), %esi
	movslq	%edx, %rdx
	leal	-1(%rsi), %ecx
	leal	-1(%rdi), %esi
	movl	-12(%rax), %edi
	addq	%r8, %rdx
	movslq	%ecx, %rcx
	movslq	%esi, %rsi
	movd	(%rbx,%rdx,4), %xmm0
	subl	$1, %edi
	addq	%r8, %rcx
	addq	%r8, %rsi
	movslq	%edi, %rdi
	movl	(%rbx,%rcx,4), %ecx
	movd	(%rbx,%rsi,4), %xmm1
	addq	%r8, %rdi
	movl	(%rbx,%rdi,4), %edi
	movd	%ecx, %xmm3
	punpckldq	%xmm3, %xmm0
	movd	%edi, %xmm2
	punpckldq	%xmm2, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, -24(%r9)
	movl	-8(%rax), %esi
	leal	-1(%rsi), %edx
	movl	-4(%rax), %esi
	movslq	%edx, %rdx
	leal	-1(%rsi), %ecx
	addq	%r8, %rdx
	movslq	%ecx, %rcx
	movd	(%rbx,%rdx,4), %xmm0
	addq	%r8, %rcx
	movl	(%rbx,%rcx,4), %ecx
	movd	%ecx, %xmm4
	punpckldq	%xmm4, %xmm0
	movq	%xmm0, -8(%r9)
	cmpq	%rax, %r12
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%r13d, (%r10)
	jne	.L16
	movl	4(%r11), %eax
	cmpl	%eax, 4(%r10)
	jne	.L16
	movl	8(%r11), %eax
	cmpl	%eax, 8(%r10)
	jne	.L16
	movl	12(%r11), %eax
	cmpl	%eax, 12(%r10)
	jne	.L16
	movl	16(%r11), %eax
	cmpl	%eax, 16(%r10)
	jne	.L16
	movl	20(%r11), %eax
	cmpl	%eax, 20(%r10)
	jne	.L16
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L9:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L36
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	addq	$24, %r10
	cmpq	%r10, %r15
	jne	.L14
	addl	$1, %r14d
	cmpl	%r14d, -1240(%rbp)
	jne	.L18
.L19:
	movl	-1236(%rbp), %edx
	addq	$24, %r11
	cmpl	%edx, -1260(%rbp)
	jne	.L11
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L35:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L36:
	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
.LC1:
	.string	"%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.rodata
	.align 32
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rsi
	movl	$72, %ecx
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-640(%rbp), %rdi
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC1(%rip), %r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1224, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rdi, -1248(%rbp)
	rep movsq
	leaq	-1220(%rbp), %rsi
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movslq	-1220(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r13
	leaq	(%rax,%rax,2), %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L34:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L34
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L35
.L4:
	movq	%rsp, %rbx
	testl	%r13d, %r13d
	jle	.L5
	leaq	24(%rbx), %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	-24(%r12), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %r13
	call	__isoc99_scanf@PLT
	cmpq	%r12, %r13
	jne	.L6
	movl	-1220(%rbp), %r13d
	addq	$1, %r15
	addq	$24, %r12
	cmpl	%r15d, %r13d
	jg	.L7
.L5:
	leal	-1(%r13), %eax
	leaq	-1216(%rbp), %rdx
	movq	%rbx, %r11
	movl	$0, -1236(%rbp)
	movl	%eax, -1260(%rbp)
	leaq	-64(%rbp), %r12
	leaq	-640(%rbp), %r15
	movq	%rdx, -1256(%rbp)
	testl	%eax, %eax
	jle	.L12
	movl	%r13d, -1240(%rbp)
.L11:
	addl	$1, -1236(%rbp)
	movl	-1236(%rbp), %eax
	cmpl	%eax, -1240(%rbp)
	jle	.L19
	movl	(%r11), %r13d
	movl	%eax, %r14d
.L18:
	movq	-1256(%rbp), %r9
	movslq	%r14d, %rdx
	movq	-1248(%rbp), %rax
	leaq	(%rdx,%rdx,2), %r8
	movq	%r9, %r10
	addq	%r8, %r8
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%rax), %esi
	movl	8(%rax), %edi
	addq	$24, %rax
	addq	$24, %r9
	leal	-1(%rsi), %edx
	movl	-20(%rax), %esi
	movslq	%edx, %rdx
	leal	-1(%rsi), %ecx
	leal	-1(%rdi), %esi
	movl	-12(%rax), %edi
	addq	%r8, %rdx
	movslq	%ecx, %rcx
	movslq	%esi, %rsi
	movd	(%rbx,%rdx,4), %xmm0
	subl	$1, %edi
	addq	%r8, %rcx
	addq	%r8, %rsi
	movslq	%edi, %rdi
	movl	(%rbx,%rcx,4), %ecx
	movd	(%rbx,%rsi,4), %xmm1
	addq	%r8, %rdi
	movl	(%rbx,%rdi,4), %edi
	movd	%ecx, %xmm3
	punpckldq	%xmm3, %xmm0
	movd	%edi, %xmm2
	punpckldq	%xmm2, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, -24(%r9)
	movl	-8(%rax), %esi
	leal	-1(%rsi), %edx
	movl	-4(%rax), %esi
	movslq	%edx, %rdx
	leal	-1(%rsi), %ecx
	addq	%r8, %rdx
	movslq	%ecx, %rcx
	movd	(%rbx,%rdx,4), %xmm0
	addq	%r8, %rcx
	movl	(%rbx,%rcx,4), %ecx
	movd	%ecx, %xmm4
	punpckldq	%xmm4, %xmm0
	movq	%xmm0, -8(%r9)
	cmpq	%rax, %r12
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%r13d, (%r10)
	jne	.L16
	movl	4(%r11), %eax
	cmpl	%eax, 4(%r10)
	jne	.L16
	movl	8(%r11), %eax
	cmpl	%eax, 8(%r10)
	jne	.L16
	movl	12(%r11), %eax
	cmpl	%eax, 12(%r10)
	jne	.L16
	movl	16(%r11), %eax
	cmpl	%eax, 16(%r10)
	jne	.L16
	movl	20(%r11), %eax
	cmpl	%eax, 20(%r10)
	jne	.L16
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L9:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L36
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	addq	$24, %r10
	cmpq	%r10, %r15
	jne	.L14
	addl	$1, %r14d
	cmpl	%r14d, -1240(%rbp)
	jne	.L18
.L19:
	movl	-1236(%rbp), %edx
	addq	$24, %r11
	cmpl	%edx, -1260(%rbp)
	jne	.L11
.L12:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L35:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
int main(void){
   int n,i,j,k,l;
   int dice[24][6];
   int label[24][6]={{1,2,3,4,5,6},{1,3,5,2,4,6},{1,4,2,5,3,6},{1,5,4,3,2,6},{2,1,4,3,6,5},{2,3,1,6,4,5},
   {2,4,6,1,3,5},{2,6,3,4,1,5},{3,1,2,5,6,4},{3,2,6,1,5,4},{3,5,1,6,2,4},{3,6,5,2,1,4},{4,1,5,2,6,3},
   {4,2,1,6,5,3},{4,5,6,1,2,3},{4,6,2,5,1,3},{5,1,3,4,6,2},{5,3,6,1,4,2},{5,4,1,6,3,2},{5,6,4,3,1,2},
   {6,2,4,3,5,1},{6,3,2,5,4,1},{6,4,5,2,3,1},{6,5,3,4,2,1}};
   
   scanf("%d",&n);
   int dices[n][6];
   
   for(i=0;i<n;i++){
       for(j=0;j<6;j++) scanf("%d",&dices[i][j]);
   }
   
   /*for(i=0;i<n;i++){
       for(j=0;j<6;j++) {
           printf("%d",dices[i][j]);
       }
       putchar('\n');
   }*/
   
   for(i=0;i<n-1;i++){
       for(j=i+1;j<n;j++){
           
           for(k=0;k<24;k++){
               for(l=0;l<6;l++) dice[k][l]=dices[j][label[k][l]-1];
           }
           
          /* for(k=0;k<24;k++){
               for(l=0;l<6;l++) {
                   printf("%d",dice[k][l]);
               }
               putchar('\n');
           }*/
           
           for(k=0;k<24;k++){
               for(l=0;l<6;l++) {
                   if(dice[k][l]!=dices[i][l]) {
                       break;
                   }
               }
               if(l==6){
                    printf("No\n");
                    return 0;
               }
           }
       }
   }
   
   printf("Yes\n");
   return 0;
}


3
1 2 3 4 5 6
6 5 4 3 2 1
5 4 0 2 1 6
 3
1 2 3 4 5 6
6 2 5 3 5 1
6 5 4 3 2 1
 3
1 2 3 4 5 6
5 5 4 3 2 1
5 4 0 2 1 6
 3
1 2 3 4 5 6
6 2 5 3 0 1
6 5 4 3 2 1
 3
1 2 3 3 5 6
5 5 4 3 2 1
5 4 0 2 1 6
 3
1 4 3 4 5 6
6 2 5 3 0 1
6 5 4 3 2 1
 3
1 2 3 3 5 6
5 2 4 3 2 1
5 4 0 2 1 6
 3
1 6 3 4 5 6
6 2 5 3 0 1
6 5 4 3 2 1
 3
1 2 3 3 5 6
5 2 4 3 2 1
5 4 0 2 1 1
 3
1 6 3 4 5 6
6 2 5 3 0 1
6 5 2 3 2 1

Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes

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

```c
#include <stdio.h>
int main(void){
   int n,i,j,k,l;
   int dice[24][6];
   int label[24][6]={{1,2,3,4,5,6},{1,3,5,2,4,6},{1,4,2,5,3,6},{1,5,4,3,2,6},{2,1,4,3,6,5},{2,3,1,6,4,5},
   {2,4,6,1,3,5},{2,6,3,4,1,5},{3,1,2,5,6,4},{3,2,6,1,5,4},{3,5,1,6,2,4},{3,6,5,2,1,4},{4,1,5,2,6,3},
   {4,2,1,6,5,3},{4,5,6,1,2,3},{4,6,2,5,1,3},{5,1,3,4,6,2},{5,3,6,1,4,2},{5,4,1,6,3,2},{5,6,4,3,1,2},
   {6,2,4,3,5,1},{6,3,2,5,4,1},{6,4,5,2,3,1},{6,5,3,4,2,1}};
   
   scanf("%d",&n);
   int dices[n][6];
   
   for(i=0;i<n;i++){
       for(j=0;j<6;j++) scanf("%d",&dices[i][j]);
   }
   
   /*for(i=0;i<n;i++){
       for(j=0;j<6;j++) {
           printf("%d",dices[i][j]);
       }
       putchar('\n');
   }*/
   
   for(i=0;i<n-1;i++){
       for(j=i+1;j<n;j++){
           
           for(k=0;k<24;k++){
               for(l=0;l<6;l++) dice[k][l]=dices[j][label[k][l]-1];
           }
           
          /* for(k=0;k<24;k++){
               for(l=0;l<6;l++) {
                   printf("%d",dice[k][l]);
               }
               putchar('\n');
           }*/
           
           for(k=0;k<24;k++){
               for(l=0;l<6;l++) {
                   if(dice[k][l]!=dices[i][l]) {
                       break;
                   }
               }
               if(l==6){
                    printf("No\n");
                    return 0;
               }
           }
       }
   }
   
   printf("Yes\n");
   return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.align 32
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1224, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-640(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movl	$72, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1252(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -1232(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -1224(%rbp)
	movl	$0, -1248(%rbp)
	jmp	.L5
.L8:
	movl	$0, -1244(%rbp)
	jmp	.L6
.L7:
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1248(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-1224(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1244(%rbp)
.L6:
	cmpl	$5, -1244(%rbp)
	jle	.L7
	addl	$1, -1248(%rbp)
.L5:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1248(%rbp)
	jl	.L8
	movl	$0, -1248(%rbp)
	jmp	.L9
.L24:
	movl	-1248(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1244(%rbp)
	jmp	.L10
.L23:
	movl	$0, -1240(%rbp)
	jmp	.L11
.L14:
	movl	$0, -1236(%rbp)
	jmp	.L12
.L13:
	movl	-1236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-640(%rbp,%rax,4), %eax
	subl	$1, %eax
	movq	-1224(%rbp), %rdx
	movslq	%eax, %rsi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	(%rdx,%rax,4), %edx
	movl	-1236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1240(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%edx, -1216(%rbp,%rax,4)
	addl	$1, -1236(%rbp)
.L12:
	cmpl	$5, -1236(%rbp)
	jle	.L13
	addl	$1, -1240(%rbp)
.L11:
	cmpl	$23, -1240(%rbp)
	jle	.L14
	movl	$0, -1240(%rbp)
	jmp	.L15
.L22:
	movl	$0, -1236(%rbp)
	jmp	.L16
.L19:
	movl	-1236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-1216(%rbp,%rax,4), %esi
	movq	-1224(%rbp), %rdx
	movl	-1236(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1248(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	(%rdx,%rax,4), %eax
	cmpl	%eax, %esi
	jne	.L27
	addl	$1, -1236(%rbp)
.L16:
	cmpl	$5, -1236(%rbp)
	jle	.L19
	jmp	.L18
.L27:
	nop
.L18:
	cmpl	$6, -1236(%rbp)
	jne	.L20
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L21
.L20:
	addl	$1, -1240(%rbp)
.L15:
	cmpl	$23, -1240(%rbp)
	jle	.L22
	addl	$1, -1244(%rbp)
.L10:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jl	.L23
	addl	$1, -1248(%rbp)
.L9:
	movl	-1252(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1248(%rbp)
	jl	.L24
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L21:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.align 32
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1224, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-640(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movl	$72, %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	rep movsq
	leaq	-1252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1252(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -1232(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -1224(%rbp)
	movl	$0, -1248(%rbp)
	jmp	.L5
.L8:
	movl	$0, -1244(%rbp)
	jmp	.L6
.L7:
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1248(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-1224(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1244(%rbp)
.L6:
	cmpl	$5, -1244(%rbp)
	jle	.L7
	addl	$1, -1248(%rbp)
.L5:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1248(%rbp)
	jl	.L8
	movl	$0, -1248(%rbp)
	jmp	.L9
.L24:
	movl	-1248(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1244(%rbp)
	jmp	.L10
.L23:
	movl	$0, -1240(%rbp)
	jmp	.L11
.L14:
	movl	$0, -1236(%rbp)
	jmp	.L12
.L13:
	movl	-1236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-640(%rbp,%rax,4), %eax
	subl	$1, %eax
	movq	-1224(%rbp), %rdx
	movslq	%eax, %rsi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	(%rdx,%rax,4), %edx
	movl	-1236(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1240(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movl	%edx, -1216(%rbp,%rax,4)
	addl	$1, -1236(%rbp)
.L12:
	cmpl	$5, -1236(%rbp)
	jle	.L13
	addl	$1, -1240(%rbp)
.L11:
	cmpl	$23, -1240(%rbp)
	jle	.L14
	movl	$0, -1240(%rbp)
	jmp	.L15
.L22:
	movl	$0, -1236(%rbp)
	jmp	.L16
.L19:
	movl	-1236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-1216(%rbp,%rax,4), %esi
	movq	-1224(%rbp), %rdx
	movl	-1236(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1248(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	movl	(%rdx,%rax,4), %eax
	cmpl	%eax, %esi
	jne	.L27
	addl	$1, -1236(%rbp)
.L16:
	cmpl	$5, -1236(%rbp)
	jle	.L19
	jmp	.L18
.L27:
	nop
.L18:
	cmpl	$6, -1236(%rbp)
	jne	.L20
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L21
.L20:
	addl	$1, -1240(%rbp)
.L15:
	cmpl	$23, -1240(%rbp)
	jle	.L22
	addl	$1, -1244(%rbp)
.L10:
	movl	-1252(%rbp), %eax
	cmpl	%eax, -1244(%rbp)
	jl	.L23
	addl	$1, -1248(%rbp)
.L9:
	movl	-1252(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1248(%rbp)
	jl	.L24
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L21:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
