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

```c
/*
AizuOnline A1124
Title When Can We Meet?
*/
#include <stdio.h>
// Select Below
//#include <stdlib.h>
#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
//Global data section
int N,Q,M,D;
char date_table[100];
//
main()
{
  int i,j,maxmem,maxdat;

  while(EOF!=scanf("%d %d ",&N,&Q) && (N||Q))
    {
      memset(date_table,0,sizeof(date_table));
      for(i=0;i<N;i++)
	{
	  scanf("%d",&M);
	  //printf("M:%d\n",M);
	  for(j=0;j<M;j++)
	    {
	      scanf("%d ",&D);
	      date_table[D]++;
	    }
	}
      maxmem=0;maxdat=0;
      for(i=1;i<=sizeof(date_table);i++)
	if(date_table[i]>=Q && date_table[i]>maxmem)
	  {
	    maxdat=i;
	    maxmem=date_table[i];	 
	  }
      if(maxdat>0)
	printf("%d\n",maxdat);
      else
	printf("0\n");
    NEXT:
      ;
    }
return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
.LC4:
	.string	"%d %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
	leaq	date_table(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	M(%rip), %r14
	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	D(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	leaq	Q(%rip), %rdx
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L21
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	Q(%rip), %esi
	testl	%esi, %esi
	je	.L21
	movl	$12, %ecx
	xorl	%eax, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
.L8:
	movl	$1, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	movsbl	(%r15,%rax), %edx
	cmpl	%esi, %edx
	jl	.L9
	cmpl	%ecx, %edx
	setg	%dil
	testb	%dil, %dil
	cmovne	%eax, %r9d
	cmovne	%edx, %ecx
.L9:
	addq	$1, %rax
	cmpq	$101, %rax
	jne	.L11
	testl	%r9d, %r9d
	je	.L12
	movl	%r9d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L15:
	movl	$12, %ecx
	movl	$0, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	M(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	D(%rip), %rax
	addb	$1, (%r15,%rax)
	cmpl	%r13d, M(%rip)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, N(%rip)
	jg	.L5
.L3:
	movl	Q(%rip), %esi
	jmp	.L8
.L12:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	date_table
	.bss
	.align 32
	.type	date_table, @object
	.size	date_table, 100
date_table:
	.zero	100
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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"
.LC1:
	.string	"%d "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
.LC4:
	.string	"%d %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
	leaq	date_table(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	M(%rip), %r14
	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	D(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	leaq	Q(%rip), %rdx
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L21
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	Q(%rip), %esi
	testl	%esi, %esi
	je	.L21
	movl	$12, %ecx
	xorl	%eax, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
.L8:
	movl	$1, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	movsbl	(%r15,%rax), %edx
	cmpl	%esi, %edx
	jl	.L9
	cmpl	%ecx, %edx
	setg	%dil
	testb	%dil, %dil
	cmovne	%eax, %r9d
	cmovne	%edx, %ecx
.L9:
	addq	$1, %rax
	cmpq	$101, %rax
	jne	.L11
	testl	%r9d, %r9d
	je	.L12
	movl	%r9d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L15:
	movl	$12, %ecx
	movl	$0, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	M(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	D(%rip), %rax
	addb	$1, (%r15,%rax)
	cmpl	%r13d, M(%rip)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, N(%rip)
	jg	.L5
.L3:
	movl	Q(%rip), %esi
	jmp	.L8
.L12:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	date_table
	.bss
	.align 32
	.type	date_table, @object
	.size	date_table, 100
date_table:
	.zero	100
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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"
.LC1:
	.string	"%d "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
.LC4:
	.string	"%d %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
	leaq	date_table(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	M(%rip), %r14
	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	D(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	leaq	Q(%rip), %rdx
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L21
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	Q(%rip), %esi
	testl	%esi, %esi
	je	.L21
	movl	$12, %ecx
	xorl	%eax, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
.L8:
	movl	$1, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	movsbl	(%r15,%rax), %edx
	cmpl	%esi, %edx
	jl	.L9
	cmpl	%ecx, %edx
	setg	%dil
	testb	%dil, %dil
	cmovne	%eax, %r9d
	cmovne	%edx, %ecx
.L9:
	addq	$1, %rax
	cmpq	$101, %rax
	jne	.L11
	testl	%r9d, %r9d
	je	.L12
	movl	%r9d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L15:
	movl	$12, %ecx
	movl	$0, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	M(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	D(%rip), %rax
	addb	$1, (%r15,%rax)
	cmpl	%r13d, M(%rip)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, N(%rip)
	jg	.L5
.L3:
	movl	Q(%rip), %esi
	jmp	.L8
.L12:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	date_table
	.bss
	.align 32
	.type	date_table, @object
	.size	date_table, 100
date_table:
	.zero	100
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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
/*
AizuOnline A1124
Title When Can We Meet?
*/
#include <stdio.h>
// Select Below
//#include <stdlib.h>
#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
//Global data section
int N,Q,M,D;
char date_table[100];
//
main()
{
  int i,j,maxmem,maxdat;

  while(EOF!=scanf("%d %d ",&N,&Q) && (N||Q))
    {
      memset(date_table,0,sizeof(date_table));
      for(i=0;i<N;i++)
	{
	  scanf("%d",&M);
	  //printf("M:%d\n",M);
	  for(j=0;j<M;j++)
	    {
	      scanf("%d ",&D);
	      date_table[D]++;
	    }
	}
      maxmem=0;maxdat=0;
      for(i=1;i<=sizeof(date_table);i++)
	if(date_table[i]>=Q && date_table[i]>maxmem)
	  {
	    maxdat=i;
	    maxmem=date_table[i];	 
	  }
      if(maxdat>0)
	printf("%d\n",maxdat);
      else
	printf("0\n");
    NEXT:
      ;
    }
return(0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
AizuOnline A1124
Title When Can We Meet?
*/
#include <stdio.h>
// Select Below
//#include <stdlib.h>
#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
//Global data section
int N,Q,M,D;
char date_table[100];
//
main()
{
  int i,j,maxmem,maxdat;

  while(EOF!=scanf("%d %d ",&N,&Q) && (N||Q))
    {
      memset(date_table,0,sizeof(date_table));
      for(i=0;i<N;i++)
	{
	  scanf("%d",&M);
	  //printf("M:%d\n",M);
	  for(j=0;j<M;j++)
	    {
	      scanf("%d ",&D);
	      date_table[D]++;
	    }
	}
      maxmem=0;maxdat=0;
      for(i=1;i<=sizeof(date_table);i++)
	if(date_table[i]>=Q && date_table[i]>maxmem)
	  {
	    maxdat=i;
	    maxmem=date_table[i];	 
	  }
      if(maxdat>0)
	printf("%d\n",maxdat);
      else
	printf("0\n");
    NEXT:
      ;
    }
return(0);
}```

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 2
2 1 2
0
3 3 4 8
3 2
4 1 5 8 9
3 2 5 9
5 2 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 4
3 3
2 1 2
3 1 2 9
2 2 4
0 0
 3 2
2 1 4
0
3 3 4 8
3 2
4 1 5 8 9
3 2 5 9
5 1 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 4
3 3
2 1 2
3 1 2 9
2 2 4
0 0
 3 2
2 1 2
0
3 3 4 8
3 2
4 1 5 2 9
3 2 5 9
5 2 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 4
3 3
2 1 2
3 1 2 9
2 2 4
0 0
 3 2
2 1 2
0
3 3 4 8
3 2
4 1 5 2 9
3 2 5 9
5 2 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 4
3 3
2 1 1
3 1 2 9
2 2 4
0 0
 3 2
2 1 2
0
3 3 4 8
3 2
4 1 5 0 9
3 2 5 9
5 2 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 4
3 3
2 1 1
3 1 2 9
2 2 4
0 0
 3 2
2 1 2
0
3 3 4 8
3 2
4 1 9 2 9
3 2 5 9
5 2 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 4
3 3
2 1 2
3 1 2 9
2 2 4
0 0
 3 2
2 2 2
0
3 3 4 8
3 2
4 1 5 2 9
3 2 5 9
5 2 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 4
3 3
2 1 1
3 1 2 9
2 2 4
0 0
 3 2
2 1 2
0
3 3 4 8
3 2
4 1 5 0 9
3 2 5 9
5 2 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 4
3 3
2 0 1
3 1 2 9
2 2 4
0 0
 3 2
2 1 3
0
3 3 4 8
3 2
4 1 5 8 9
3 2 5 9
5 1 4 5 7 9
3 3
2 1 4
3 2 5 9
2 2 7
3 3
2 1 2
3 1 2 9
2 2 4
0 0
 3 2
2 1 3
0
3 3 4 8
3 2
4 1 5 8 9
3 2 5 9
5 1 4 5 7 9
3 1
2 1 4
3 2 5 9
2 2 7
3 3
2 1 2
3 1 2 9
2 2 4
0 0

0
5
0
2
 4
5
0
2
 0
2
0
2
 0
2
0
1
 0
5
0
1
 0
9
0
2
 2
2
0
1
 0
5
0
0
 3
5
0
2
 3
5
2
2

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

```c
/*
AizuOnline A1124
Title When Can We Meet?
*/
#include <stdio.h>
// Select Below
//#include <stdlib.h>
#include <string.h>
//#include <float.h>
//#include <math.h>
//#include <limits.h>
//Global data section
int N,Q,M,D;
char date_table[100];
//
main()
{
  int i,j,maxmem,maxdat;

  while(EOF!=scanf("%d %d ",&N,&Q) && (N||Q))
    {
      memset(date_table,0,sizeof(date_table));
      for(i=0;i<N;i++)
	{
	  scanf("%d",&M);
	  //printf("M:%d\n",M);
	  for(j=0;j<M;j++)
	    {
	      scanf("%d ",&D);
	      date_table[D]++;
	    }
	}
      maxmem=0;maxdat=0;
      for(i=1;i<=sizeof(date_table);i++)
	if(date_table[i]>=Q && date_table[i]>maxmem)
	  {
	    maxdat=i;
	    maxmem=date_table[i];	 
	  }
      if(maxdat>0)
	printf("%d\n",maxdat);
      else
	printf("0\n");
    NEXT:
      ;
    }
return(0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
.LC4:
	.string	"%d %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
	leaq	date_table(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	M(%rip), %r14
	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	D(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	leaq	Q(%rip), %rdx
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L21
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	Q(%rip), %esi
	testl	%esi, %esi
	je	.L21
	movl	$12, %ecx
	xorl	%eax, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
.L8:
	movl	$1, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	movsbl	(%r15,%rax), %edx
	cmpl	%esi, %edx
	jl	.L9
	cmpl	%ecx, %edx
	setg	%dil
	testb	%dil, %dil
	cmovne	%eax, %r9d
	cmovne	%edx, %ecx
.L9:
	addq	$1, %rax
	cmpq	$101, %rax
	jne	.L11
	testl	%r9d, %r9d
	je	.L12
	movl	%r9d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L15:
	movl	$12, %ecx
	movl	$0, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	M(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	D(%rip), %rax
	addb	$1, (%r15,%rax)
	cmpl	%r13d, M(%rip)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, N(%rip)
	jg	.L5
.L3:
	movl	Q(%rip), %esi
	jmp	.L8
.L12:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	date_table
	.bss
	.align 32
	.type	date_table, @object
	.size	date_table, 100
date_table:
	.zero	100
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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"
.LC1:
	.string	"%d "
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
.LC4:
	.string	"%d %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
	leaq	date_table(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	M(%rip), %r14
	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	D(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	leaq	Q(%rip), %rdx
	leaq	N(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L21
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	Q(%rip), %esi
	testl	%esi, %esi
	je	.L21
	movl	$12, %ecx
	xorl	%eax, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
.L8:
	movl	$1, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L11:
	movsbl	(%r15,%rax), %edx
	cmpl	%esi, %edx
	jl	.L9
	cmpl	%ecx, %edx
	setg	%dil
	testb	%dil, %dil
	cmovne	%eax, %r9d
	cmovne	%edx, %ecx
.L9:
	addq	$1, %rax
	cmpq	$101, %rax
	jne	.L11
	testl	%r9d, %r9d
	je	.L12
	movl	%r9d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L15:
	movl	$12, %ecx
	movl	$0, %eax
	movq	%r15, %rdi
	rep stosq
	movl	$0, (%rdi)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	call	__isoc99_scanf@PLT
	movl	M(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	D(%rip), %rax
	addb	$1, (%r15,%rax)
	cmpl	%r13d, M(%rip)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, N(%rip)
	jg	.L5
.L3:
	movl	Q(%rip), %esi
	jmp	.L8
.L12:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	date_table
	.bss
	.align 32
	.type	date_table, @object
	.size	date_table, 100
date_table:
	.zero	100
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	Q
	.align 4
	.type	Q, @object
	.size	Q, 4
Q:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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:
```