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

char list[100]; //n < 50, so char is ok.

int main(){
  int n, q, m, a, x, i;

  for(;scanf("%d%d",&n,&q),n||q;){
    q--;
    for(i=0;i<n;i++){
      scanf("%d",&m);
      for(a=0;a<m;a++){
        scanf("%d", &x);
        list[x]++;
      }
    }

    a=0;
    for(i=0;i<100;i++){
	  if(list[i]>q){
	    a=i;q=list[i];
	  }
	  list[i]=0;
    }
    printf("%d\n", a);
  }
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	list(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	28(%rsp), %esi
	testl	%esi, %esi
	je	.L28
	subl	$1, %esi
	movl	%esi, 28(%rsp)
.L3:
	xorl	%eax, %eax
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L9:
	movsbl	(%r14,%rax), %edx
	cmpl	%esi, %edx
	jle	.L8
	movl	%edx, %esi
	movl	%eax, %r8d
	movl	$1, %edi
.L8:
	movb	$0, (%r14,%rax)
	addq	$1, %rax
	cmpq	$100, %rax
	jne	.L9
	testb	%dil, %dil
	je	.L10
	movl	%esi, 28(%rsp)
.L10:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L11:
	movl	28(%rsp), %ecx
	leal	-1(%rcx), %esi
	movl	%esi, 28(%rsp)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	32(%rsp), %r13
	leaq	36(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	36(%rsp), %rax
	addb	$1, (%r14,%rax)
	cmpl	%r15d, 32(%rsp)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L5
	movl	28(%rsp), %esi
	jmp	.L3
.L28:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	list
	.bss
	.align 32
	.type	list, @object
	.size	list, 100
list:
	.zero	100
	.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\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	list(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	28(%rsp), %esi
	testl	%esi, %esi
	je	.L28
	subl	$1, %esi
	movl	%esi, 28(%rsp)
.L3:
	xorl	%eax, %eax
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L9:
	movsbl	(%r14,%rax), %edx
	cmpl	%esi, %edx
	jle	.L8
	movl	%edx, %esi
	movl	%eax, %r8d
	movl	$1, %edi
.L8:
	movb	$0, (%r14,%rax)
	addq	$1, %rax
	cmpq	$100, %rax
	jne	.L9
	testb	%dil, %dil
	je	.L10
	movl	%esi, 28(%rsp)
.L10:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L11:
	movl	28(%rsp), %ecx
	leal	-1(%rcx), %esi
	movl	%esi, 28(%rsp)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	32(%rsp), %r13
	leaq	36(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	36(%rsp), %rax
	addb	$1, (%r14,%rax)
	cmpl	%r15d, 32(%rsp)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L5
	movl	28(%rsp), %esi
	jmp	.L3
.L28:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	list
	.bss
	.align 32
	.type	list, @object
	.size	list, 100
list:
	.zero	100
	.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\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	list(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	28(%rsp), %esi
	testl	%esi, %esi
	je	.L28
	subl	$1, %esi
	movl	%esi, 28(%rsp)
.L3:
	xorl	%eax, %eax
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L9:
	movsbl	(%r14,%rax), %edx
	cmpl	%esi, %edx
	jle	.L8
	movl	%edx, %esi
	movl	%eax, %r8d
	movl	$1, %edi
.L8:
	movb	$0, (%r14,%rax)
	addq	$1, %rax
	cmpq	$100, %rax
	jne	.L9
	testb	%dil, %dil
	je	.L10
	movl	%esi, 28(%rsp)
.L10:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L11:
	movl	28(%rsp), %ecx
	leal	-1(%rcx), %esi
	movl	%esi, 28(%rsp)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	32(%rsp), %r13
	leaq	36(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	36(%rsp), %rax
	addb	$1, (%r14,%rax)
	cmpl	%r15d, 32(%rsp)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L5
	movl	28(%rsp), %esi
	jmp	.L3
.L28:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	list
	.bss
	.align 32
	.type	list, @object
	.size	list, 100
list:
	.zero	100
	.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>
#include <stdlib.h>

char list[100]; //n < 50, so char is ok.

int main(){
  int n, q, m, a, x, i;

  for(;scanf("%d%d",&n,&q),n||q;){
    q--;
    for(i=0;i<n;i++){
      scanf("%d",&m);
      for(a=0;a<m;a++){
        scanf("%d", &x);
        list[x]++;
      }
    }

    a=0;
    for(i=0;i<100;i++){
	  if(list[i]>q){
	    a=i;q=list[i];
	  }
	  list[i]=0;
    }
    printf("%d\n", a);
  }
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

char list[100]; //n < 50, so char is ok.

int main(){
  int n, q, m, a, x, i;

  for(;scanf("%d%d",&n,&q),n||q;){
    q--;
    for(i=0;i<n;i++){
      scanf("%d",&m);
      for(a=0;a<m;a++){
        scanf("%d", &x);
        list[x]++;
      }
    }

    a=0;
    for(i=0;i<100;i++){
	  if(list[i]>q){
	    a=i;q=list[i];
	  }
	  list[i]=0;
    }
    printf("%d\n", 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:

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

char list[100]; //n < 50, so char is ok.

int main(){
  int n, q, m, a, x, i;

  for(;scanf("%d%d",&n,&q),n||q;){
    q--;
    for(i=0;i<n;i++){
      scanf("%d",&m);
      for(a=0;a<m;a++){
        scanf("%d", &x);
        list[x]++;
      }
    }

    a=0;
    for(i=0;i<100;i++){
	  if(list[i]>q){
	    a=i;q=list[i];
	  }
	  list[i]=0;
    }
    printf("%d\n", a);
  }
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	list(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	28(%rsp), %esi
	testl	%esi, %esi
	je	.L28
	subl	$1, %esi
	movl	%esi, 28(%rsp)
.L3:
	xorl	%eax, %eax
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L9:
	movsbl	(%r14,%rax), %edx
	cmpl	%esi, %edx
	jle	.L8
	movl	%edx, %esi
	movl	%eax, %r8d
	movl	$1, %edi
.L8:
	movb	$0, (%r14,%rax)
	addq	$1, %rax
	cmpq	$100, %rax
	jne	.L9
	testb	%dil, %dil
	je	.L10
	movl	%esi, 28(%rsp)
.L10:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L11:
	movl	28(%rsp), %ecx
	leal	-1(%rcx), %esi
	movl	%esi, 28(%rsp)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	32(%rsp), %r13
	leaq	36(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	36(%rsp), %rax
	addb	$1, (%r14,%rax)
	cmpl	%r15d, 32(%rsp)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L5
	movl	28(%rsp), %esi
	jmp	.L3
.L28:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	list
	.bss
	.align 32
	.type	list, @object
	.size	list, 100
list:
	.zero	100
	.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\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	list(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jne	.L11
	movl	28(%rsp), %esi
	testl	%esi, %esi
	je	.L28
	subl	$1, %esi
	movl	%esi, 28(%rsp)
.L3:
	xorl	%eax, %eax
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L9:
	movsbl	(%r14,%rax), %edx
	cmpl	%esi, %edx
	jle	.L8
	movl	%edx, %esi
	movl	%eax, %r8d
	movl	$1, %edi
.L8:
	movb	$0, (%r14,%rax)
	addq	$1, %rax
	cmpq	$100, %rax
	jne	.L9
	testb	%dil, %dil
	je	.L10
	movl	%esi, 28(%rsp)
.L10:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L11:
	movl	28(%rsp), %ecx
	leal	-1(%rcx), %esi
	movl	%esi, 28(%rsp)
	jle	.L3
	xorl	%r12d, %r12d
	leaq	32(%rsp), %r13
	leaq	36(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	36(%rsp), %rax
	addb	$1, (%r14,%rax)
	cmpl	%r15d, 32(%rsp)
	jg	.L4
.L7:
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L5
	movl	28(%rsp), %esi
	jmp	.L3
.L28:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	list
	.bss
	.align 32
	.type	list, @object
	.size	list, 100
list:
	.zero	100
	.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:
```