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

```c
// AOJ 1305: Membership Management
// 2017.10.3 bal4u@uu

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

#define HASHSIZ 2003
typedef struct { char *s; int id; } HASH;
HASH hash[HASHSIZ+2], *hashend = hash + HASHSIZ;  // Hash table

char name[1002][16]; int sz;
int info[1002];
char got[1002];

typedef struct { int id, lock, n, m[11]; } T;
T group[102]; int n;

int lookup(char *s, int id)
{
	int w = strlen(s);
	int i = (101 * *s + 103 * *(s+w-1) + 107 * w) % HASHSIZ;
	HASH *tp;

	tp = hash + i;
	while (tp->s != NULL) {
		if (!memcmp(tp->s, s, w)) return tp->id;
		if (++tp == hashend) tp = hash;
	}
	tp->s = s, tp->id = id;
	return -1;
}

int count(int m)
{
	int i, id, s;

	if (group[m].lock) return 0;
	group[m].lock = 1;
	for (s = 0, i = 0; i < group[m].n; i++) {
		id = group[m].m[i];
		if (info[id] >= 0) s += count(info[id]);
		else if (!got[id]) got[id] = 1, s++;
	}
	return s;
}

int main()
{
	int i, j, id;
	char buf[200], *p, *q;

	while (scanf("%d", &n) && n > 0) {
		sz = 0; memset(hash, 0, sizeof(hash));
		for (i = 0; i < n; i++) {
			scanf("%s", buf);
			p = buf; while (isalpha(*p)) p++;
//			if (*p != ':') while (1); // panic
			*p++ = 0;
			strcpy(name[sz], buf);
			if ((id = lookup(name[sz], sz)) < 0) id = sz++;
			group[i].id = id;  // group
			j = 0; while (*p) {
				q = p; while (isalpha(*p)) p++;
				*p++ = 0;
				strcpy(name[sz], q);
				if ((id = lookup(name[sz], sz)) < 0) id = sz++;
				group[i].m[j++] = id;
			}
			group[i].n = j, group[i].lock = 0;
		}
		memset(info, -1, sizeof(int)*sz);
		for (i = 0; i < n; i++) info[group[i].id] = i;
		memset(got, 0, sizeof(char)*sz);
		printf("%d\n", count(0));
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 32080
hash:
	.zero	32080
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+32048
	.globl	name
	.bss
	.align 32
	.type	name, @object
	.size	name, 16032
name:
	.zero	16032
	.globl	sz
	.align 4
	.type	sz, @object
	.size	sz, 4
sz:
	.zero	4
	.globl	info
	.align 32
	.type	info, @object
	.size	info, 4008
info:
	.zero	4008
	.globl	got
	.align 32
	.type	got, @object
	.size	got, 1002
got:
	.zero	1002
	.globl	group
	.align 32
	.type	group, @object
	.size	group, 5712
group:
	.zero	5712
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	lookup
	.type	lookup, @function
lookup:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	imull	$101, %eax, %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	-1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	imull	$103, %eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	$107, %eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1097864831, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$9, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -12(%rbp)
	movl	-12(%rbp), %edx
	imull	$2003, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	hash(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-24(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcmp@PLT
	testl	%eax, %eax
	jne	.L3
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	jmp	.L4
.L3:
	addq	$16, -8(%rbp)
	movq	hashend(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jne	.L2
	leaq	hash(%rip), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L5
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, 8(%rax)
	movl	$-1, %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	lookup, .-lookup
	.globl	count
	.type	count, @function
count:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L7
	movl	$0, %eax
	jmp	.L8
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L9
.L12:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	12+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	info(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	info(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	count
	addl	%eax, -8(%rbp)
	jmp	.L11
.L10:
	movl	-4(%rbp), %eax
	cltq
	leaq	got(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	got(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L11:
	addl	$1, -12(%rbp)
.L9:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	8+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
	movl	-8(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	count, .-count
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L14
.L28:
	movl	$0, sz(%rip)
	movl	$32080, %edx
	movl	$0, %esi
	leaq	hash(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -236(%rbp)
	jmp	.L15
.L24:
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, -224(%rbp)
	jmp	.L16
.L17:
	addq	$1, -224(%rbp)
.L16:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	jne	.L17
	movq	-224(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -224(%rbp)
	movb	$0, (%rax)
	movl	sz(%rip), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	name(%rip), %rax
	addq	%rax, %rdx
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	sz(%rip), %eax
	movl	sz(%rip), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	name(%rip), %rdx
	addq	%rcx, %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	lookup
	movl	%eax, -228(%rbp)
	cmpl	$0, -228(%rbp)
	jns	.L18
	movl	sz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sz(%rip)
	movl	%eax, -228(%rbp)
.L18:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rcx
	leaq	group(%rip), %rdx
	movl	-228(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -232(%rbp)
	jmp	.L19
.L23:
	movq	-224(%rbp), %rax
	movq	%rax, -216(%rbp)
	jmp	.L20
.L21:
	addq	$1, -224(%rbp)
.L20:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	jne	.L21
	movq	-224(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -224(%rbp)
	movb	$0, (%rax)
	movl	sz(%rip), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	name(%rip), %rax
	addq	%rax, %rdx
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	sz(%rip), %eax
	movl	sz(%rip), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	name(%rip), %rdx
	addq	%rcx, %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	lookup
	movl	%eax, -228(%rbp)
	cmpl	$0, -228(%rbp)
	jns	.L22
	movl	sz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sz(%rip)
	movl	%eax, -228(%rbp)
.L22:
	movl	-232(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -232(%rbp)
	movslq	%eax, %rcx
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	12+group(%rip), %rdx
	movl	-228(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L19:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L23
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rcx
	leaq	8+group(%rip), %rdx
	movl	-232(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -236(%rbp)
.L15:
	movl	n(%rip), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L24
	movl	sz(%rip), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	info(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -236(%rbp)
	jmp	.L25
.L26:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	group(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	info(%rip), %rdx
	movl	-236(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -236(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L26
	movl	sz(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	got(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, %edi
	call	count
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L27
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L28
.L27:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.p2align 4
	.type	count.part.0, @function
count.part.0:
.LFB40:
	.cfi_startproc
	movslq	%edi, %rdi
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	group(%rip), %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	0(,%rdi,8), %rax
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	subq	%rdi, %rax
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	(%r8,%rax,8), %r9
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movl	8(%r9), %r13d
	movl	$1, 4(%r9)
	movl	$0, 48(%rsp)
	testl	%r13d, %r13d
	jle	.L1
	xorl	%r10d, %r10d
	leaq	info(%rip), %r11
	movq	%r10, %rbp
	movq	%r9, %r10
.L62:
	movslq	12(%r10,%rbp,4), %rdx
	movslq	(%r11,%rdx,4), %rax
	testl	%eax, %eax
	jns	.L70
	leaq	got(%rip), %rax
	cmpb	$0, (%rax,%rdx)
	jne	.L61
	addl	$1, 48(%rsp)
	movb	$1, (%rax,%rdx)
.L61:
	addq	$1, %rbp
	cmpl	%ebp, 8(%r10)
	jg	.L62
.L1:
	movl	48(%rsp), %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L70:
	.cfi_restore_state
	leaq	0(,%rax,8), %rdx
	subq	%rax, %rdx
	leaq	(%r8,%rdx,8), %r9
	movl	4(%r9), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jne	.L61
	movl	8(%r9), %r12d
	movl	$1, 4(%r9)
	testl	%r12d, %r12d
	jle	.L61
	movq	%rbp, 16(%rsp)
	xorl	%r12d, %r12d
	movq	%r10, 24(%rsp)
.L60:
	movslq	12(%r9,%r12,4), %rdx
	movslq	(%r11,%rdx,4), %rax
	testl	%eax, %eax
	jns	.L71
	leaq	got(%rip), %rax
	cmpb	$0, (%rax,%rdx)
	jne	.L59
	addl	$1, 12(%rsp)
	movb	$1, (%rax,%rdx)
.L59:
	addq	$1, %r12
	cmpl	%r12d, 8(%r9)
	jg	.L60
	movl	12(%rsp), %ecx
	movq	16(%rsp), %rbp
	addl	%ecx, 48(%rsp)
	movq	24(%rsp), %r10
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L71:
	leaq	0(,%rax,8), %rdx
	subq	%rax, %rdx
	leaq	(%r8,%rdx,8), %r14
	movl	4(%r14), %r10d
	testl	%r10d, %r10d
	jne	.L59
	movl	8(%r14), %ebx
	movl	$1, 4(%r14)
	testl	%ebx, %ebx
	jle	.L59
	movq	%r9, 40(%rsp)
	xorl	%ebp, %ebp
	movq	%r14, %rcx
	leaq	got(%rip), %rdx
	movq	%r12, 32(%rsp)
	movl	%r10d, %r12d
.L58:
	movslq	12(%rcx,%rbp,4), %rsi
	movslq	(%r11,%rsi,4), %rax
	testl	%eax, %eax
	jns	.L72
	cmpb	$0, (%rdx,%rsi)
	jne	.L57
	movb	$1, (%rdx,%rsi)
	addl	$1, %r12d
.L57:
	addq	$1, %rbp
	cmpl	%ebp, 8(%rcx)
	jg	.L58
	movl	%r12d, %r10d
	movq	40(%rsp), %r9
	addl	%r10d, 12(%rsp)
	movq	32(%rsp), %r12
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L72:
	leaq	0(,%rax,8), %rsi
	subq	%rax, %rsi
	leaq	(%r8,%rsi,8), %r15
	movl	4(%r15), %r14d
	testl	%r14d, %r14d
	jne	.L57
	movl	8(%r15), %edi
	movl	$1, 4(%r15)
	testl	%edi, %edi
	jle	.L57
	movl	%r12d, 52(%rsp)
	xorl	%r13d, %r13d
	movq	%r15, %r12
	movq	%rcx, %r15
	movq	%rbp, 56(%rsp)
	movl	%r14d, %ebp
.L56:
	movslq	12(%r12,%r13,4), %rax
	movslq	(%r11,%rax,4), %rbx
	testl	%ebx, %ebx
	jns	.L73
	cmpb	$0, (%rdx,%rax)
	jne	.L55
	movb	$1, (%rdx,%rax)
	addl	$1, %ebp
.L55:
	addq	$1, %r13
	cmpl	%r13d, 8(%r12)
	jg	.L56
	movl	52(%rsp), %r12d
	movl	%ebp, %r14d
	movq	%r15, %rcx
	movq	56(%rsp), %rbp
	addl	%r14d, %r12d
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L73:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	movl	4(%rax), %r14d
	testl	%r14d, %r14d
	jne	.L55
	movl	8(%rax), %esi
	movl	$1, 4(%rax)
	testl	%esi, %esi
	jle	.L55
	movslq	12(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L11
	cmpb	$0, (%rdx,%rax)
	jne	.L12
	movb	$1, (%rdx,%rax)
	movl	$1, %r14d
.L12:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$1, 8(%rax)
	jle	.L15
	movslq	16(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L16
	cmpb	$0, (%rdx,%rax)
	je	.L74
.L17:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$2, 8(%rax)
	jle	.L15
	movslq	20(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L20
	cmpb	$0, (%rdx,%rax)
	je	.L75
.L21:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$3, 8(%rax)
	jle	.L15
	movslq	24(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L24
	cmpb	$0, (%rdx,%rax)
	jne	.L25
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
.L25:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$4, 8(%rax)
	jle	.L15
	movslq	28(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L28
	cmpb	$0, (%rdx,%rax)
	jne	.L29
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
.L29:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$5, 8(%rax)
	jle	.L15
	movslq	32(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L32
	cmpb	$0, (%rdx,%rax)
	jne	.L33
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
.L33:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$6, 8(%rax)
	jle	.L15
	movslq	36(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L36
	cmpb	$0, (%rdx,%rax)
	je	.L76
.L37:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$7, 8(%rax)
	jle	.L15
	movslq	40(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L40
	cmpb	$0, (%rdx,%rax)
	je	.L77
.L41:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$8, 8(%rax)
	jle	.L15
	movslq	44(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L44
	cmpb	$0, (%rdx,%rax)
	je	.L78
.L45:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$9, 8(%rax)
	jle	.L15
	movslq	48(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L48
	cmpb	$0, (%rdx,%rax)
	jne	.L49
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
.L49:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$10, 8(%rax)
	jle	.L15
	movslq	52(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L79
	cmpb	$0, (%rdx,%rax)
	jne	.L15
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	.p2align 4,,10
	.p2align 3
.L15:
	addl	%r14d, %ebp
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %ecx
	testl	%ecx, %ecx
	jne	.L12
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	movl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L17
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L74:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L25
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L75:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L21
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L29
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L32:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L33
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L36:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %r10d
	testl	%r10d, %r10d
	jne	.L37
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L40:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %r9d
	testl	%r9d, %r9d
	jne	.L41
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L76:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L37
.L77:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L41
.L48:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %ecx
	testl	%ecx, %ecx
	jne	.L49
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L49
.L78:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L45
.L44:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %esi
	testl	%esi, %esi
	jne	.L45
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L45
.L79:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L15
	call	count.part.0
	leaq	group(%rip), %r8
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	got(%rip), %rdx
	jmp	.L15
	.cfi_endproc
.LFE40:
	.size	count.part.0, .-count.part.0
	.p2align 4
	.globl	lookup
	.type	lookup, @function
lookup:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	hash(%rip), %rbx
	call	strlen@PLT
	movsbl	0(%rbp), %ecx
	movq	hashend(%rip), %r14
	movslq	%eax, %r12
	imull	$107, %eax, %eax
	movsbl	-1(%rbp,%r12), %edx
	imull	$101, %ecx, %ecx
	imull	$103, %edx, %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	movslq	%eax, %rdx
	movl	%eax, %ecx
	imulq	$1097864831, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$41, %rdx
	subl	%ecx, %edx
	imull	$2003, %edx, %edx
	subl	%edx, %eax
	cltq
	salq	$4, %rax
	addq	%rax, %rbx
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L85:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L88
	addq	$16, %rbx
	leaq	hash(%rip), %rax
	cmpq	%rbx, %r14
	cmove	%rax, %rbx
.L84:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	.L85
	movq	%rbp, (%rbx)
	movl	$-1, %eax
	movl	%r13d, 8(%rbx)
	popq	%rbx
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L88:
	.cfi_restore_state
	movl	8(%rbx), %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
	.cfi_endproc
.LFE37:
	.size	lookup, .-lookup
	.p2align 4
	.globl	count
	.type	count, @function
count:
.LFB38:
	.cfi_startproc
	endbr64
	movslq	%edi, %rdx
	leaq	0(,%rdx,8), %rax
	subq	%rdx, %rax
	leaq	group(%rip), %rdx
	movl	4(%rdx,%rax,8), %eax
	testl	%eax, %eax
	jne	.L90
	jmp	count.part.0
	.p2align 4,,10
	.p2align 3
.L90:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE38:
	.size	count, .-count
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%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
	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	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
.L92:
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L143
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L143
	movl	$32080, %edx
	xorl	%esi, %esi
	leaq	hash(%rip), %rdi
	movl	$0, sz(%rip)
	call	memset@PLT
	call	__ctype_b_loc@PLT
	movl	$0, 44(%rsp)
	movq	%rax, 32(%rsp)
	leaq	group(%rip), %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 24(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 48(%rsp)
.L110:
	movq	48(%rsp), %r13
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	movq	(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L93:
	movsbq	0(%r13), %rax
	movq	%r13, %rcx
	addq	$1, %r13
	testb	$4, 1(%rdx,%rax,2)
	jne	.L93
	movb	$0, (%rcx)
	movslq	sz(%rip), %rbp
	leaq	name(%rip), %rax
	movq	48(%rsp), %rsi
	movq	%rcx, 8(%rsp)
	movq	%rbp, %r15
	salq	$4, %rbp
	addq	%rax, %rbp
	movq	%rbp, %rdi
	call	stpcpy@PLT
	movsbl	0(%rbp), %edx
	movq	hashend(%rip), %rbx
	movq	%rax, %r12
	movsbl	-1(%rax), %eax
	imull	$101, %edx, %edx
	subq	%rbp, %r12
	imull	$103, %eax, %eax
	addl	%edx, %eax
	imull	$107, %r12d, %edx
	addl	%edx, %eax
	movslq	%eax, %rdx
	movl	%eax, %ecx
	imulq	$1097864831, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$41, %rdx
	subl	%ecx, %edx
	imull	$2003, %edx, %edx
	subl	%edx, %eax
	movslq	%eax, %r14
	leaq	hash(%rip), %rax
	salq	$4, %r14
	addq	%rax, %r14
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L99:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L171
	addq	$16, %r14
	leaq	hash(%rip), %rax
	cmpq	%rbx, %r14
	cmove	%rax, %r14
.L98:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	.L99
	movq	%rbp, (%r14)
	movl	%r15d, 8(%r14)
.L96:
	leal	1(%r15), %edx
	movl	%r15d, %eax
	movl	%edx, sz(%rip)
	movl	%edx, %r15d
.L97:
	movq	24(%rsp), %rsi
	xorl	%edx, %edx
	movl	%eax, (%rsi)
	movq	8(%rsp), %rax
	movq	$1, 8(%rsp)
	movsbq	1(%rax), %rax
	testb	%al, %al
	je	.L101
	movq	%r13, %rsi
	.p2align 4,,10
	.p2align 3
.L100:
	movq	32(%rsp), %rcx
	movq	%rsi, %rbx
	movq	(%rcx), %rdx
	testb	$4, 1(%rdx,%rax,2)
	je	.L109
	.p2align 4,,10
	.p2align 3
.L102:
	movsbq	1(%rbx), %rax
	addq	$1, %rbx
	testb	$4, 1(%rdx,%rax,2)
	jne	.L102
.L109:
	movb	$0, (%rbx)
	movslq	sz(%rip), %r12
	leaq	1(%rbx), %rax
	movq	%rax, 16(%rsp)
	leaq	name(%rip), %rax
	movq	%r12, %r15
	salq	$4, %r12
	addq	%rax, %r12
	movq	%r12, %rdi
	call	stpcpy@PLT
	movq	hashend(%rip), %rbp
	movsbl	-1(%rax), %ecx
	movq	%rax, %r13
	movsbl	(%r12), %eax
	subq	%r12, %r13
	imull	$101, %eax, %eax
	imull	$103, %ecx, %ecx
	addl	%eax, %ecx
	imull	$107, %r13d, %eax
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1097864831, %rax, %rax
	sarl	$31, %edx
	sarq	$41, %rax
	subl	%edx, %eax
	imull	$2003, %eax, %eax
	subl	%eax, %ecx
	leaq	hash(%rip), %rax
	movslq	%ecx, %rcx
	salq	$4, %rcx
	leaq	(%rax,%rcx), %r14
	jmp	.L107
	.p2align 4,,10
	.p2align 3
.L108:
	movq	%r13, %rdx
	movq	%r12, %rsi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L172
	addq	$16, %r14
	leaq	hash(%rip), %rax
	cmpq	%rbp, %r14
	cmove	%rax, %r14
.L107:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	.L108
	movq	%r12, (%r14)
	movl	%r15d, 8(%r14)
.L105:
	leal	1(%r15), %edx
	movl	%r15d, %eax
	movl	%edx, sz(%rip)
	movl	%edx, %r15d
.L106:
	movq	8(%rsp), %rcx
	movq	24(%rsp), %rsi
	movl	%eax, 8(%rsi,%rcx,4)
	movsbq	1(%rbx), %rax
	movl	%ecx, %edx
	addq	$1, %rcx
	movq	%rcx, 8(%rsp)
	testb	%al, %al
	je	.L101
	movq	16(%rsp), %rsi
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L172:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jns	.L106
	jmp	.L105
.L101:
	movq	24(%rsp), %rax
	addl	$1, 44(%rsp)
	movl	n(%rip), %ebx
	movl	44(%rsp), %esi
	movl	%edx, 8(%rax)
	addq	$56, %rax
	movl	$0, -52(%rax)
	movq	%rax, 24(%rsp)
	cmpl	%esi, %ebx
	jg	.L110
	movslq	%r15d, %r12
	movl	$4008, %ecx
	movl	$-1, %esi
	leaq	0(,%r12,4), %rdx
	leaq	info(%rip), %rdi
	call	__memset_chk@PLT
	movq	56(%rsp), %rdx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jle	.L114
.L111:
	movslq	(%rdx), %rcx
	leaq	info(%rip), %rsi
	addq	$56, %rdx
	movl	%eax, (%rsi,%rcx,4)
	addl	$1, %eax
	cmpl	%eax, %ebx
	jne	.L111
.L114:
	leaq	got(%rip), %r15
	movl	$1002, %ecx
	movq	%r12, %rdx
	xorl	%esi, %esi
	movq	%r15, %rdi
	call	__memset_chk@PLT
	movl	4+group(%rip), %r13d
	testl	%r13d, %r13d
	jne	.L112
	movl	$1, 4+group(%rip)
	movl	8+group(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L112
	xorl	%r12d, %r12d
	leaq	12+group(%rip), %r14
.L142:
	movslq	(%r14,%r12,4), %rax
	leaq	info(%rip), %rsi
	movslq	(%rsi,%rax,4), %rbp
	testl	%ebp, %ebp
	jns	.L173
	cmpb	$0, (%r15,%rax)
	jne	.L141
	movb	$1, (%r15,%rax)
	addl	$1, %r13d
.L141:
	addq	$1, %r12
	cmpl	%r12d, 8+group(%rip)
	jg	.L142
.L115:
	movl	%r13d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L92
.L171:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jns	.L97
	jmp	.L96
.L173:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rcx
	subq	%rbp, %rax
	leaq	(%rcx,%rax,8), %rax
	movl	4(%rax), %ebx
	testl	%ebx, %ebx
	jne	.L141
	movl	8(%rax), %edx
	movl	$1, 4(%rax)
	testl	%edx, %edx
	jle	.L141
	movslq	12(%rax), %rax
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L118
	cmpb	$0, (%r15,%rax)
	jne	.L119
	movb	$1, (%r15,%rax)
	movl	$1, %ebx
.L119:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$1, 8(%rax)
	jle	.L120
	movslq	16(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L121
	cmpb	$0, (%r15,%rax)
	jne	.L122
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L122:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$2, 8(%rax)
	jle	.L120
	movslq	20(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L123
	cmpb	$0, (%r15,%rax)
	jne	.L124
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L124:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$3, 8(%rax)
	jle	.L120
	movslq	24(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L125
	cmpb	$0, (%r15,%rax)
	jne	.L126
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L126:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$4, 8(%rax)
	jle	.L120
	movslq	28(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L127
	cmpb	$0, (%r15,%rax)
	je	.L174
.L128:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$5, 8(%rax)
	jle	.L120
	movslq	32(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L129
	cmpb	$0, (%r15,%rax)
	je	.L175
.L130:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$6, 8(%rax)
	jle	.L120
	movslq	36(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L131
	cmpb	$0, (%r15,%rax)
	je	.L176
.L132:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$7, 8(%rax)
	jle	.L120
	movslq	40(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L133
	cmpb	$0, (%r15,%rax)
	jne	.L134
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L134:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	cmpl	$8, 8(%rsi,%rax,8)
	jle	.L120
	imulq	$56, %rbp, %rax
	movslq	44(%rsi,%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L135
	cmpb	$0, (%r15,%rax)
	je	.L177
.L136:
	imulq	$56, %rbp, %rax
	leaq	group(%rip), %rsi
	addq	%rsi, %rax
	cmpl	$9, 8(%rax)
	jle	.L120
	movslq	48(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L137
	cmpb	$0, (%r15,%rax)
	je	.L178
.L138:
	imulq	$56, %rbp, %rax
	leaq	group(%rip), %rsi
	addq	%rsi, %rax
	cmpl	$10, 8(%rax)
	jle	.L120
	movslq	52(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L179
	cmpb	$0, (%r15,%rax)
	jne	.L120
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L120:
	addl	%ebx, %r13d
	jmp	.L141
.L112:
	xorl	%r13d, %r13d
	jmp	.L115
.L118:
	call	count
	movl	%eax, %ebx
	jmp	.L119
.L121:
	call	count
	addl	%eax, %ebx
	jmp	.L122
.L143:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L180
	addq	$280, %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
.L127:
	.cfi_restore_state
	call	count
	addl	%eax, %ebx
	jmp	.L128
.L125:
	call	count
	addl	%eax, %ebx
	jmp	.L126
.L123:
	call	count
	addl	%eax, %ebx
	jmp	.L124
.L174:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L128
.L129:
	call	count
	addl	%eax, %ebx
	jmp	.L130
.L131:
	call	count
	addl	%eax, %ebx
	jmp	.L132
.L135:
	call	count
	addl	%eax, %ebx
	jmp	.L136
.L176:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L132
.L133:
	call	count
	addl	%eax, %ebx
	jmp	.L134
.L175:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L130
.L177:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L136
.L179:
	call	count
	addl	%eax, %ebx
	jmp	.L120
.L178:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L138
.L137:
	call	count
	addl	%eax, %ebx
	jmp	.L138
.L180:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	group
	.align 32
	.type	group, @object
	.size	group, 5712
group:
	.zero	5712
	.globl	got
	.align 32
	.type	got, @object
	.size	got, 1002
got:
	.zero	1002
	.globl	info
	.align 32
	.type	info, @object
	.size	info, 4008
info:
	.zero	4008
	.globl	sz
	.align 4
	.type	sz, @object
	.size	sz, 4
sz:
	.zero	4
	.globl	name
	.align 32
	.type	name, @object
	.size	name, 16032
name:
	.zero	16032
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+32048
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 32080
hash:
	.zero	32080
	.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
	.p2align 4
	.type	count.part.0, @function
count.part.0:
.LFB40:
	.cfi_startproc
	movslq	%edi, %rdi
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	group(%rip), %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	0(,%rdi,8), %rax
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	subq	%rdi, %rax
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	(%r8,%rax,8), %r9
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movl	8(%r9), %r13d
	movl	$1, 4(%r9)
	movl	$0, 48(%rsp)
	testl	%r13d, %r13d
	jle	.L1
	xorl	%r10d, %r10d
	leaq	info(%rip), %r11
	movq	%r10, %rbp
	movq	%r9, %r10
.L62:
	movslq	12(%r10,%rbp,4), %rdx
	movslq	(%r11,%rdx,4), %rax
	testl	%eax, %eax
	jns	.L70
	leaq	got(%rip), %rax
	cmpb	$0, (%rax,%rdx)
	jne	.L61
	addl	$1, 48(%rsp)
	movb	$1, (%rax,%rdx)
.L61:
	addq	$1, %rbp
	cmpl	%ebp, 8(%r10)
	jg	.L62
.L1:
	movl	48(%rsp), %eax
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L70:
	.cfi_restore_state
	leaq	0(,%rax,8), %rdx
	subq	%rax, %rdx
	leaq	(%r8,%rdx,8), %r9
	movl	4(%r9), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jne	.L61
	movl	8(%r9), %r12d
	movl	$1, 4(%r9)
	testl	%r12d, %r12d
	jle	.L61
	movq	%rbp, 16(%rsp)
	xorl	%r12d, %r12d
	movq	%r10, 24(%rsp)
.L60:
	movslq	12(%r9,%r12,4), %rdx
	movslq	(%r11,%rdx,4), %rax
	testl	%eax, %eax
	jns	.L71
	leaq	got(%rip), %rax
	cmpb	$0, (%rax,%rdx)
	jne	.L59
	addl	$1, 12(%rsp)
	movb	$1, (%rax,%rdx)
.L59:
	addq	$1, %r12
	cmpl	%r12d, 8(%r9)
	jg	.L60
	movl	12(%rsp), %ecx
	movq	16(%rsp), %rbp
	addl	%ecx, 48(%rsp)
	movq	24(%rsp), %r10
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L71:
	leaq	0(,%rax,8), %rdx
	subq	%rax, %rdx
	leaq	(%r8,%rdx,8), %r14
	movl	4(%r14), %r10d
	testl	%r10d, %r10d
	jne	.L59
	movl	8(%r14), %ebx
	movl	$1, 4(%r14)
	testl	%ebx, %ebx
	jle	.L59
	movq	%r9, 40(%rsp)
	xorl	%ebp, %ebp
	movq	%r14, %rcx
	leaq	got(%rip), %rdx
	movq	%r12, 32(%rsp)
	movl	%r10d, %r12d
.L58:
	movslq	12(%rcx,%rbp,4), %rsi
	movslq	(%r11,%rsi,4), %rax
	testl	%eax, %eax
	jns	.L72
	cmpb	$0, (%rdx,%rsi)
	jne	.L57
	movb	$1, (%rdx,%rsi)
	addl	$1, %r12d
.L57:
	addq	$1, %rbp
	cmpl	%ebp, 8(%rcx)
	jg	.L58
	movl	%r12d, %r10d
	movq	40(%rsp), %r9
	addl	%r10d, 12(%rsp)
	movq	32(%rsp), %r12
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L72:
	leaq	0(,%rax,8), %rsi
	subq	%rax, %rsi
	leaq	(%r8,%rsi,8), %r15
	movl	4(%r15), %r14d
	testl	%r14d, %r14d
	jne	.L57
	movl	8(%r15), %edi
	movl	$1, 4(%r15)
	testl	%edi, %edi
	jle	.L57
	movl	%r12d, 52(%rsp)
	xorl	%r13d, %r13d
	movq	%r15, %r12
	movq	%rcx, %r15
	movq	%rbp, 56(%rsp)
	movl	%r14d, %ebp
.L56:
	movslq	12(%r12,%r13,4), %rax
	movslq	(%r11,%rax,4), %rbx
	testl	%ebx, %ebx
	jns	.L73
	cmpb	$0, (%rdx,%rax)
	jne	.L55
	movb	$1, (%rdx,%rax)
	addl	$1, %ebp
.L55:
	addq	$1, %r13
	cmpl	%r13d, 8(%r12)
	jg	.L56
	movl	52(%rsp), %r12d
	movl	%ebp, %r14d
	movq	%r15, %rcx
	movq	56(%rsp), %rbp
	addl	%r14d, %r12d
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L73:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	movl	4(%rax), %r14d
	testl	%r14d, %r14d
	jne	.L55
	movl	8(%rax), %esi
	movl	$1, 4(%rax)
	testl	%esi, %esi
	jle	.L55
	movslq	12(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L11
	cmpb	$0, (%rdx,%rax)
	jne	.L12
	movb	$1, (%rdx,%rax)
	movl	$1, %r14d
.L12:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$1, 8(%rax)
	jle	.L15
	movslq	16(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L16
	cmpb	$0, (%rdx,%rax)
	je	.L74
.L17:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$2, 8(%rax)
	jle	.L15
	movslq	20(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L20
	cmpb	$0, (%rdx,%rax)
	je	.L75
.L21:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$3, 8(%rax)
	jle	.L15
	movslq	24(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L24
	cmpb	$0, (%rdx,%rax)
	jne	.L25
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
.L25:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$4, 8(%rax)
	jle	.L15
	movslq	28(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L28
	cmpb	$0, (%rdx,%rax)
	jne	.L29
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
.L29:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$5, 8(%rax)
	jle	.L15
	movslq	32(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L32
	cmpb	$0, (%rdx,%rax)
	jne	.L33
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
.L33:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$6, 8(%rax)
	jle	.L15
	movslq	36(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L36
	cmpb	$0, (%rdx,%rax)
	je	.L76
.L37:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$7, 8(%rax)
	jle	.L15
	movslq	40(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L40
	cmpb	$0, (%rdx,%rax)
	je	.L77
.L41:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$8, 8(%rax)
	jle	.L15
	movslq	44(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L44
	cmpb	$0, (%rdx,%rax)
	je	.L78
.L45:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$9, 8(%rax)
	jle	.L15
	movslq	48(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L48
	cmpb	$0, (%rdx,%rax)
	jne	.L49
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
.L49:
	leaq	0(,%rbx,8), %rax
	subq	%rbx, %rax
	leaq	(%r8,%rax,8), %rax
	cmpl	$10, 8(%rax)
	jle	.L15
	movslq	52(%rax), %rax
	movl	(%r11,%rax,4), %edi
	testl	%edi, %edi
	jns	.L79
	cmpb	$0, (%rdx,%rax)
	jne	.L15
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	.p2align 4,,10
	.p2align 3
.L15:
	addl	%r14d, %ebp
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %ecx
	testl	%ecx, %ecx
	jne	.L12
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	movl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L17
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L74:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L25
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L75:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L21
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L28:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L29
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L32:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L33
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L36:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %r10d
	testl	%r10d, %r10d
	jne	.L37
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L40:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %r9d
	testl	%r9d, %r9d
	jne	.L41
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L76:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L37
.L77:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L41
.L48:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %ecx
	testl	%ecx, %ecx
	jne	.L49
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L49
.L78:
	movb	$1, (%rdx,%rax)
	addl	$1, %r14d
	jmp	.L45
.L44:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %esi
	testl	%esi, %esi
	jne	.L45
	call	count.part.0
	leaq	got(%rip), %rdx
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	group(%rip), %r8
	jmp	.L45
.L79:
	movslq	%edi, %r9
	leaq	0(,%r9,8), %rax
	subq	%r9, %rax
	movl	4(%r8,%rax,8), %eax
	testl	%eax, %eax
	jne	.L15
	call	count.part.0
	leaq	group(%rip), %r8
	leaq	info(%rip), %r11
	addl	%eax, %r14d
	leaq	got(%rip), %rdx
	jmp	.L15
	.cfi_endproc
.LFE40:
	.size	count.part.0, .-count.part.0
	.p2align 4
	.globl	lookup
	.type	lookup, @function
lookup:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	hash(%rip), %rbx
	call	strlen@PLT
	movsbl	0(%rbp), %ecx
	movq	hashend(%rip), %r14
	movslq	%eax, %r12
	imull	$107, %eax, %eax
	movsbl	-1(%rbp,%r12), %edx
	imull	$101, %ecx, %ecx
	imull	$103, %edx, %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	movslq	%eax, %rdx
	movl	%eax, %ecx
	imulq	$1097864831, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$41, %rdx
	subl	%ecx, %edx
	imull	$2003, %edx, %edx
	subl	%edx, %eax
	cltq
	salq	$4, %rax
	addq	%rax, %rbx
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L85:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L88
	addq	$16, %rbx
	leaq	hash(%rip), %rax
	cmpq	%rbx, %r14
	cmove	%rax, %rbx
.L84:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	.L85
	movq	%rbp, (%rbx)
	movl	$-1, %eax
	movl	%r13d, 8(%rbx)
	popq	%rbx
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L88:
	.cfi_restore_state
	movl	8(%rbx), %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
	.cfi_endproc
.LFE37:
	.size	lookup, .-lookup
	.p2align 4
	.globl	count
	.type	count, @function
count:
.LFB38:
	.cfi_startproc
	endbr64
	movslq	%edi, %rdx
	leaq	0(,%rdx,8), %rax
	subq	%rdx, %rax
	leaq	group(%rip), %rdx
	movl	4(%rdx,%rax,8), %eax
	testl	%eax, %eax
	jne	.L90
	jmp	count.part.0
	.p2align 4,,10
	.p2align 3
.L90:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE38:
	.size	count, .-count
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%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
	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	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
.L92:
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L143
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L143
	movl	$32080, %edx
	xorl	%esi, %esi
	leaq	hash(%rip), %rdi
	movl	$0, sz(%rip)
	call	memset@PLT
	call	__ctype_b_loc@PLT
	movl	$0, 44(%rsp)
	movq	%rax, 32(%rsp)
	leaq	group(%rip), %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 24(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 48(%rsp)
.L110:
	movq	48(%rsp), %r13
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	movq	(%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L93:
	movsbq	0(%r13), %rax
	movq	%r13, %rcx
	addq	$1, %r13
	testb	$4, 1(%rdx,%rax,2)
	jne	.L93
	movb	$0, (%rcx)
	movslq	sz(%rip), %rbp
	leaq	name(%rip), %rax
	movq	48(%rsp), %rsi
	movq	%rcx, 8(%rsp)
	movq	%rbp, %r15
	salq	$4, %rbp
	addq	%rax, %rbp
	movq	%rbp, %rdi
	call	stpcpy@PLT
	movsbl	0(%rbp), %edx
	movq	hashend(%rip), %rbx
	movq	%rax, %r12
	movsbl	-1(%rax), %eax
	imull	$101, %edx, %edx
	subq	%rbp, %r12
	imull	$103, %eax, %eax
	addl	%edx, %eax
	imull	$107, %r12d, %edx
	addl	%edx, %eax
	movslq	%eax, %rdx
	movl	%eax, %ecx
	imulq	$1097864831, %rdx, %rdx
	sarl	$31, %ecx
	sarq	$41, %rdx
	subl	%ecx, %edx
	imull	$2003, %edx, %edx
	subl	%edx, %eax
	movslq	%eax, %r14
	leaq	hash(%rip), %rax
	salq	$4, %r14
	addq	%rax, %r14
	jmp	.L98
	.p2align 4,,10
	.p2align 3
.L99:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L171
	addq	$16, %r14
	leaq	hash(%rip), %rax
	cmpq	%rbx, %r14
	cmove	%rax, %r14
.L98:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	.L99
	movq	%rbp, (%r14)
	movl	%r15d, 8(%r14)
.L96:
	leal	1(%r15), %edx
	movl	%r15d, %eax
	movl	%edx, sz(%rip)
	movl	%edx, %r15d
.L97:
	movq	24(%rsp), %rsi
	xorl	%edx, %edx
	movl	%eax, (%rsi)
	movq	8(%rsp), %rax
	movq	$1, 8(%rsp)
	movsbq	1(%rax), %rax
	testb	%al, %al
	je	.L101
	movq	%r13, %rsi
	.p2align 4,,10
	.p2align 3
.L100:
	movq	32(%rsp), %rcx
	movq	%rsi, %rbx
	movq	(%rcx), %rdx
	testb	$4, 1(%rdx,%rax,2)
	je	.L109
	.p2align 4,,10
	.p2align 3
.L102:
	movsbq	1(%rbx), %rax
	addq	$1, %rbx
	testb	$4, 1(%rdx,%rax,2)
	jne	.L102
.L109:
	movb	$0, (%rbx)
	movslq	sz(%rip), %r12
	leaq	1(%rbx), %rax
	movq	%rax, 16(%rsp)
	leaq	name(%rip), %rax
	movq	%r12, %r15
	salq	$4, %r12
	addq	%rax, %r12
	movq	%r12, %rdi
	call	stpcpy@PLT
	movq	hashend(%rip), %rbp
	movsbl	-1(%rax), %ecx
	movq	%rax, %r13
	movsbl	(%r12), %eax
	subq	%r12, %r13
	imull	$101, %eax, %eax
	imull	$103, %ecx, %ecx
	addl	%eax, %ecx
	imull	$107, %r13d, %eax
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1097864831, %rax, %rax
	sarl	$31, %edx
	sarq	$41, %rax
	subl	%edx, %eax
	imull	$2003, %eax, %eax
	subl	%eax, %ecx
	leaq	hash(%rip), %rax
	movslq	%ecx, %rcx
	salq	$4, %rcx
	leaq	(%rax,%rcx), %r14
	jmp	.L107
	.p2align 4,,10
	.p2align 3
.L108:
	movq	%r13, %rdx
	movq	%r12, %rsi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L172
	addq	$16, %r14
	leaq	hash(%rip), %rax
	cmpq	%rbp, %r14
	cmove	%rax, %r14
.L107:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	.L108
	movq	%r12, (%r14)
	movl	%r15d, 8(%r14)
.L105:
	leal	1(%r15), %edx
	movl	%r15d, %eax
	movl	%edx, sz(%rip)
	movl	%edx, %r15d
.L106:
	movq	8(%rsp), %rcx
	movq	24(%rsp), %rsi
	movl	%eax, 8(%rsi,%rcx,4)
	movsbq	1(%rbx), %rax
	movl	%ecx, %edx
	addq	$1, %rcx
	movq	%rcx, 8(%rsp)
	testb	%al, %al
	je	.L101
	movq	16(%rsp), %rsi
	jmp	.L100
	.p2align 4,,10
	.p2align 3
.L172:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jns	.L106
	jmp	.L105
.L101:
	movq	24(%rsp), %rax
	addl	$1, 44(%rsp)
	movl	n(%rip), %ebx
	movl	44(%rsp), %esi
	movl	%edx, 8(%rax)
	addq	$56, %rax
	movl	$0, -52(%rax)
	movq	%rax, 24(%rsp)
	cmpl	%esi, %ebx
	jg	.L110
	movslq	%r15d, %r12
	movl	$4008, %ecx
	movl	$-1, %esi
	leaq	0(,%r12,4), %rdx
	leaq	info(%rip), %rdi
	call	__memset_chk@PLT
	movq	56(%rsp), %rdx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jle	.L114
.L111:
	movslq	(%rdx), %rcx
	leaq	info(%rip), %rsi
	addq	$56, %rdx
	movl	%eax, (%rsi,%rcx,4)
	addl	$1, %eax
	cmpl	%eax, %ebx
	jne	.L111
.L114:
	leaq	got(%rip), %r15
	movl	$1002, %ecx
	movq	%r12, %rdx
	xorl	%esi, %esi
	movq	%r15, %rdi
	call	__memset_chk@PLT
	movl	4+group(%rip), %r13d
	testl	%r13d, %r13d
	jne	.L112
	movl	$1, 4+group(%rip)
	movl	8+group(%rip), %ecx
	testl	%ecx, %ecx
	jle	.L112
	xorl	%r12d, %r12d
	leaq	12+group(%rip), %r14
.L142:
	movslq	(%r14,%r12,4), %rax
	leaq	info(%rip), %rsi
	movslq	(%rsi,%rax,4), %rbp
	testl	%ebp, %ebp
	jns	.L173
	cmpb	$0, (%r15,%rax)
	jne	.L141
	movb	$1, (%r15,%rax)
	addl	$1, %r13d
.L141:
	addq	$1, %r12
	cmpl	%r12d, 8+group(%rip)
	jg	.L142
.L115:
	movl	%r13d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L92
.L171:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jns	.L97
	jmp	.L96
.L173:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rcx
	subq	%rbp, %rax
	leaq	(%rcx,%rax,8), %rax
	movl	4(%rax), %ebx
	testl	%ebx, %ebx
	jne	.L141
	movl	8(%rax), %edx
	movl	$1, 4(%rax)
	testl	%edx, %edx
	jle	.L141
	movslq	12(%rax), %rax
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L118
	cmpb	$0, (%r15,%rax)
	jne	.L119
	movb	$1, (%r15,%rax)
	movl	$1, %ebx
.L119:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$1, 8(%rax)
	jle	.L120
	movslq	16(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L121
	cmpb	$0, (%r15,%rax)
	jne	.L122
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L122:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$2, 8(%rax)
	jle	.L120
	movslq	20(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L123
	cmpb	$0, (%r15,%rax)
	jne	.L124
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L124:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$3, 8(%rax)
	jle	.L120
	movslq	24(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L125
	cmpb	$0, (%r15,%rax)
	jne	.L126
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L126:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$4, 8(%rax)
	jle	.L120
	movslq	28(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L127
	cmpb	$0, (%r15,%rax)
	je	.L174
.L128:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$5, 8(%rax)
	jle	.L120
	movslq	32(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L129
	cmpb	$0, (%r15,%rax)
	je	.L175
.L130:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$6, 8(%rax)
	jle	.L120
	movslq	36(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L131
	cmpb	$0, (%r15,%rax)
	je	.L176
.L132:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	leaq	(%rsi,%rax,8), %rax
	cmpl	$7, 8(%rax)
	jle	.L120
	movslq	40(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L133
	cmpb	$0, (%r15,%rax)
	jne	.L134
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L134:
	leaq	0(,%rbp,8), %rax
	leaq	group(%rip), %rsi
	subq	%rbp, %rax
	cmpl	$8, 8(%rsi,%rax,8)
	jle	.L120
	imulq	$56, %rbp, %rax
	movslq	44(%rsi,%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L135
	cmpb	$0, (%r15,%rax)
	je	.L177
.L136:
	imulq	$56, %rbp, %rax
	leaq	group(%rip), %rsi
	addq	%rsi, %rax
	cmpl	$9, 8(%rax)
	jle	.L120
	movslq	48(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L137
	cmpb	$0, (%r15,%rax)
	je	.L178
.L138:
	imulq	$56, %rbp, %rax
	leaq	group(%rip), %rsi
	addq	%rsi, %rax
	cmpl	$10, 8(%rax)
	jle	.L120
	movslq	52(%rax), %rax
	leaq	info(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	testl	%edi, %edi
	jns	.L179
	cmpb	$0, (%r15,%rax)
	jne	.L120
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
.L120:
	addl	%ebx, %r13d
	jmp	.L141
.L112:
	xorl	%r13d, %r13d
	jmp	.L115
.L118:
	call	count
	movl	%eax, %ebx
	jmp	.L119
.L121:
	call	count
	addl	%eax, %ebx
	jmp	.L122
.L143:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L180
	addq	$280, %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
.L127:
	.cfi_restore_state
	call	count
	addl	%eax, %ebx
	jmp	.L128
.L125:
	call	count
	addl	%eax, %ebx
	jmp	.L126
.L123:
	call	count
	addl	%eax, %ebx
	jmp	.L124
.L174:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L128
.L129:
	call	count
	addl	%eax, %ebx
	jmp	.L130
.L131:
	call	count
	addl	%eax, %ebx
	jmp	.L132
.L135:
	call	count
	addl	%eax, %ebx
	jmp	.L136
.L176:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L132
.L133:
	call	count
	addl	%eax, %ebx
	jmp	.L134
.L175:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L130
.L177:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L136
.L179:
	call	count
	addl	%eax, %ebx
	jmp	.L120
.L178:
	movb	$1, (%r15,%rax)
	addl	$1, %ebx
	jmp	.L138
.L137:
	call	count
	addl	%eax, %ebx
	jmp	.L138
.L180:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	group
	.align 32
	.type	group, @object
	.size	group, 5712
group:
	.zero	5712
	.globl	got
	.align 32
	.type	got, @object
	.size	got, 1002
got:
	.zero	1002
	.globl	info
	.align 32
	.type	info, @object
	.size	info, 4008
info:
	.zero	4008
	.globl	sz
	.align 4
	.type	sz, @object
	.size	sz, 4
sz:
	.zero	4
	.globl	name
	.align 32
	.type	name, @object
	.size	name, 16032
name:
	.zero	16032
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+32048
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 32080
hash:
	.zero	32080
	.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:

// AOJ 1305: Membership Management
// 2017.10.3 bal4u@uu

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

#define HASHSIZ 2003
typedef struct { char *s; int id; } HASH;
HASH hash[HASHSIZ+2], *hashend = hash + HASHSIZ;  // Hash table

char name[1002][16]; int sz;
int info[1002];
char got[1002];

typedef struct { int id, lock, n, m[11]; } T;
T group[102]; int n;

int lookup(char *s, int id)
{
	int w = strlen(s);
	int i = (101 * *s + 103 * *(s+w-1) + 107 * w) % HASHSIZ;
	HASH *tp;

	tp = hash + i;
	while (tp->s != NULL) {
		if (!memcmp(tp->s, s, w)) return tp->id;
		if (++tp == hashend) tp = hash;
	}
	tp->s = s, tp->id = id;
	return -1;
}

int count(int m)
{
	int i, id, s;

	if (group[m].lock) return 0;
	group[m].lock = 1;
	for (s = 0, i = 0; i < group[m].n; i++) {
		id = group[m].m[i];
		if (info[id] >= 0) s += count(info[id]);
		else if (!got[id]) got[id] = 1, s++;
	}
	return s;
}

int main()
{
	int i, j, id;
	char buf[200], *p, *q;

	while (scanf("%d", &n) && n > 0) {
		sz = 0; memset(hash, 0, sizeof(hash));
		for (i = 0; i < n; i++) {
			scanf("%s", buf);
			p = buf; while (isalpha(*p)) p++;
//			if (*p != ':') while (1); // panic
			*p++ = 0;
			strcpy(name[sz], buf);
			if ((id = lookup(name[sz], sz)) < 0) id = sz++;
			group[i].id = id;  // group
			j = 0; while (*p) {
				q = p; while (isalpha(*p)) p++;
				*p++ = 0;
				strcpy(name[sz], q);
				if ((id = lookup(name[sz], sz)) < 0) id = sz++;
				group[i].m[j++] = id;
			}
			group[i].n = j, group[i].lock = 0;
		}
		memset(info, -1, sizeof(int)*sz);
		for (i = 0; i < n; i++) info[group[i].id] = i;
		memset(got, 0, sizeof(char)*sz);
		printf("%d\n", count(0));
	}
	return 0;
}
2
development:alice,bob,design,eve.
design:carol,alice.
3
one:another.
another:yetanother.
xetanother:dave.
3
friends:alice,bob,bestfriends,carol,fran,badcompany.
bestfriends:eve,alice.
badcompany:dave,carol.
5
a:b,c,d,e.
b:c,d,e,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,g,h,i.
4
aa:bb.
cc:dd,ee.
ff:gg.
bb:cc.
0
 2
development:alice,bob,design,eve.
design:carol,amice.
3
one:another.
another:yetanother.
yetanother:dave.
3
friends:alice,bob,bestfriends,carol,fran,badcompany.
bestfriends:eve,alice.
badcompany:dave,carol.
5
a:b,c,d,e.
b:c,d,e,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,g,h,i.
4
aa:bb.
cc:dd,ee.
ff:gg.
bb:cc.
0
 2
development:alice,bob,design,eve.
oesign:cardl,alice.
3
ohe:anotner.
another:yetanother.
xetanother:dave.
3
friends:alice,bob,bestfriends,carol,fran,badcompany.
bestfriends:eve,alice.
badcompany:dave,carol.
5
a:b,c,d,e.
b:c,d,e,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,g,h,i.
4
aa:bb.
dc:dd,ee.
ff:gg.
bb:cc.
0
 2
development:alice,bob,desifn,eve.
design:carol,alice.
3
one:anotheq.
another:yetanother.
xetanother:dave.
3
friends:alice,bob,bestfriends,carol,fran,bbdcompany.
bestfriends:eve,alice.
badcompany:dave,carol.
0
a:b,c,d,e.
b:c,e,d,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,h,i,h.
4
aa:bb.
cc:dd,ee.
ff:gg.
bb:cc.
0
 2
development:alice,bob,design,eve.
design:carol,alice.
3
ohe:anotner.
another:yetanother.
xetanother:dave.
3
friends:alire,bob,bestfriends,carol,fcan,badcompany.
bestfriends:eve,alice.
badcompany:dave,carol.
5
a:b,c,d,e.
b:c,d,e,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,g,h,i.
4
aa:bb.
cc:dd,ee.
ff:gg.
bb:cc.
0
 2
development:alice,bob,desifn,eve.
design:carol,alice.
3
one:anotheq.
another:yetanother.
xetanother:dave.
3
friends:alice,bob,bestfriends,carol,fran,bbdcompany.
bestfriends:eve,aljce.
badcompany:dave,carol.
0
a:b,c,d,e.
b:c,e,d,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,h,i,h.
4
aa:bb.
cc:dd,ee.
ff:gg.
bb:cc.
1
 2
development:alice,bob,desifn,eve.
design:carol,alice.
3
oneoan:theq.
another:yetanother.
xetanother:dave.
3
friends:alice,bob,bestfriends,carol,fran,badcompany.
bestfriends:eve,alice.
badcompany:dave,carol.
5
a:b,c,d,e.
b:c,e,d,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,h,h,i.
0
aa:bb.
cc:dd,ee.
ff:gg.
bb:bc.
0
 2
development:alice,bob,design,eve.
oesign:cardl,alice.
3
ohe:anotner.
another:yetanother.
xetanother:dave.
3
friends:alice,bob,bestfriends,carol,fran,badcompany.
bestfriends:eve,alice.
badcompany:dave,carnl.
5
a:b,c,d,e.
b:c,d,e,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,g,h,i.
4
aa:bb.
dc:dd,ee.
ff:gh.
bb:cc.
0
 2
development:alice,bob,design,eve.
design:carol,amice.
3
one:another.
another:yetanother.
yetanother:dave.
3
friends:alice,bob,bestfriends,carol,fran,badcompany.
bestfrjends:eve,alice.
badcompany:dave,carol.
5
a:b,c,e,e.
b:c,d,e,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,g,h,i.
4
aa:bb.
cc:dd,ee.
ff:gg.
bb:dc.
0
 2
development:alice,bob,desifn,eve.
design:carol,alice.
0
one:another.
another:yetanother.
xetanother:dave.
3
friends:akice,bob,bestfriends,carol,fran,badcompany.
bestfriends:eve,alice.
badcompany:dave,carol.
5
a:b,c,d,e.
b:c,d,e,f.
c:d,e,f,g.
d:e,f,g,h.
e:f,g,h,i.
4
aa:bb.
cc:dd,ee.
ff:gg.
bb:cc.
0

4
1
6
4
2
 5
1
6
4
2
 4
1
6
4
1
 4
1
6
 4
1
7
4
2
 4
1
7
 4
1
6
4
 4
1
7
4
1
 5
1
6
4
1
 4

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

```c
// AOJ 1305: Membership Management
// 2017.10.3 bal4u@uu

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

#define HASHSIZ 2003
typedef struct { char *s; int id; } HASH;
HASH hash[HASHSIZ+2], *hashend = hash + HASHSIZ;  // Hash table

char name[1002][16]; int sz;
int info[1002];
char got[1002];

typedef struct { int id, lock, n, m[11]; } T;
T group[102]; int n;

int lookup(char *s, int id)
{
	int w = strlen(s);
	int i = (101 * *s + 103 * *(s+w-1) + 107 * w) % HASHSIZ;
	HASH *tp;

	tp = hash + i;
	while (tp->s != NULL) {
		if (!memcmp(tp->s, s, w)) return tp->id;
		if (++tp == hashend) tp = hash;
	}
	tp->s = s, tp->id = id;
	return -1;
}

int count(int m)
{
	int i, id, s;

	if (group[m].lock) return 0;
	group[m].lock = 1;
	for (s = 0, i = 0; i < group[m].n; i++) {
		id = group[m].m[i];
		if (info[id] >= 0) s += count(info[id]);
		else if (!got[id]) got[id] = 1, s++;
	}
	return s;
}

int main()
{
	int i, j, id;
	char buf[200], *p, *q;

	while (scanf("%d", &n) && n > 0) {
		sz = 0; memset(hash, 0, sizeof(hash));
		for (i = 0; i < n; i++) {
			scanf("%s", buf);
			p = buf; while (isalpha(*p)) p++;
//			if (*p != ':') while (1); // panic
			*p++ = 0;
			strcpy(name[sz], buf);
			if ((id = lookup(name[sz], sz)) < 0) id = sz++;
			group[i].id = id;  // group
			j = 0; while (*p) {
				q = p; while (isalpha(*p)) p++;
				*p++ = 0;
				strcpy(name[sz], q);
				if ((id = lookup(name[sz], sz)) < 0) id = sz++;
				group[i].m[j++] = id;
			}
			group[i].n = j, group[i].lock = 0;
		}
		memset(info, -1, sizeof(int)*sz);
		for (i = 0; i < n; i++) info[group[i].id] = i;
		memset(got, 0, sizeof(char)*sz);
		printf("%d\n", count(0));
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 32080
hash:
	.zero	32080
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+32048
	.globl	name
	.bss
	.align 32
	.type	name, @object
	.size	name, 16032
name:
	.zero	16032
	.globl	sz
	.align 4
	.type	sz, @object
	.size	sz, 4
sz:
	.zero	4
	.globl	info
	.align 32
	.type	info, @object
	.size	info, 4008
info:
	.zero	4008
	.globl	got
	.align 32
	.type	got, @object
	.size	got, 1002
got:
	.zero	1002
	.globl	group
	.align 32
	.type	group, @object
	.size	group, 5712
group:
	.zero	5712
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	lookup
	.type	lookup, @function
lookup:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	imull	$101, %eax, %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	-1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	imull	$103, %eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	$107, %eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1097864831, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$9, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -12(%rbp)
	movl	-12(%rbp), %edx
	imull	$2003, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	hash(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-24(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcmp@PLT
	testl	%eax, %eax
	jne	.L3
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	jmp	.L4
.L3:
	addq	$16, -8(%rbp)
	movq	hashend(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jne	.L2
	leaq	hash(%rip), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L5
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, 8(%rax)
	movl	$-1, %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	lookup, .-lookup
	.globl	count
	.type	count, @function
count:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L7
	movl	$0, %eax
	jmp	.L8
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L9
.L12:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	12+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	info(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	info(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	count
	addl	%eax, -8(%rbp)
	jmp	.L11
.L10:
	movl	-4(%rbp), %eax
	cltq
	leaq	got(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	got(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L11:
	addl	$1, -12(%rbp)
.L9:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	8+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
	movl	-8(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	count, .-count
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L14
.L28:
	movl	$0, sz(%rip)
	movl	$32080, %edx
	movl	$0, %esi
	leaq	hash(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -236(%rbp)
	jmp	.L15
.L24:
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, -224(%rbp)
	jmp	.L16
.L17:
	addq	$1, -224(%rbp)
.L16:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	jne	.L17
	movq	-224(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -224(%rbp)
	movb	$0, (%rax)
	movl	sz(%rip), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	name(%rip), %rax
	addq	%rax, %rdx
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	sz(%rip), %eax
	movl	sz(%rip), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	name(%rip), %rdx
	addq	%rcx, %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	lookup
	movl	%eax, -228(%rbp)
	cmpl	$0, -228(%rbp)
	jns	.L18
	movl	sz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sz(%rip)
	movl	%eax, -228(%rbp)
.L18:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rcx
	leaq	group(%rip), %rdx
	movl	-228(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -232(%rbp)
	jmp	.L19
.L23:
	movq	-224(%rbp), %rax
	movq	%rax, -216(%rbp)
	jmp	.L20
.L21:
	addq	$1, -224(%rbp)
.L20:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	jne	.L21
	movq	-224(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -224(%rbp)
	movb	$0, (%rax)
	movl	sz(%rip), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	name(%rip), %rax
	addq	%rax, %rdx
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	sz(%rip), %eax
	movl	sz(%rip), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	name(%rip), %rdx
	addq	%rcx, %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	lookup
	movl	%eax, -228(%rbp)
	cmpl	$0, -228(%rbp)
	jns	.L22
	movl	sz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sz(%rip)
	movl	%eax, -228(%rbp)
.L22:
	movl	-232(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -232(%rbp)
	movslq	%eax, %rcx
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	12+group(%rip), %rdx
	movl	-228(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L19:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L23
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rcx
	leaq	8+group(%rip), %rdx
	movl	-232(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -236(%rbp)
.L15:
	movl	n(%rip), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L24
	movl	sz(%rip), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	info(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -236(%rbp)
	jmp	.L25
.L26:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	group(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	info(%rip), %rdx
	movl	-236(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -236(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L26
	movl	sz(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	got(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, %edi
	call	count
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L27
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L28
.L27:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 32080
hash:
	.zero	32080
	.globl	hashend
	.section	.data.rel.local,"aw"
	.align 8
	.type	hashend, @object
	.size	hashend, 8
hashend:
	.quad	hash+32048
	.globl	name
	.bss
	.align 32
	.type	name, @object
	.size	name, 16032
name:
	.zero	16032
	.globl	sz
	.align 4
	.type	sz, @object
	.size	sz, 4
sz:
	.zero	4
	.globl	info
	.align 32
	.type	info, @object
	.size	info, 4008
info:
	.zero	4008
	.globl	got
	.align 32
	.type	got, @object
	.size	got, 1002
got:
	.zero	1002
	.globl	group
	.align 32
	.type	group, @object
	.size	group, 5712
group:
	.zero	5712
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	lookup
	.type	lookup, @function
lookup:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	imull	$101, %eax, %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	-1(%rax), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	imull	$103, %eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	$107, %eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$1097864831, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$9, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -12(%rbp)
	movl	-12(%rbp), %edx
	imull	$2003, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	hash(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-24(%rbp), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcmp@PLT
	testl	%eax, %eax
	jne	.L3
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	jmp	.L4
.L3:
	addq	$16, -8(%rbp)
	movq	hashend(%rip), %rax
	cmpq	%rax, -8(%rbp)
	jne	.L2
	leaq	hash(%rip), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L5
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, (%rax)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, 8(%rax)
	movl	$-1, %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	lookup, .-lookup
	.globl	count
	.type	count, @function
count:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L7
	movl	$0, %eax
	jmp	.L8
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L9
.L12:
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	12+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	info(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	info(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	count
	addl	%eax, -8(%rbp)
	jmp	.L11
.L10:
	movl	-4(%rbp), %eax
	cltq
	leaq	got(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	got(%rip), %rdx
	movb	$1, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L11:
	addl	$1, -12(%rbp)
.L9:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	8+group(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
	movl	-8(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	count, .-count
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L14
.L28:
	movl	$0, sz(%rip)
	movl	$32080, %edx
	movl	$0, %esi
	leaq	hash(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -236(%rbp)
	jmp	.L15
.L24:
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, -224(%rbp)
	jmp	.L16
.L17:
	addq	$1, -224(%rbp)
.L16:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	jne	.L17
	movq	-224(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -224(%rbp)
	movb	$0, (%rax)
	movl	sz(%rip), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	name(%rip), %rax
	addq	%rax, %rdx
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	sz(%rip), %eax
	movl	sz(%rip), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	name(%rip), %rdx
	addq	%rcx, %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	lookup
	movl	%eax, -228(%rbp)
	cmpl	$0, -228(%rbp)
	jns	.L18
	movl	sz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sz(%rip)
	movl	%eax, -228(%rbp)
.L18:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rcx
	leaq	group(%rip), %rdx
	movl	-228(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -232(%rbp)
	jmp	.L19
.L23:
	movq	-224(%rbp), %rax
	movq	%rax, -216(%rbp)
	jmp	.L20
.L21:
	addq	$1, -224(%rbp)
.L20:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	jne	.L21
	movq	-224(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -224(%rbp)
	movb	$0, (%rax)
	movl	sz(%rip), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	name(%rip), %rax
	addq	%rax, %rdx
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	sz(%rip), %eax
	movl	sz(%rip), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	name(%rip), %rdx
	addq	%rcx, %rdx
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	lookup
	movl	%eax, -228(%rbp)
	cmpl	$0, -228(%rbp)
	jns	.L22
	movl	sz(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, sz(%rip)
	movl	%eax, -228(%rbp)
.L22:
	movl	-232(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -232(%rbp)
	movslq	%eax, %rcx
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	12+group(%rip), %rdx
	movl	-228(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L19:
	movq	-224(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L23
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rcx
	leaq	8+group(%rip), %rdx
	movl	-232(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	4+group(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -236(%rbp)
.L15:
	movl	n(%rip), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L24
	movl	sz(%rip), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	info(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -236(%rbp)
	jmp	.L25
.L26:
	movl	-236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	leaq	group(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	info(%rip), %rdx
	movl	-236(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -236(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L26
	movl	sz(%rip), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	got(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, %edi
	call	count
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L27
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L28
.L27:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
