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

```c
#include <stdio.h>
int main(void)
{

    
	int n,m,A=0,k[30]={0},x,y;


	scanf("%d%d",&n,&m);
	    for(int i=0;i<n;i++){
        scanf("%d",&x);
       	    for(int j=0;j<x;j++){
              scanf("%d",&y);
                 k[y-1]++;
        }

 }
    for(int i=0;i<m;i++){
        if(k[i]==n) A++;}

    printf("%d",A);

}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$15, %ecx
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L4
.L3:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
.L2:
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L15
	leal	-1(%rcx), %edx
	cmpl	$2, %edx
	jbe	.L16
	movd	%eax, %xmm3
	movl	%ecx, %edx
	pshufd	$0, %xmm3, %xmm1
	shrl	$2, %edx
	movdqa	%xmm1, %xmm0
	pcmpeqd	16(%rsp), %xmm0
	pand	.LC2(%rip), %xmm0
	cmpl	$1, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	32(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	48(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	64(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	80(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$5, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	96(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$6, %edx
	je	.L8
	pcmpeqd	112(%rsp), %xmm1
	psubd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	movl	%ecx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %cl
	je	.L6
.L7:
	movslq	%esi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L40
.L10:
	leal	1(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L41
.L11:
	addl	$2, %esi
	cmpl	%ecx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpl	16(%rsp,%rsi,4), %eax
	je	.L42
.L6:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L40:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L10
.L41:
	addl	$1, %edx
	jmp	.L11
.L42:
	addl	$1, %edx
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L6
.L16:
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	.L7
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$15, %ecx
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L4
.L3:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
.L2:
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L15
	leal	-1(%rcx), %edx
	cmpl	$2, %edx
	jbe	.L16
	movd	%eax, %xmm3
	movl	%ecx, %edx
	pshufd	$0, %xmm3, %xmm1
	shrl	$2, %edx
	movdqa	%xmm1, %xmm0
	pcmpeqd	16(%rsp), %xmm0
	pand	.LC2(%rip), %xmm0
	cmpl	$1, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	32(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	48(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	64(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	80(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$5, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	96(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$6, %edx
	je	.L8
	pcmpeqd	112(%rsp), %xmm1
	psubd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	movl	%ecx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %cl
	je	.L6
.L7:
	movslq	%esi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L40
.L10:
	leal	1(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L41
.L11:
	addl	$2, %esi
	cmpl	%ecx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpl	16(%rsp,%rsi,4), %eax
	je	.L42
.L6:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L40:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L10
.L41:
	addl	$1, %edx
	jmp	.L11
.L42:
	addl	$1, %edx
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L6
.L16:
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	.L7
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$15, %ecx
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L4
.L3:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
.L2:
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L15
	leal	-1(%rcx), %edx
	cmpl	$2, %edx
	jbe	.L16
	movd	%eax, %xmm3
	movl	%ecx, %edx
	pshufd	$0, %xmm3, %xmm1
	shrl	$2, %edx
	movdqa	%xmm1, %xmm0
	pcmpeqd	16(%rsp), %xmm0
	pand	.LC2(%rip), %xmm0
	cmpl	$1, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	32(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	48(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	64(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	80(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$5, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	96(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$6, %edx
	je	.L8
	pcmpeqd	112(%rsp), %xmm1
	psubd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	movl	%ecx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %cl
	je	.L6
.L7:
	movslq	%esi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L40
.L10:
	leal	1(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L41
.L11:
	addl	$2, %esi
	cmpl	%ecx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpl	16(%rsp,%rsi,4), %eax
	je	.L42
.L6:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L40:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L10
.L41:
	addl	$1, %edx
	jmp	.L11
.L42:
	addl	$1, %edx
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L6
.L16:
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	.L7
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```
```c
#include <stdio.h>
int main(void)
{

    
	int n,m,A=0,k[30]={0},x,y;


	scanf("%d%d",&n,&m);
	    for(int i=0;i<n;i++){
        scanf("%d",&x);
       	    for(int j=0;j<x;j++){
              scanf("%d",&y);
                 k[y-1]++;
        }

 }
    for(int i=0;i<m;i++){
        if(k[i]==n) A++;}

    printf("%d",A);

}

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

```c
#include <stdio.h>
int main(void)
{

    
	int n,m,A=0,k[30]={0},x,y;


	scanf("%d%d",&n,&m);
	    for(int i=0;i<n;i++){
        scanf("%d",&x);
       	    for(int j=0;j<x;j++){
              scanf("%d",&y);
                 k[y-1]++;
        }

 }
    for(int i=0;i<m;i++){
        if(k[i]==n) A++;}

    printf("%d",A);

}

```

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.
Optimized Assembly Code:

1 30
3 2 10 30
 3 7
2 1 3
3 1 2 3
2 3 2
 3 7
2 1 3
3 1 2 3
2 3 1
 3 7
2 1 3
3 0 2 3
2 5 1
 1 30
3 4 10 30
 1 30
5 4 10 30
 1 30
5 4 2 30
 1 30
6 4 2 30
 1 30
3 2 3 30
 1 30
3 4 20 30

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

```c
#include <stdio.h>
int main(void)
{

    
	int n,m,A=0,k[30]={0},x,y;


	scanf("%d%d",&n,&m);
	    for(int i=0;i<n;i++){
        scanf("%d",&x);
       	    for(int j=0;j<x;j++){
              scanf("%d",&y);
                 k[y-1]++;
        }

 }
    for(int i=0;i<m;i++){
        if(k[i]==n) A++;}

    printf("%d",A);

}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$15, %ecx
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L4
.L3:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
.L2:
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L15
	leal	-1(%rcx), %edx
	cmpl	$2, %edx
	jbe	.L16
	movd	%eax, %xmm3
	movl	%ecx, %edx
	pshufd	$0, %xmm3, %xmm1
	shrl	$2, %edx
	movdqa	%xmm1, %xmm0
	pcmpeqd	16(%rsp), %xmm0
	pand	.LC2(%rip), %xmm0
	cmpl	$1, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	32(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	48(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	64(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	80(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$5, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	96(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$6, %edx
	je	.L8
	pcmpeqd	112(%rsp), %xmm1
	psubd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	movl	%ecx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %cl
	je	.L6
.L7:
	movslq	%esi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L40
.L10:
	leal	1(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L41
.L11:
	addl	$2, %esi
	cmpl	%ecx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpl	16(%rsp,%rsi,4), %eax
	je	.L42
.L6:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L40:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L10
.L41:
	addl	$1, %edx
	jmp	.L11
.L42:
	addl	$1, %edx
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L6
.L16:
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	.L7
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$15, %ecx
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	addl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L4
.L3:
	movl	(%rsp), %eax
	addl	$1, %r12d
	cmpl	%r12d, %eax
	jg	.L5
.L2:
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L15
	leal	-1(%rcx), %edx
	cmpl	$2, %edx
	jbe	.L16
	movd	%eax, %xmm3
	movl	%ecx, %edx
	pshufd	$0, %xmm3, %xmm1
	shrl	$2, %edx
	movdqa	%xmm1, %xmm0
	pcmpeqd	16(%rsp), %xmm0
	pand	.LC2(%rip), %xmm0
	cmpl	$1, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	32(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	48(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	64(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	80(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$5, %edx
	je	.L8
	movdqa	%xmm1, %xmm2
	pcmpeqd	96(%rsp), %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$6, %edx
	je	.L8
	pcmpeqd	112(%rsp), %xmm1
	psubd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	movl	%ecx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %cl
	je	.L6
.L7:
	movslq	%esi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L40
.L10:
	leal	1(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpl	16(%rsp,%rdi,4), %eax
	je	.L41
.L11:
	addl	$2, %esi
	cmpl	%ecx, %esi
	jge	.L6
	movslq	%esi, %rsi
	cmpl	16(%rsp,%rsi,4), %eax
	je	.L42
.L6:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L40:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L10
.L41:
	addl	$1, %edx
	jmp	.L11
.L42:
	addl	$1, %edx
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L6
.L16:
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	.L7
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```