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, k,d,a;
   scanf("%d %d", &n, &k);
   int data[n];
   for (int i = 0; i < n; i++){
      data[i] = 0;
   }
   for (int i = 0; i < k; i++){
      scanf("%d", &d);
      for (int j = 0; j < d; j++){
         scanf("%d", &a);
         data[a - 1]++;
      }
   }
   int count = 0;
   for (int i = 0; i < n; i++){
      if (data[i] == 0){
         count++;
      }
   }
   printf("%d", count);
}
```

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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	call	__isoc99_scanf@PLT
	movslq	-72(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rdx, %r12
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L36
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L4:
	movq	%rsp, %rbx
	testl	%r12d, %r12d
	jle	.L5
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	.LC1(%rip), %r14
	movq	%rbx, %rdi
	call	memset@PLT
	movl	-68(%rbp), %edx
	testl	%edx, %edx
	jle	.L6
.L19:
	leaq	-64(%rbp), %rax
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	movq	%rax, -88(%rbp)
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	-88(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	subl	$1, %eax
	cltq
	addl	$1, (%rbx,%rax,4)
	cmpl	%r15d, -64(%rbp)
	jg	.L7
.L10:
	addl	$1, %r13d
	cmpl	%r13d, -68(%rbp)
	jg	.L8
	movl	-72(%rbp), %r12d
	testl	%r12d, %r12d
	jle	.L20
.L6:
	testl	%r12d, %r12d
	movl	$1, %ecx
	cmovg	%r12d, %ecx
	cmpl	$3, %r12d
	jle	.L23
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	movdqa	%xmm0, %xmm2
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm1
	addq	$16, %rax
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L13
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L11
.L12:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%rbx,%rcx,4), %rcx
	cmpl	$1, (%rcx)
	adcl	$0, %edx
	cmpl	%r12d, %esi
	jge	.L11
	cmpl	$0, 4(%rcx)
	jne	.L16
	addl	$1, %edx
.L16:
	addl	$2, %eax
	cmpl	%r12d, %eax
	jge	.L11
	cmpl	$0, 8(%rcx)
	jne	.L11
	addl	$1, %edx
.L11:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L38
	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
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	cmpl	$0, -68(%rbp)
	leaq	.LC1(%rip), %r14
	jg	.L19
.L20:
	xorl	%edx, %edx
	jmp	.L11
.L23:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L12
.L38:
	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:
```

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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	call	__isoc99_scanf@PLT
	movslq	-72(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rdx, %r12
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L36
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L4:
	movq	%rsp, %rbx
	testl	%r12d, %r12d
	jle	.L5
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	.LC1(%rip), %r14
	movq	%rbx, %rdi
	call	memset@PLT
	movl	-68(%rbp), %edx
	testl	%edx, %edx
	jle	.L6
.L19:
	leaq	-64(%rbp), %rax
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	movq	%rax, -88(%rbp)
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	-88(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	subl	$1, %eax
	cltq
	addl	$1, (%rbx,%rax,4)
	cmpl	%r15d, -64(%rbp)
	jg	.L7
.L10:
	addl	$1, %r13d
	cmpl	%r13d, -68(%rbp)
	jg	.L8
	movl	-72(%rbp), %r12d
	testl	%r12d, %r12d
	jle	.L20
.L6:
	testl	%r12d, %r12d
	movl	$1, %ecx
	cmovg	%r12d, %ecx
	cmpl	$3, %r12d
	jle	.L23
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	movdqa	%xmm0, %xmm2
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm1
	addq	$16, %rax
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L13
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L11
.L12:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%rbx,%rcx,4), %rcx
	cmpl	$1, (%rcx)
	adcl	$0, %edx
	cmpl	%r12d, %esi
	jge	.L11
	cmpl	$0, 4(%rcx)
	jne	.L16
	addl	$1, %edx
.L16:
	addl	$2, %eax
	cmpl	%r12d, %eax
	jge	.L11
	cmpl	$0, 8(%rcx)
	jne	.L11
	addl	$1, %edx
.L11:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L38
	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
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	cmpl	$0, -68(%rbp)
	leaq	.LC1(%rip), %r14
	jg	.L19
.L20:
	xorl	%edx, %edx
	jmp	.L11
.L23:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L12
.L38:
	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
```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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	call	__isoc99_scanf@PLT
	movslq	-72(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rdx, %r12
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L36
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L4:
	movq	%rsp, %rbx
	testl	%r12d, %r12d
	jle	.L5
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	.LC1(%rip), %r14
	movq	%rbx, %rdi
	call	memset@PLT
	movl	-68(%rbp), %edx
	testl	%edx, %edx
	jle	.L6
.L19:
	leaq	-64(%rbp), %rax
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	movq	%rax, -88(%rbp)
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	-88(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	subl	$1, %eax
	cltq
	addl	$1, (%rbx,%rax,4)
	cmpl	%r15d, -64(%rbp)
	jg	.L7
.L10:
	addl	$1, %r13d
	cmpl	%r13d, -68(%rbp)
	jg	.L8
	movl	-72(%rbp), %r12d
	testl	%r12d, %r12d
	jle	.L20
.L6:
	testl	%r12d, %r12d
	movl	$1, %ecx
	cmovg	%r12d, %ecx
	cmpl	$3, %r12d
	jle	.L23
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	movdqa	%xmm0, %xmm2
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm1
	addq	$16, %rax
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L13
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L11
.L12:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%rbx,%rcx,4), %rcx
	cmpl	$1, (%rcx)
	adcl	$0, %edx
	cmpl	%r12d, %esi
	jge	.L11
	cmpl	$0, 4(%rcx)
	jne	.L16
	addl	$1, %edx
.L16:
	addl	$2, %eax
	cmpl	%r12d, %eax
	jge	.L11
	cmpl	$0, 8(%rcx)
	jne	.L11
	addl	$1, %edx
.L11:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L38
	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
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	cmpl	$0, -68(%rbp)
	leaq	.LC1(%rip), %r14
	jg	.L19
.L20:
	xorl	%edx, %edx
	jmp	.L11
.L23:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L12
.L38:
	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:
```
```c
#include <stdio.h>
 int main(void){
    int n, k,d,a;
   scanf("%d %d", &n, &k);
   int data[n];
   for (int i = 0; i < n; i++){
      data[i] = 0;
   }
   for (int i = 0; i < k; i++){
      scanf("%d", &d);
      for (int j = 0; j < d; j++){
         scanf("%d", &a);
         data[a - 1]++;
      }
   }
   int count = 0;
   for (int i = 0; i < n; i++){
      if (data[i] == 0){
         count++;
      }
   }
   printf("%d", count);
}
```
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, k,d,a;
   scanf("%d %d", &n, &k);
   int data[n];
   for (int i = 0; i < n; i++){
      data[i] = 0;
   }
   for (int i = 0; i < k; i++){
      scanf("%d", &d);
      for (int j = 0; j < d; j++){
         scanf("%d", &a);
         data[a - 1]++;
      }
   }
   int count = 0;
   for (int i = 0; i < n; i++){
      if (data[i] == 0){
         count++;
      }
   }
   printf("%d", count);
}
```

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:

3 1
2
1 3
1
3
 5 1
2
1 3
1
3
 3 3
0
3
1
3
1
3
 0 -1
2
1 2
5
-1
 6 -2
1
0 0
0
-1
 12 -2
1
0 0
0
-1
 4 -8
-2
1 0
0
0
 7 -14
-2
1 0
0
0
 21 -2
0
0 0
0
-2
 5 -2
1
0 1
0
-1

1 3 1 0 6 12 4 7 21 5
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, k,d,a;
   scanf("%d %d", &n, &k);
   int data[n];
   for (int i = 0; i < n; i++){
      data[i] = 0;
   }
   for (int i = 0; i < k; i++){
      scanf("%d", &d);
      for (int j = 0; j < d; j++){
         scanf("%d", &a);
         data[a - 1]++;
      }
   }
   int count = 0;
   for (int i = 0; i < n; i++){
      if (data[i] == 0){
         count++;
      }
   }
   printf("%d", count);
}
```

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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	call	__isoc99_scanf@PLT
	movslq	-72(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rdx, %r12
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L36
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L4:
	movq	%rsp, %rbx
	testl	%r12d, %r12d
	jle	.L5
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	.LC1(%rip), %r14
	movq	%rbx, %rdi
	call	memset@PLT
	movl	-68(%rbp), %edx
	testl	%edx, %edx
	jle	.L6
.L19:
	leaq	-64(%rbp), %rax
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	movq	%rax, -88(%rbp)
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	-88(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	subl	$1, %eax
	cltq
	addl	$1, (%rbx,%rax,4)
	cmpl	%r15d, -64(%rbp)
	jg	.L7
.L10:
	addl	$1, %r13d
	cmpl	%r13d, -68(%rbp)
	jg	.L8
	movl	-72(%rbp), %r12d
	testl	%r12d, %r12d
	jle	.L20
.L6:
	testl	%r12d, %r12d
	movl	$1, %ecx
	cmovg	%r12d, %ecx
	cmpl	$3, %r12d
	jle	.L23
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	movdqa	%xmm0, %xmm2
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm1
	addq	$16, %rax
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L13
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L11
.L12:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%rbx,%rcx,4), %rcx
	cmpl	$1, (%rcx)
	adcl	$0, %edx
	cmpl	%r12d, %esi
	jge	.L11
	cmpl	$0, 4(%rcx)
	jne	.L16
	addl	$1, %edx
.L16:
	addl	$2, %eax
	cmpl	%r12d, %eax
	jge	.L11
	cmpl	$0, 8(%rcx)
	jne	.L11
	addl	$1, %edx
.L11:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L38
	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
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	cmpl	$0, -68(%rbp)
	leaq	.LC1(%rip), %r14
	jg	.L19
.L20:
	xorl	%edx, %edx
	jmp	.L11
.L23:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L12
.L38:
	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:
```

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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	call	__isoc99_scanf@PLT
	movslq	-72(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rdx, %r12
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L36
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L4:
	movq	%rsp, %rbx
	testl	%r12d, %r12d
	jle	.L5
	salq	$2, %rdx
	xorl	%esi, %esi
	leaq	.LC1(%rip), %r14
	movq	%rbx, %rdi
	call	memset@PLT
	movl	-68(%rbp), %edx
	testl	%edx, %edx
	jle	.L6
.L19:
	leaq	-64(%rbp), %rax
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	movq	%rax, -88(%rbp)
	leaq	-60(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	-88(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	subl	$1, %eax
	cltq
	addl	$1, (%rbx,%rax,4)
	cmpl	%r15d, -64(%rbp)
	jg	.L7
.L10:
	addl	$1, %r13d
	cmpl	%r13d, -68(%rbp)
	jg	.L8
	movl	-72(%rbp), %r12d
	testl	%r12d, %r12d
	jle	.L20
.L6:
	testl	%r12d, %r12d
	movl	$1, %ecx
	cmovg	%r12d, %ecx
	cmpl	$3, %r12d
	jle	.L23
	movl	%ecx, %edx
	pxor	%xmm0, %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	movdqa	%xmm0, %xmm2
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm1
	addq	$16, %rax
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L13
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	je	.L11
.L12:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%rbx,%rcx,4), %rcx
	cmpl	$1, (%rcx)
	adcl	$0, %edx
	cmpl	%r12d, %esi
	jge	.L11
	cmpl	$0, 4(%rcx)
	jne	.L16
	addl	$1, %edx
.L16:
	addl	$2, %eax
	cmpl	%r12d, %eax
	jge	.L11
	cmpl	$0, 8(%rcx)
	jne	.L11
	addl	$1, %edx
.L11:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L38
	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
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L5:
	cmpl	$0, -68(%rbp)
	leaq	.LC1(%rip), %r14
	jg	.L19
.L20:
	xorl	%edx, %edx
	jmp	.L11
.L23:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L12
.L38:
	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:
```