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

int main(void)
{
  char arr[15];
  int n, m;
  char s[110][15];
  char t[110][15];
  int count[110]={0};

    fgets(arr , sizeof(arr), stdin);
    sscanf(arr, "%d", &n);
    int x=0;
    bool flag = false;

  for (int i=0; i < n; i++) {
    fgets(arr , sizeof(arr), stdin);
    for (int j=0; j <= x+1; j++) {
    if ( 0 == strcmp(arr, s[j])) {
        count[j]++;
        flag = true;
        break;
      }
    }
    if (flag == false) {
       strcpy(s[x], arr);
       x++;
      } else {
        flag = false;
      }

  }
    fgets(arr , sizeof(arr), stdin);
    sscanf(arr, "%d", &m);

    for (int i=0; i < m; i++) {
      fgets(arr , sizeof(arr), stdin);
        for (int j=0; j < x; j++) {
          if ( 0 == strcmp(arr, s[j])) {
            count[j]--;
            break;
          }
        }
      }

 int max = -100;
      for (int i=0; i < x; i++) {
        if (max < count[i]) {
          max = count[i];
        }
  }
  max++;
    if (max < 0) {
      max = 0;
    }
    printf("%d\n", max);



    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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
	subq	$2176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2128(%rbp), %rdx
	movl	$0, %eax
	movl	$55, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2164(%rbp), %rdx
	leaq	-23(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -2156(%rbp)
	movb	$0, -2165(%rbp)
	movl	$0, -2152(%rbp)
	jmp	.L2
.L9:
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -2148(%rbp)
	jmp	.L3
.L6:
	leaq	-1680(%rbp), %rcx
	movl	-2148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L4
	movl	-2148(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-2148(%rbp), %eax
	cltq
	movl	%edx, -2128(%rbp,%rax,4)
	movb	$1, -2165(%rbp)
	jmp	.L5
.L4:
	addl	$1, -2148(%rbp)
.L3:
	movl	-2156(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -2148(%rbp)
	jle	.L6
.L5:
	movzbl	-2165(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L7
	leaq	-1680(%rbp), %rcx
	movl	-2156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -2156(%rbp)
	jmp	.L8
.L7:
	movb	$0, -2165(%rbp)
.L8:
	addl	$1, -2152(%rbp)
.L2:
	movl	-2164(%rbp), %eax
	cmpl	%eax, -2152(%rbp)
	jl	.L9
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2160(%rbp), %rdx
	leaq	-23(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -2144(%rbp)
	jmp	.L10
.L15:
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -2140(%rbp)
	jmp	.L11
.L14:
	leaq	-1680(%rbp), %rcx
	movl	-2140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	-2140(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-2140(%rbp), %eax
	cltq
	movl	%edx, -2128(%rbp,%rax,4)
	jmp	.L13
.L12:
	addl	$1, -2140(%rbp)
.L11:
	movl	-2140(%rbp), %eax
	cmpl	-2156(%rbp), %eax
	jl	.L14
.L13:
	addl	$1, -2144(%rbp)
.L10:
	movl	-2160(%rbp), %eax
	cmpl	%eax, -2144(%rbp)
	jl	.L15
	movl	$-100, -2136(%rbp)
	movl	$0, -2132(%rbp)
	jmp	.L16
.L18:
	movl	-2132(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	cmpl	%eax, -2136(%rbp)
	jge	.L17
	movl	-2132(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	movl	%eax, -2136(%rbp)
.L17:
	addl	$1, -2132(%rbp)
.L16:
	movl	-2132(%rbp), %eax
	cmpl	-2156(%rbp), %eax
	jl	.L18
	addl	$1, -2136(%rbp)
	cmpl	$0, -2136(%rbp)
	jns	.L19
	movl	$0, -2136(%rbp)
.L19:
	movl	-2136(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.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	"%d\n"
	.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
	movl	$55, %ecx
	movl	$15, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	subq	$2168, %rsp
	.cfi_def_cfa_offset 2224
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 2152(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	leaq	2137(%rsp), %rbx
	movq	%rdi, 8(%rsp)
	rep stosq
	movq	%rbx, %rdi
	call	fgets@PLT
	leaq	24(%rsp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	leaq	480(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdin(%rip), %rdx
	movl	$15, %esi
	movq	%rbx, %rdi
	xorl	%r15d, %r15d
	call	fgets@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r15
	leal	-1(%r15), %eax
	cmpl	%eax, %r12d
	jl	.L36
.L5:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	movslq	%r15d, %r13
	salq	$4, %rsi
	subq	%r15, %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	addl	$1, 32(%rsp,%r13,4)
.L4:
	addl	$1, %r14d
	cmpl	%r14d, 24(%rsp)
	jg	.L6
	movq	stdin(%rip), %rdx
	movl	$15, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	leaq	28(%rsp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
.L18:
	movl	$0, 4(%rsp)
	movslq	%r12d, %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	stdin(%rip), %rdx
	movl	$15, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	testl	%r12d, %r12d
	je	.L8
	xorl	%r15d, %r15d
	leaq	480(%rsp), %rbp
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %r15
	cmpq	%r14, %r15
	je	.L8
.L10:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	movslq	%r15d, %r13
	salq	$4, %rsi
	subq	%r15, %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	subl	$1, 32(%rsp,%r13,4)
.L8:
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L11
.L7:
	testl	%r12d, %r12d
	je	.L12
	leal	-1(%r12), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%r12d, %edx
	movq	8(%rsp), %rax
	movdqa	.LC0(%rip), %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	48(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	pcmpgtd	-16(%rax), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rax), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L14
	movdqa	%xmm0, %xmm2
	movl	%r12d, %edx
	psrldq	$8, %xmm2
	andl	$-4, %edx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %eax
	testb	$3, %r12b
	je	.L16
.L13:
	movslq	%edx, %rcx
	movl	32(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L16
	movslq	%ecx, %rcx
	movl	32(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	addl	$2, %edx
	cmpl	%edx, %r12d
	jle	.L16
	movslq	%edx, %rdx
	movl	32(%rsp,%rdx,4), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
.L16:
	leal	1(%rax), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	testl	%edx, %edx
	leaq	.LC2(%rip), %rsi
	cmovs	%eax, %edx
	call	__printf_chk@PLT
	movq	2152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$2168, %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
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	movq	%r12, %rdi
	leal	1(%r12), %r13d
	movq	%rbx, %rsi
	salq	$4, %rdi
	subq	%r12, %rdi
	movslq	%r13d, %r12
	addq	%rbp, %rdi
	call	strcpy@PLT
	jmp	.L4
.L2:
	movq	stdin(%rip), %rdx
	movl	$15, %esi
	movq	%rbx, %rdi
	xorl	%r12d, %r12d
	call	fgets@PLT
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	movq	%rbx, %rdi
	leaq	.LC1(%rip), %rsi
	call	__isoc99_sscanf@PLT
	cmpl	$0, 28(%rsp)
	jg	.L18
.L12:
	movl	$-100, %eax
	jmp	.L16
.L20:
	xorl	%edx, %edx
	movl	$-100, %eax
	jmp	.L13
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-100
	.long	-100
	.long	-100
	.long	-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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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
	movl	$55, %ecx
	movl	$15, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	subq	$2168, %rsp
	.cfi_def_cfa_offset 2224
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 2152(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	leaq	2137(%rsp), %rbx
	movq	%rdi, 8(%rsp)
	rep stosq
	movq	%rbx, %rdi
	call	fgets@PLT
	leaq	24(%rsp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	leaq	480(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdin(%rip), %rdx
	movl	$15, %esi
	movq	%rbx, %rdi
	xorl	%r15d, %r15d
	call	fgets@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %r15
	leal	-1(%r15), %eax
	cmpl	%eax, %r12d
	jl	.L36
.L5:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	movslq	%r15d, %r13
	salq	$4, %rsi
	subq	%r15, %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	addl	$1, 32(%rsp,%r13,4)
.L4:
	addl	$1, %r14d
	cmpl	%r14d, 24(%rsp)
	jg	.L6
	movq	stdin(%rip), %rdx
	movl	$15, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	leaq	28(%rsp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
.L18:
	movl	$0, 4(%rsp)
	movslq	%r12d, %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	stdin(%rip), %rdx
	movl	$15, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	testl	%r12d, %r12d
	je	.L8
	xorl	%r15d, %r15d
	leaq	480(%rsp), %rbp
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %r15
	cmpq	%r14, %r15
	je	.L8
.L10:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	movslq	%r15d, %r13
	salq	$4, %rsi
	subq	%r15, %rsi
	addq	%rbp, %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	subl	$1, 32(%rsp,%r13,4)
.L8:
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L11
.L7:
	testl	%r12d, %r12d
	je	.L12
	leal	-1(%r12), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%r12d, %edx
	movq	8(%rsp), %rax
	movdqa	.LC0(%rip), %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	48(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	pcmpgtd	-16(%rax), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rax), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L14
	movdqa	%xmm0, %xmm2
	movl	%r12d, %edx
	psrldq	$8, %xmm2
	andl	$-4, %edx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %eax
	testb	$3, %r12b
	je	.L16
.L13:
	movslq	%edx, %rcx
	movl	32(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r12d
	jle	.L16
	movslq	%ecx, %rcx
	movl	32(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %eax
	cmovl	%ecx, %eax
	addl	$2, %edx
	cmpl	%edx, %r12d
	jle	.L16
	movslq	%edx, %rdx
	movl	32(%rsp,%rdx,4), %edx
	cmpl	%edx, %eax
	cmovl	%edx, %eax
.L16:
	leal	1(%rax), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	testl	%edx, %edx
	leaq	.LC2(%rip), %rsi
	cmovs	%eax, %edx
	call	__printf_chk@PLT
	movq	2152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$2168, %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
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	movq	%r12, %rdi
	leal	1(%r12), %r13d
	movq	%rbx, %rsi
	salq	$4, %rdi
	subq	%r12, %rdi
	movslq	%r13d, %r12
	addq	%rbp, %rdi
	call	strcpy@PLT
	jmp	.L4
.L2:
	movq	stdin(%rip), %rdx
	movl	$15, %esi
	movq	%rbx, %rdi
	xorl	%r12d, %r12d
	call	fgets@PLT
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	movq	%rbx, %rdi
	leaq	.LC1(%rip), %rsi
	call	__isoc99_sscanf@PLT
	cmpl	$0, 28(%rsp)
	jg	.L18
.L12:
	movl	$-100, %eax
	jmp	.L16
.L20:
	xorl	%edx, %edx
	movl	$-100, %eax
	jmp	.L13
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-100
	.long	-100
	.long	-100
	.long	-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:

#include <stdio.h>
#include <string.h>
#include <stdbool.h>

int main(void)
{
  char arr[15];
  int n, m;
  char s[110][15];
  char t[110][15];
  int count[110]={0};

    fgets(arr , sizeof(arr), stdin);
    sscanf(arr, "%d", &n);
    int x=0;
    bool flag = false;

  for (int i=0; i < n; i++) {
    fgets(arr , sizeof(arr), stdin);
    for (int j=0; j <= x+1; j++) {
    if ( 0 == strcmp(arr, s[j])) {
        count[j]++;
        flag = true;
        break;
      }
    }
    if (flag == false) {
       strcpy(s[x], arr);
       x++;
      } else {
        flag = false;
      }

  }
    fgets(arr , sizeof(arr), stdin);
    sscanf(arr, "%d", &m);

    for (int i=0; i < m; i++) {
      fgets(arr , sizeof(arr), stdin);
        for (int j=0; j < x; j++) {
          if ( 0 == strcmp(arr, s[j])) {
            count[j]--;
            break;
          }
        }
      }

 int max = -100;
      for (int i=0; i < x; i++) {
        if (max < count[i]) {
          max = count[i];
        }
  }
  max++;
    if (max < 0) {
      max = 0;
    }
    printf("%d\n", max);



    return 0;
}

3
apple
orange
apple
5
aeplp
apple
apple
apple
apple
 6
red
red
blue
yellow
yellow
red
5
red
ree
yellow
green
blue
 1
voldemort
10
voldemort
voldemort
voldemort
voldemort
uoldemort
voldemort
voldemort
voldemort
voldemort
voldemort
 6
red
red
blue
yellow
yellow
red
5
rde
erd
lelyow
green
blte
 3
appme
orange
apple
1
grape
 3
apple
orange
lppae
5
aeplp
apple
apple
apple
apple
 3
appme
orange
apple
0
grape
 6
red
red
blue
ylelow
yellow
red
5
red
ree
yellow
green
blue
 1
voldemort
10
voldemort
voldemort
voldemort
voldemort
uoldemort
voldemort
voldemort
voleemort
voldemort
voldemort
 3
apole
orange
lppae
5
aeplp
apple
apple
apple
apple

1
 2
 0
 3
 1
 1
 1
 2
 0
 1

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

int main(void)
{
  char arr[15];
  int n, m;
  char s[110][15];
  char t[110][15];
  int count[110]={0};

    fgets(arr , sizeof(arr), stdin);
    sscanf(arr, "%d", &n);
    int x=0;
    bool flag = false;

  for (int i=0; i < n; i++) {
    fgets(arr , sizeof(arr), stdin);
    for (int j=0; j <= x+1; j++) {
    if ( 0 == strcmp(arr, s[j])) {
        count[j]++;
        flag = true;
        break;
      }
    }
    if (flag == false) {
       strcpy(s[x], arr);
       x++;
      } else {
        flag = false;
      }

  }
    fgets(arr , sizeof(arr), stdin);
    sscanf(arr, "%d", &m);

    for (int i=0; i < m; i++) {
      fgets(arr , sizeof(arr), stdin);
        for (int j=0; j < x; j++) {
          if ( 0 == strcmp(arr, s[j])) {
            count[j]--;
            break;
          }
        }
      }

 int max = -100;
      for (int i=0; i < x; i++) {
        if (max < count[i]) {
          max = count[i];
        }
  }
  max++;
    if (max < 0) {
      max = 0;
    }
    printf("%d\n", max);



    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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
	subq	$2176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2128(%rbp), %rdx
	movl	$0, %eax
	movl	$55, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2164(%rbp), %rdx
	leaq	-23(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -2156(%rbp)
	movb	$0, -2165(%rbp)
	movl	$0, -2152(%rbp)
	jmp	.L2
.L9:
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -2148(%rbp)
	jmp	.L3
.L6:
	leaq	-1680(%rbp), %rcx
	movl	-2148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L4
	movl	-2148(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-2148(%rbp), %eax
	cltq
	movl	%edx, -2128(%rbp,%rax,4)
	movb	$1, -2165(%rbp)
	jmp	.L5
.L4:
	addl	$1, -2148(%rbp)
.L3:
	movl	-2156(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -2148(%rbp)
	jle	.L6
.L5:
	movzbl	-2165(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L7
	leaq	-1680(%rbp), %rcx
	movl	-2156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -2156(%rbp)
	jmp	.L8
.L7:
	movb	$0, -2165(%rbp)
.L8:
	addl	$1, -2152(%rbp)
.L2:
	movl	-2164(%rbp), %eax
	cmpl	%eax, -2152(%rbp)
	jl	.L9
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2160(%rbp), %rdx
	leaq	-23(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -2144(%rbp)
	jmp	.L10
.L15:
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -2140(%rbp)
	jmp	.L11
.L14:
	leaq	-1680(%rbp), %rcx
	movl	-2140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	-2140(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-2140(%rbp), %eax
	cltq
	movl	%edx, -2128(%rbp,%rax,4)
	jmp	.L13
.L12:
	addl	$1, -2140(%rbp)
.L11:
	movl	-2140(%rbp), %eax
	cmpl	-2156(%rbp), %eax
	jl	.L14
.L13:
	addl	$1, -2144(%rbp)
.L10:
	movl	-2160(%rbp), %eax
	cmpl	%eax, -2144(%rbp)
	jl	.L15
	movl	$-100, -2136(%rbp)
	movl	$0, -2132(%rbp)
	jmp	.L16
.L18:
	movl	-2132(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	cmpl	%eax, -2136(%rbp)
	jge	.L17
	movl	-2132(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	movl	%eax, -2136(%rbp)
.L17:
	addl	$1, -2132(%rbp)
.L16:
	movl	-2132(%rbp), %eax
	cmpl	-2156(%rbp), %eax
	jl	.L18
	addl	$1, -2136(%rbp)
	cmpl	$0, -2136(%rbp)
	jns	.L19
	movl	$0, -2136(%rbp)
.L19:
	movl	-2136(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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
	subq	$2176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2128(%rbp), %rdx
	movl	$0, %eax
	movl	$55, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2164(%rbp), %rdx
	leaq	-23(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -2156(%rbp)
	movb	$0, -2165(%rbp)
	movl	$0, -2152(%rbp)
	jmp	.L2
.L9:
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -2148(%rbp)
	jmp	.L3
.L6:
	leaq	-1680(%rbp), %rcx
	movl	-2148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L4
	movl	-2148(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-2148(%rbp), %eax
	cltq
	movl	%edx, -2128(%rbp,%rax,4)
	movb	$1, -2165(%rbp)
	jmp	.L5
.L4:
	addl	$1, -2148(%rbp)
.L3:
	movl	-2156(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -2148(%rbp)
	jle	.L6
.L5:
	movzbl	-2165(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L7
	leaq	-1680(%rbp), %rcx
	movl	-2156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	addl	$1, -2156(%rbp)
	jmp	.L8
.L7:
	movb	$0, -2165(%rbp)
.L8:
	addl	$1, -2152(%rbp)
.L2:
	movl	-2164(%rbp), %eax
	cmpl	%eax, -2152(%rbp)
	jl	.L9
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-2160(%rbp), %rdx
	leaq	-23(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_sscanf@PLT
	movl	$0, -2144(%rbp)
	jmp	.L10
.L15:
	movq	stdin(%rip), %rdx
	leaq	-23(%rbp), %rax
	movl	$15, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -2140(%rbp)
	jmp	.L11
.L14:
	leaq	-1680(%rbp), %rcx
	movl	-2140(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-23(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	-2140(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	leal	-1(%rax), %edx
	movl	-2140(%rbp), %eax
	cltq
	movl	%edx, -2128(%rbp,%rax,4)
	jmp	.L13
.L12:
	addl	$1, -2140(%rbp)
.L11:
	movl	-2140(%rbp), %eax
	cmpl	-2156(%rbp), %eax
	jl	.L14
.L13:
	addl	$1, -2144(%rbp)
.L10:
	movl	-2160(%rbp), %eax
	cmpl	%eax, -2144(%rbp)
	jl	.L15
	movl	$-100, -2136(%rbp)
	movl	$0, -2132(%rbp)
	jmp	.L16
.L18:
	movl	-2132(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	cmpl	%eax, -2136(%rbp)
	jge	.L17
	movl	-2132(%rbp), %eax
	cltq
	movl	-2128(%rbp,%rax,4), %eax
	movl	%eax, -2136(%rbp)
.L17:
	addl	$1, -2132(%rbp)
.L16:
	movl	-2132(%rbp), %eax
	cmpl	-2156(%rbp), %eax
	jl	.L18
	addl	$1, -2136(%rbp)
	cmpl	$0, -2136(%rbp)
	jns	.L19
	movl	$0, -2136(%rbp)
.L19:
	movl	-2136(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.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:
