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

```c
/* 
   AOJ 1142
   Organize Your Train part2
   2015/5/21
 */
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define HASH_SIZE 701
struct node
{
  char str[73];
  struct node *next;
};

struct node *hash[HASH_SIZE];
int cnt = 0;



char front[73], back[73], output_str[73];

void storage_lines(int separating_num, char *input_str)
{
  int i, j;

  for(i = 0; i < 73; i++)
    {
      front[i] = '\0';
      back[i] = '\0';
    }
  
  for(i = 0; i < separating_num; i++)
    {
      front[i] = input_str[i];
    }

  for(j = 0; input_str[i] != '\0'; j++, i++)
    {
      back[j] = input_str[i] ;
    }

  //  printf("S: front=%s, back=%s\n", front, back);

}

void reversal_line(int reverse_pattern)
{
  int i, j, k;
  char tmp[73] = {'\0'};

  if(reverse_pattern == 1 || reverse_pattern == 3)
    {
      for(i = 0; front[i] != '\0'; i++)
	{
	  tmp[i] = front[i];
	}
      for(j = 0; i >= 0; j++, i--)
	{
	  front[j] = tmp[i - 1];
	}
      front[j - 1] = '\0';
    }
  
  if(reverse_pattern == 2)
    {
      for(i = 0; back[i] != '\0'; i++)
	{
	  tmp[i] = back[i];
	}
      for(j = 0; i >= 0; j++, i--)
	{
	  back[j] = tmp[i - 1];
	}
      back[j - 1] = '\0';
    }

  //  printf("R: front=%s, back=%s\n", front, back);

  
}

void departure_line(int departure_pattern)
{

  char prev_front[73], prev_back[73];
  
  
  if(departure_pattern == 0)
    {
      strcpy(prev_front, front);
      strcat(front, back);
      strcpy(output_str, front);
      strcpy(front, prev_front);
    }
  else
    {
      strcpy(prev_back, back);
      strcat(back, front);
      strcpy(output_str, back);
      strcpy(back, prev_back);
    }
}

int hash_calc(char *output_str)
{
  int i, sum = 0;

  for(i = 0; output_str[i] != '\0'; i++)
    {
      sum += output_str[i] * (i + 1) * 10;
    }
  //    printf("hash_calc \"%s\" = %d\n", output_str, sum % HASH_SIZE);
  return sum % HASH_SIZE;
}

void hash_search(int hash_val, char *output_str)
{
  struct node *next = NULL;
  if(hash[hash_val] == NULL)
    {
      //      printf("hoge\n");
      //      printf("output  \"%s\"\n", output_str);
      cnt++;
      hash[hash_val] = malloc(sizeof(*hash[hash_val]));
      strcpy(hash[hash_val]->str, output_str);
      hash[hash_val]->next = NULL;

    }
  else
    {
      //      printf("foo\n");
      next = hash[hash_val];
      if(strcmp(next->str, output_str) == 0)
	{
	  return ;
	}
      while(next->next != NULL)
	{
	  if(strcmp(next->str, output_str) == 0)
	    {
	      return ;
	    }
	  next = next->next;
	}
            if(strcmp(next->str, output_str) == 0)
	{
	  return ;
	}
	    //      printf("output  \"%s\"\n", output_str);
      cnt++;
      next->next = malloc(sizeof(*next->next));
      strcpy(next->next->str, output_str);
    }
  
  return ;
}

void search(char *input_str)
{
  int i, j, k, hash_val;
  for(i = 0; i < HASH_SIZE; i++)
    {
      hash[i] = NULL;
    }

  for(i = 1; i < strlen(input_str); i++)
    {
      storage_lines(i, input_str);
      for(j = 0; j < 4; j++)
	{
	  reversal_line(j);
	  for(k = 0; k < 2; k++)
	    {
	      departure_line(k);
	      //	      printf("%s\n", output_str);
	      hash_val = hash_calc(output_str);
	      hash_search(hash_val, output_str);
	    }
	}
    }
}

int main(void)
{
  
  int num, i, ans;
  char input_str[73];
  scanf("%d", &num);
  for(i = 0; i < num; i++)
    {
      cnt = 0;
      scanf("%s", input_str);
      search(input_str);
      printf("%d\n", cnt);
    }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 5608
hash:
	.zero	5608
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	front
	.align 32
	.type	front, @object
	.size	front, 73
front:
	.zero	73
	.globl	back
	.align 32
	.type	back, @object
	.size	back, 73
back:
	.zero	73
	.globl	output_str
	.align 32
	.type	output_str, @object
	.size	output_str, 73
output_str:
	.zero	73
	.text
	.globl	storage_lines
	.type	storage_lines, @function
storage_lines:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L2:
	cmpl	$72, -8(%rbp)
	jle	.L3
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	front(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	back(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	addl	$1, -8(%rbp)
.L6:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	storage_lines, .-storage_lines
	.globl	reversal_line
	.type	reversal_line, @function
reversal_line:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movl	%edi, -116(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movb	$0, -24(%rbp)
	cmpl	$1, -116(%rbp)
	je	.L9
	cmpl	$3, -116(%rbp)
	jne	.L10
.L9:
	movl	$0, -104(%rbp)
	jmp	.L11
.L12:
	movl	-104(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-104(%rbp), %eax
	cltq
	movb	%dl, -96(%rbp,%rax)
	addl	$1, -104(%rbp)
.L11:
	movl	-104(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L12
	movl	$0, -100(%rbp)
	jmp	.L13
.L14:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-96(%rbp,%rax), %edx
	movl	-100(%rbp), %eax
	cltq
	leaq	front(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -100(%rbp)
	subl	$1, -104(%rbp)
.L13:
	cmpl	$0, -104(%rbp)
	jns	.L14
	movl	-100(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	front(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L10:
	cmpl	$2, -116(%rbp)
	jne	.L21
	movl	$0, -104(%rbp)
	jmp	.L16
.L17:
	movl	-104(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-104(%rbp), %eax
	cltq
	movb	%dl, -96(%rbp,%rax)
	addl	$1, -104(%rbp)
.L16:
	movl	-104(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L17
	movl	$0, -100(%rbp)
	jmp	.L18
.L19:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-96(%rbp,%rax), %edx
	movl	-100(%rbp), %eax
	cltq
	leaq	back(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -100(%rbp)
	subl	$1, -104(%rbp)
.L18:
	cmpl	$0, -104(%rbp)
	jns	.L19
	movl	-100(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	back(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L21:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reversal_line, .-reversal_line
	.globl	departure_line
	.type	departure_line, @function
departure_line:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movl	%edi, -100(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -100(%rbp)
	jne	.L23
	leaq	-96(%rbp), %rax
	leaq	front(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	back(%rip), %rax
	movq	%rax, %rsi
	leaq	front(%rip), %rax
	movq	%rax, %rdi
	call	strcat@PLT
	leaq	front(%rip), %rax
	movq	%rax, %rsi
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	front(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	jmp	.L26
.L23:
	leaq	-96(%rbp), %rax
	leaq	back(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	front(%rip), %rax
	movq	%rax, %rsi
	leaq	back(%rip), %rax
	movq	%rax, %rdi
	call	strcat@PLT
	leaq	back(%rip), %rax
	movq	%rax, %rsi
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	back(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
.L26:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	departure_line, .-departure_line
	.globl	hash_calc
	.type	hash_calc, @function
hash_calc:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L28
.L29:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	-8(%rbp), %edx
	addl	$1, %edx
	imull	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L28:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L29
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1568490197, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$8, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$701, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	hash_calc, .-hash_calc
	.globl	hash_search
	.type	hash_search, @function
hash_search:
.LFB10:
	.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)
	movq	%rsi, -32(%rbp)
	movq	$0, -8(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jne	.L32
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	$88, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	$0, 80(%rax)
	jmp	.L31
.L32:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L40
	jmp	.L36
.L38:
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L41
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	movq	%rax, -8(%rbp)
.L36:
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L42
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	$88, %edi
	call	malloc@PLT
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 80(%rax)
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	jmp	.L31
.L40:
	nop
	jmp	.L31
.L41:
	nop
	jmp	.L31
.L42:
	nop
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	hash_search, .-hash_search
	.globl	search
	.type	search, @function
search:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L44
.L45:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L44:
	cmpl	$700, -32(%rbp)
	jle	.L45
	movl	$1, -32(%rbp)
	jmp	.L46
.L51:
	movq	-40(%rbp), %rdx
	movl	-32(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	storage_lines
	movl	$0, -28(%rbp)
	jmp	.L47
.L50:
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	reversal_line
	movl	$0, -24(%rbp)
	jmp	.L48
.L49:
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	departure_line
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	hash_calc
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	leaq	output_str(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	hash_search
	addl	$1, -24(%rbp)
.L48:
	cmpl	$1, -24(%rbp)
	jle	.L49
	addl	$1, -28(%rbp)
.L47:
	cmpl	$3, -28(%rbp)
	jle	.L50
	addl	$1, -32(%rbp)
.L46:
	movl	-32(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L51
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	search, .-search
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L53
.L54:
	movl	$0, cnt(%rip)
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	search
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -100(%rbp)
.L53:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L54
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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
	.globl	storage_lines
	.type	storage_lines, @function
storage_lines:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	front(%rip), %rdx
	xorl	%eax, %eax
	movl	%edi, %r8d
	movl	$9, %ecx
	movq	%rdx, %rdi
	leaq	back(%rip), %r9
	rep stosq
	movl	$9, %ecx
	movb	$0, (%rdi)
	movq	%r9, %rdi
	rep stosq
	movb	$0, (%rdi)
	testl	%r8d, %r8d
	jle	.L14
	leaq	1(%rsi), %r10
	movq	%rdx, %rcx
	leal	-1(%r8), %eax
	movl	%r8d, %edi
	subq	%r10, %rcx
	cmpq	$14, %rcx
	jbe	.L3
	cmpl	$6, %eax
	jbe	.L3
	cmpl	$14, %eax
	jbe	.L15
	movdqu	(%rsi), %xmm0
	movl	%r8d, %eax
	shrl	$4, %eax
	movaps	%xmm0, front(%rip)
	cmpl	$1, %eax
	je	.L5
	movdqu	16(%rsi), %xmm1
	movaps	%xmm1, 16+front(%rip)
	cmpl	$2, %eax
	je	.L5
	movdqu	32(%rsi), %xmm2
	movaps	%xmm2, 32+front(%rip)
	cmpl	$3, %eax
	je	.L5
	movdqu	48(%rsi), %xmm3
	movaps	%xmm3, 48+front(%rip)
.L5:
	movl	%r8d, %ecx
	andl	$-16, %ecx
	movl	%ecx, %eax
	cmpl	%ecx, %r8d
	je	.L10
	movl	%r8d, %edi
	subl	%ecx, %edi
	leal	-1(%rdi), %r10d
	cmpl	$6, %r10d
	jbe	.L7
.L4:
	movq	(%rsi,%rcx), %r10
	movq	%r10, (%rdx,%rcx)
	movl	%edi, %ecx
	andl	$-8, %ecx
	addl	%ecx, %eax
	cmpl	%ecx, %edi
	je	.L10
.L7:
	movslq	%eax, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r8d
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	2(%rax), %ecx
	cmpl	%r8d, %ecx
	jge	.L10
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	3(%rax), %ecx
	cmpl	%ecx, %r8d
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	4(%rax), %ecx
	cmpl	%ecx, %r8d
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	5(%rax), %ecx
	cmpl	%ecx, %r8d
	jle	.L10
	movslq	%ecx, %rcx
	addl	$6, %eax
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	cmpl	%eax, %r8d
	jle	.L10
	cltq
	movzbl	(%rsi,%rax), %ecx
	movb	%cl, (%rdx,%rax)
.L10:
	movslq	%r8d, %rcx
	addq	%rsi, %rcx
.L2:
	movzbl	(%rcx), %edx
	leal	1(%r8), %eax
	movslq	%r8d, %rcx
	movq	%r9, %rdi
	cltq
	subq	%rcx, %rdi
	testb	%dl, %dl
	je	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	movb	%dl, -1(%rdi,%rax)
	addq	$1, %rax
	movzbl	-1(%rsi,%rax), %edx
	testb	%dl, %dl
	jne	.L12
.L1:
	ret
.L3:
	movl	%r8d, %edi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movzbl	(%rsi,%rax), %ecx
	movb	%cl, (%rdx,%rax)
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L9
	jmp	.L10
.L14:
	movq	%rsi, %rcx
	xorl	%r8d, %r8d
	jmp	.L2
.L15:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
	.cfi_endproc
.LFE51:
	.size	storage_lines, .-storage_lines
	.p2align 4
	.globl	reversal_line
	.type	reversal_line, @function
reversal_line:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	pxor	%xmm0, %xmm0
	movl	%edi, %r8d
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movl	%edi, %eax
	movb	$0, 72(%rsp)
	andl	$-3, %eax
	movaps	%xmm0, (%rsp)
	movq	$0, 64(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	cmpl	$1, %eax
	jne	.L36
	movzbl	front(%rip), %esi
	testb	%sil, %sil
	je	.L37
	movl	$1, %edx
	movq	%rsp, %rax
	leaq	-1(%rsp), %rcx
	leaq	-1+front(%rip), %r10
	.p2align 4,,10
	.p2align 3
.L38:
	movb	%sil, (%rcx,%rdx)
	movslq	%edx, %rdi
	movq	%rdx, %r9
	addq	$1, %rdx
	movzbl	(%r10,%rdx), %esi
	testb	%sil, %sil
	jne	.L38
	leaq	front(%rip), %r10
	addq	%rdi, %rcx
	addq	%rdi, %rax
	movq	%r10, %rdx
	subq	%r9, %rcx
	.p2align 4,,10
	.p2align 3
.L39:
	movzbl	-1(%rax), %esi
	subq	$1, %rax
	addq	$1, %rdx
	movb	%sil, -1(%rdx)
	cmpq	%rcx, %rax
	jne	.L39
.L45:
	movb	$0, (%r10,%rdi)
.L36:
	cmpl	$2, %r8d
	je	.L52
.L35:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L53
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	movzbl	back(%rip), %esi
	testb	%sil, %sil
	je	.L41
	movl	$1, %edx
	movq	%rsp, %rax
	leaq	-1(%rsp), %rcx
	leaq	-1+back(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L42:
	movb	%sil, (%rcx,%rdx)
	movslq	%edx, %rdi
	movq	%rdx, %r8
	addq	$1, %rdx
	movzbl	(%r9,%rdx), %esi
	testb	%sil, %sil
	jne	.L42
	leaq	back(%rip), %r9
	addq	%rdi, %rcx
	addq	%rdi, %rax
	movq	%r9, %rdx
	subq	%r8, %rcx
	.p2align 4,,10
	.p2align 3
.L43:
	movzbl	-1(%rax), %esi
	subq	$1, %rax
	addq	$1, %rdx
	movb	%sil, -1(%rdx)
	cmpq	%rax, %rcx
	jne	.L43
.L44:
	movb	$0, (%r9,%rdi)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L37:
	movzbl	-1(%rsp), %eax
	xorl	%edi, %edi
	leaq	front(%rip), %r10
	movb	%al, front(%rip)
	jmp	.L45
.L41:
	movzbl	-1(%rsp), %eax
	xorl	%edi, %edi
	leaq	back(%rip), %r9
	movb	%al, back(%rip)
	jmp	.L44
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	reversal_line, .-reversal_line
	.p2align 4
	.globl	departure_line
	.type	departure_line, @function
departure_line:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$73, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$96, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r12
	testl	%edi, %edi
	jne	.L55
	leaq	front(%rip), %rbp
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	__stpcpy_chk@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	$73, %edx
	leaq	back(%rip), %rsi
	leaq	0(%rbp,%rax), %rdi
.L59:
	call	__stpcpy_chk@PLT
	subq	%r12, %rbx
	movl	$73, %ecx
	movq	%rbp, %rsi
	subq	%rbp, %rax
	leaq	output_str(%rip), %rdi
	leaq	1(%rax), %rdx
	call	__memcpy_chk@PLT
	leaq	1(%rbx), %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	movl	$73, %ecx
	call	__memcpy_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$96, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L55:
	.cfi_restore_state
	leaq	back(%rip), %rbp
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	__stpcpy_chk@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	$73, %edx
	leaq	front(%rip), %rsi
	leaq	0(%rbp,%rax), %rdi
	jmp	.L59
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	departure_line, .-departure_line
	.p2align 4
	.globl	hash_calc
	.type	hash_calc, @function
hash_calc:
.LFB54:
	.cfi_startproc
	endbr64
	movsbl	(%rdi), %eax
	testb	%al, %al
	je	.L64
	movl	$1, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L63:
	imull	%edx, %eax
	addq	$1, %rdx
	leal	(%rax,%rax,4), %eax
	leal	(%rcx,%rax,2), %ecx
	movsbl	-1(%rdi,%rdx), %eax
	testb	%al, %al
	jne	.L63
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1568490197, %rax, %rax
	sarl	$31, %edx
	sarq	$40, %rax
	subl	%edx, %eax
	imull	$701, %eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L64:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	hash_calc, .-hash_calc
	.p2align 4
	.globl	hash_search
	.type	hash_search, @function
hash_search:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	hash(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movslq	%edi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	0(%r13,%rbx,8), %rbp
	testq	%rbp, %rbp
	je	.L81
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L69
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L70:
	testl	%eax, %eax
	je	.L66
	movq	%r12, %rsi
	movq	%rbx, %rdi
	movq	%rbx, %rbp
	call	strcmp@PLT
.L69:
	movq	80(%rbp), %rbx
	testq	%rbx, %rbx
	jne	.L70
	testl	%eax, %eax
	jne	.L82
.L66:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L82:
	.cfi_restore_state
	movl	$88, %edi
	addl	$1, cnt(%rip)
	call	malloc@PLT
	movq	%r12, %rsi
	movl	$73, %edx
	movq	%rax, 80(%rbp)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rax, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	__strcpy_chk@PLT
	.p2align 4,,10
	.p2align 3
.L81:
	.cfi_restore_state
	movl	$88, %edi
	addl	$1, cnt(%rip)
	call	malloc@PLT
	movq	%r12, %rsi
	movl	$73, %edx
	movq	%rax, %rdi
	movq	%rax, 0(%r13,%rbx,8)
	call	__strcpy_chk@PLT
	movq	$0, 80(%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	hash_search, .-hash_search
	.p2align 4
	.globl	search
	.type	search, @function
search:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	movl	$701, %ecx
	leaq	front(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	leaq	hash(%rip), %rdi
	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
	movl	$1, %ebx
	movl	%ebx, %ebp
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	rep stosq
	leaq	1(%r13), %rax
	movq	%r13, %rdi
	subq	%rax, %rsi
	movq	%rsi, 24(%rsp)
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L135
	.p2align 4,,10
	.p2align 3
.L103:
	xorl	%eax, %eax
	movl	$9, %ecx
	leaq	front(%rip), %rdi
	cmpq	$14, 24(%rsp)
	rep stosq
	movl	$9, %ecx
	movb	$0, (%rdi)
	leaq	back(%rip), %rdi
	rep stosq
	leal	-1(%rbx), %eax
	movb	$0, (%rdi)
	jbe	.L104
	cmpl	$6, %eax
	jbe	.L104
	cmpl	$14, %eax
	jbe	.L105
	movdqu	0(%r13), %xmm0
	movl	%ebp, %eax
	leaq	front(%rip), %rsi
	shrl	$4, %eax
	movaps	%xmm0, (%rsi)
	cmpl	$1, %eax
	je	.L87
	movdqu	16(%r13), %xmm1
	movaps	%xmm1, 16+front(%rip)
	cmpl	$2, %eax
	je	.L87
	movdqu	32(%r13), %xmm2
	movaps	%xmm2, 32+front(%rip)
	cmpl	$4, %eax
	jne	.L87
	movdqu	48(%r13), %xmm3
	movaps	%xmm3, 48+front(%rip)
.L87:
	movl	%ebp, %edx
	andl	$-16, %edx
	movl	%edx, %eax
	cmpl	%ebp, %edx
	je	.L91
	subl	%edx, %ebp
	leal	-1(%rbp), %ecx
	cmpl	$6, %ecx
	jbe	.L89
.L86:
	movq	0(%r13,%rdx), %rcx
	leaq	front(%rip), %rsi
	movq	%rcx, (%rsi,%rdx)
	movl	%ebp, %edx
	andl	$-8, %edx
	addl	%edx, %eax
	cmpl	%ebp, %edx
	je	.L91
.L89:
	movslq	%eax, %rdx
	leaq	front(%rip), %rdi
	movzbl	0(%r13,%rdx), %ecx
	movb	%cl, (%rdi,%rdx)
	leal	1(%rax), %edx
	cmpl	%ebx, %edx
	jge	.L91
	movslq	%edx, %rdx
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	leal	2(%rax), %edx
	cmpl	%ebx, %edx
	jge	.L91
	movslq	%edx, %rdx
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	leal	3(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L91
	movslq	%edx, %rdx
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	leal	4(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L91
	movslq	%edx, %rdx
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	leal	5(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L91
	movslq	%edx, %rdx
	addl	$6, %eax
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	cmpl	%eax, %ebx
	jle	.L91
	cltq
	movzbl	0(%r13,%rax), %edx
	movb	%dl, (%rdi,%rax)
.L91:
	movzbl	0(%r13,%rbx), %edx
	leaq	1(%rbx), %rax
	leaq	back(%rip), %rcx
	movq	%rax, 16(%rsp)
	subq	%rbx, %rcx
	testb	%dl, %dl
	je	.L95
	.p2align 4,,10
	.p2align 3
.L94:
	movb	%dl, -1(%rcx,%rax)
	addq	$1, %rax
	movzbl	-1(%r13,%rax), %edx
	testb	%dl, %dl
	jne	.L94
.L95:
	movl	$0, 4(%rsp)
	leaq	output_str(%rip), %rbp
	leaq	-1(%rbp), %rbx
.L93:
	movl	4(%rsp), %edi
	xorl	%r12d, %r12d
	call	reversal_line
	movl	%r12d, %edi
	call	departure_line
	movsbl	0(%rbp), %eax
	testb	%al, %al
	je	.L106
.L137:
	movl	$1, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L97:
	imull	%edx, %eax
	addq	$1, %rdx
	leal	(%rax,%rax,4), %eax
	leal	(%rcx,%rax,2), %ecx
	movsbl	(%rbx,%rdx), %eax
	testb	%al, %al
	jne	.L97
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1568490197, %rax, %rax
	sarl	$31, %edx
	sarq	$40, %rax
	subl	%edx, %eax
	imull	$701, %eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
.L96:
	movslq	%eax, %rdx
	leaq	hash(%rip), %rax
	movq	(%rax,%rdx,8), %r15
	testq	%r15, %r15
	je	.L136
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L100
	jmp	.L99
	.p2align 4,,10
	.p2align 3
.L101:
	testl	%eax, %eax
	je	.L99
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movq	%r14, %r15
	call	strcmp@PLT
.L100:
	movq	80(%r15), %r14
	testq	%r14, %r14
	jne	.L101
	testl	%eax, %eax
	je	.L99
	movl	$88, %edi
	addl	$1, cnt(%rip)
	call	malloc@PLT
	movl	$73, %edx
	movq	%rbp, %rsi
	movq	%rax, 80(%r15)
	movq	%rax, %rdi
	call	__strcpy_chk@PLT
	.p2align 4,,10
	.p2align 3
.L99:
	cmpl	$1, %r12d
	jne	.L107
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	$4, %eax
	jne	.L93
	movq	16(%rsp), %rbx
	movq	%r13, %rdi
	movl	%ebx, %ebp
	call	strlen@PLT
	cmpq	%rbx, %rax
	ja	.L103
.L135:
	addq	$40, %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
.L107:
	.cfi_restore_state
	movl	$1, %r12d
	movl	%r12d, %edi
	call	departure_line
	movsbl	0(%rbp), %eax
	testb	%al, %al
	jne	.L137
.L106:
	xorl	%eax, %eax
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L136:
	movl	$88, %edi
	movq	%rdx, 8(%rsp)
	addl	$1, cnt(%rip)
	call	malloc@PLT
	movq	8(%rsp), %rdx
	movq	%rbp, %rsi
	movq	%rax, %rcx
	leaq	hash(%rip), %rax
	movq	%rcx, (%rax,%rdx,8)
	movq	%rcx, %rdi
	movl	$73, %edx
	call	__strcpy_chk@PLT
	movq	$0, 80(%rax)
	jmp	.L99
.L104:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L85:
	movzbl	0(%r13,%rax), %edx
	leaq	front(%rip), %rsi
	movb	%dl, (%rsi,%rax)
	addq	$1, %rax
	cmpq	%rbx, %rax
	jne	.L85
	jmp	.L91
.L105:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L86
	.cfi_endproc
.LFE56:
	.size	search, .-search
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L139
	xorl	%ebx, %ebx
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L140:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	movl	$0, cnt(%rip)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	search
	movl	cnt(%rip), %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L140
.L139:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L144
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L144:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.globl	output_str
	.bss
	.align 32
	.type	output_str, @object
	.size	output_str, 73
output_str:
	.zero	73
	.globl	back
	.align 32
	.type	back, @object
	.size	back, 73
back:
	.zero	73
	.globl	front
	.align 32
	.type	front, @object
	.size	front, 73
front:
	.zero	73
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	hash
	.align 32
	.type	hash, @object
	.size	hash, 5608
hash:
	.zero	5608
	.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
	.globl	storage_lines
	.type	storage_lines, @function
storage_lines:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	front(%rip), %rdx
	xorl	%eax, %eax
	movl	%edi, %r8d
	movl	$9, %ecx
	movq	%rdx, %rdi
	leaq	back(%rip), %r9
	rep stosq
	movl	$9, %ecx
	movb	$0, (%rdi)
	movq	%r9, %rdi
	rep stosq
	movb	$0, (%rdi)
	testl	%r8d, %r8d
	jle	.L14
	leaq	1(%rsi), %r10
	movq	%rdx, %rcx
	leal	-1(%r8), %eax
	movl	%r8d, %edi
	subq	%r10, %rcx
	cmpq	$14, %rcx
	jbe	.L3
	cmpl	$6, %eax
	jbe	.L3
	cmpl	$14, %eax
	jbe	.L15
	movdqu	(%rsi), %xmm0
	movl	%r8d, %eax
	shrl	$4, %eax
	movaps	%xmm0, front(%rip)
	cmpl	$1, %eax
	je	.L5
	movdqu	16(%rsi), %xmm1
	movaps	%xmm1, 16+front(%rip)
	cmpl	$2, %eax
	je	.L5
	movdqu	32(%rsi), %xmm2
	movaps	%xmm2, 32+front(%rip)
	cmpl	$3, %eax
	je	.L5
	movdqu	48(%rsi), %xmm3
	movaps	%xmm3, 48+front(%rip)
.L5:
	movl	%r8d, %ecx
	andl	$-16, %ecx
	movl	%ecx, %eax
	cmpl	%ecx, %r8d
	je	.L10
	movl	%r8d, %edi
	subl	%ecx, %edi
	leal	-1(%rdi), %r10d
	cmpl	$6, %r10d
	jbe	.L7
.L4:
	movq	(%rsi,%rcx), %r10
	movq	%r10, (%rdx,%rcx)
	movl	%edi, %ecx
	andl	$-8, %ecx
	addl	%ecx, %eax
	cmpl	%ecx, %edi
	je	.L10
.L7:
	movslq	%eax, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r8d
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	2(%rax), %ecx
	cmpl	%r8d, %ecx
	jge	.L10
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	3(%rax), %ecx
	cmpl	%ecx, %r8d
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	4(%rax), %ecx
	cmpl	%ecx, %r8d
	jle	.L10
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	leal	5(%rax), %ecx
	cmpl	%ecx, %r8d
	jle	.L10
	movslq	%ecx, %rcx
	addl	$6, %eax
	movzbl	(%rsi,%rcx), %edi
	movb	%dil, (%rdx,%rcx)
	cmpl	%eax, %r8d
	jle	.L10
	cltq
	movzbl	(%rsi,%rax), %ecx
	movb	%cl, (%rdx,%rax)
.L10:
	movslq	%r8d, %rcx
	addq	%rsi, %rcx
.L2:
	movzbl	(%rcx), %edx
	leal	1(%r8), %eax
	movslq	%r8d, %rcx
	movq	%r9, %rdi
	cltq
	subq	%rcx, %rdi
	testb	%dl, %dl
	je	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	movb	%dl, -1(%rdi,%rax)
	addq	$1, %rax
	movzbl	-1(%rsi,%rax), %edx
	testb	%dl, %dl
	jne	.L12
.L1:
	ret
.L3:
	movl	%r8d, %edi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movzbl	(%rsi,%rax), %ecx
	movb	%cl, (%rdx,%rax)
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L9
	jmp	.L10
.L14:
	movq	%rsi, %rcx
	xorl	%r8d, %r8d
	jmp	.L2
.L15:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
	.cfi_endproc
.LFE51:
	.size	storage_lines, .-storage_lines
	.p2align 4
	.globl	reversal_line
	.type	reversal_line, @function
reversal_line:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	pxor	%xmm0, %xmm0
	movl	%edi, %r8d
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movl	%edi, %eax
	movb	$0, 72(%rsp)
	andl	$-3, %eax
	movaps	%xmm0, (%rsp)
	movq	$0, 64(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	cmpl	$1, %eax
	jne	.L36
	movzbl	front(%rip), %esi
	testb	%sil, %sil
	je	.L37
	movl	$1, %edx
	movq	%rsp, %rax
	leaq	-1(%rsp), %rcx
	leaq	-1+front(%rip), %r10
	.p2align 4,,10
	.p2align 3
.L38:
	movb	%sil, (%rcx,%rdx)
	movslq	%edx, %rdi
	movq	%rdx, %r9
	addq	$1, %rdx
	movzbl	(%r10,%rdx), %esi
	testb	%sil, %sil
	jne	.L38
	leaq	front(%rip), %r10
	addq	%rdi, %rcx
	addq	%rdi, %rax
	movq	%r10, %rdx
	subq	%r9, %rcx
	.p2align 4,,10
	.p2align 3
.L39:
	movzbl	-1(%rax), %esi
	subq	$1, %rax
	addq	$1, %rdx
	movb	%sil, -1(%rdx)
	cmpq	%rcx, %rax
	jne	.L39
.L45:
	movb	$0, (%r10,%rdi)
.L36:
	cmpl	$2, %r8d
	je	.L52
.L35:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L53
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	movzbl	back(%rip), %esi
	testb	%sil, %sil
	je	.L41
	movl	$1, %edx
	movq	%rsp, %rax
	leaq	-1(%rsp), %rcx
	leaq	-1+back(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L42:
	movb	%sil, (%rcx,%rdx)
	movslq	%edx, %rdi
	movq	%rdx, %r8
	addq	$1, %rdx
	movzbl	(%r9,%rdx), %esi
	testb	%sil, %sil
	jne	.L42
	leaq	back(%rip), %r9
	addq	%rdi, %rcx
	addq	%rdi, %rax
	movq	%r9, %rdx
	subq	%r8, %rcx
	.p2align 4,,10
	.p2align 3
.L43:
	movzbl	-1(%rax), %esi
	subq	$1, %rax
	addq	$1, %rdx
	movb	%sil, -1(%rdx)
	cmpq	%rax, %rcx
	jne	.L43
.L44:
	movb	$0, (%r9,%rdi)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L37:
	movzbl	-1(%rsp), %eax
	xorl	%edi, %edi
	leaq	front(%rip), %r10
	movb	%al, front(%rip)
	jmp	.L45
.L41:
	movzbl	-1(%rsp), %eax
	xorl	%edi, %edi
	leaq	back(%rip), %r9
	movb	%al, back(%rip)
	jmp	.L44
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	reversal_line, .-reversal_line
	.p2align 4
	.globl	departure_line
	.type	departure_line, @function
departure_line:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$73, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$96, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r12
	testl	%edi, %edi
	jne	.L55
	leaq	front(%rip), %rbp
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	__stpcpy_chk@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	$73, %edx
	leaq	back(%rip), %rsi
	leaq	0(%rbp,%rax), %rdi
.L59:
	call	__stpcpy_chk@PLT
	subq	%r12, %rbx
	movl	$73, %ecx
	movq	%rbp, %rsi
	subq	%rbp, %rax
	leaq	output_str(%rip), %rdi
	leaq	1(%rax), %rdx
	call	__memcpy_chk@PLT
	leaq	1(%rbx), %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	movl	$73, %ecx
	call	__memcpy_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$96, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L55:
	.cfi_restore_state
	leaq	back(%rip), %rbp
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	__stpcpy_chk@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	$73, %edx
	leaq	front(%rip), %rsi
	leaq	0(%rbp,%rax), %rdi
	jmp	.L59
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	departure_line, .-departure_line
	.p2align 4
	.globl	hash_calc
	.type	hash_calc, @function
hash_calc:
.LFB54:
	.cfi_startproc
	endbr64
	movsbl	(%rdi), %eax
	testb	%al, %al
	je	.L64
	movl	$1, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L63:
	imull	%edx, %eax
	addq	$1, %rdx
	leal	(%rax,%rax,4), %eax
	leal	(%rcx,%rax,2), %ecx
	movsbl	-1(%rdi,%rdx), %eax
	testb	%al, %al
	jne	.L63
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1568490197, %rax, %rax
	sarl	$31, %edx
	sarq	$40, %rax
	subl	%edx, %eax
	imull	$701, %eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L64:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	hash_calc, .-hash_calc
	.p2align 4
	.globl	hash_search
	.type	hash_search, @function
hash_search:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	hash(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movslq	%edi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	0(%r13,%rbx,8), %rbp
	testq	%rbp, %rbp
	je	.L81
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L69
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L70:
	testl	%eax, %eax
	je	.L66
	movq	%r12, %rsi
	movq	%rbx, %rdi
	movq	%rbx, %rbp
	call	strcmp@PLT
.L69:
	movq	80(%rbp), %rbx
	testq	%rbx, %rbx
	jne	.L70
	testl	%eax, %eax
	jne	.L82
.L66:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L82:
	.cfi_restore_state
	movl	$88, %edi
	addl	$1, cnt(%rip)
	call	malloc@PLT
	movq	%r12, %rsi
	movl	$73, %edx
	movq	%rax, 80(%rbp)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rax, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	__strcpy_chk@PLT
	.p2align 4,,10
	.p2align 3
.L81:
	.cfi_restore_state
	movl	$88, %edi
	addl	$1, cnt(%rip)
	call	malloc@PLT
	movq	%r12, %rsi
	movl	$73, %edx
	movq	%rax, %rdi
	movq	%rax, 0(%r13,%rbx,8)
	call	__strcpy_chk@PLT
	movq	$0, 80(%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	hash_search, .-hash_search
	.p2align 4
	.globl	search
	.type	search, @function
search:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	movl	$701, %ecx
	leaq	front(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	leaq	hash(%rip), %rdi
	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
	movl	$1, %ebx
	movl	%ebx, %ebp
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	rep stosq
	leaq	1(%r13), %rax
	movq	%r13, %rdi
	subq	%rax, %rsi
	movq	%rsi, 24(%rsp)
	call	strlen@PLT
	cmpq	%rbx, %rax
	jbe	.L135
	.p2align 4,,10
	.p2align 3
.L103:
	xorl	%eax, %eax
	movl	$9, %ecx
	leaq	front(%rip), %rdi
	cmpq	$14, 24(%rsp)
	rep stosq
	movl	$9, %ecx
	movb	$0, (%rdi)
	leaq	back(%rip), %rdi
	rep stosq
	leal	-1(%rbx), %eax
	movb	$0, (%rdi)
	jbe	.L104
	cmpl	$6, %eax
	jbe	.L104
	cmpl	$14, %eax
	jbe	.L105
	movdqu	0(%r13), %xmm0
	movl	%ebp, %eax
	leaq	front(%rip), %rsi
	shrl	$4, %eax
	movaps	%xmm0, (%rsi)
	cmpl	$1, %eax
	je	.L87
	movdqu	16(%r13), %xmm1
	movaps	%xmm1, 16+front(%rip)
	cmpl	$2, %eax
	je	.L87
	movdqu	32(%r13), %xmm2
	movaps	%xmm2, 32+front(%rip)
	cmpl	$4, %eax
	jne	.L87
	movdqu	48(%r13), %xmm3
	movaps	%xmm3, 48+front(%rip)
.L87:
	movl	%ebp, %edx
	andl	$-16, %edx
	movl	%edx, %eax
	cmpl	%ebp, %edx
	je	.L91
	subl	%edx, %ebp
	leal	-1(%rbp), %ecx
	cmpl	$6, %ecx
	jbe	.L89
.L86:
	movq	0(%r13,%rdx), %rcx
	leaq	front(%rip), %rsi
	movq	%rcx, (%rsi,%rdx)
	movl	%ebp, %edx
	andl	$-8, %edx
	addl	%edx, %eax
	cmpl	%ebp, %edx
	je	.L91
.L89:
	movslq	%eax, %rdx
	leaq	front(%rip), %rdi
	movzbl	0(%r13,%rdx), %ecx
	movb	%cl, (%rdi,%rdx)
	leal	1(%rax), %edx
	cmpl	%ebx, %edx
	jge	.L91
	movslq	%edx, %rdx
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	leal	2(%rax), %edx
	cmpl	%ebx, %edx
	jge	.L91
	movslq	%edx, %rdx
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	leal	3(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L91
	movslq	%edx, %rdx
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	leal	4(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L91
	movslq	%edx, %rdx
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	leal	5(%rax), %edx
	cmpl	%edx, %ebx
	jle	.L91
	movslq	%edx, %rdx
	addl	$6, %eax
	movzbl	0(%r13,%rdx), %esi
	movb	%sil, (%rdi,%rdx)
	cmpl	%eax, %ebx
	jle	.L91
	cltq
	movzbl	0(%r13,%rax), %edx
	movb	%dl, (%rdi,%rax)
.L91:
	movzbl	0(%r13,%rbx), %edx
	leaq	1(%rbx), %rax
	leaq	back(%rip), %rcx
	movq	%rax, 16(%rsp)
	subq	%rbx, %rcx
	testb	%dl, %dl
	je	.L95
	.p2align 4,,10
	.p2align 3
.L94:
	movb	%dl, -1(%rcx,%rax)
	addq	$1, %rax
	movzbl	-1(%r13,%rax), %edx
	testb	%dl, %dl
	jne	.L94
.L95:
	movl	$0, 4(%rsp)
	leaq	output_str(%rip), %rbp
	leaq	-1(%rbp), %rbx
.L93:
	movl	4(%rsp), %edi
	xorl	%r12d, %r12d
	call	reversal_line
	movl	%r12d, %edi
	call	departure_line
	movsbl	0(%rbp), %eax
	testb	%al, %al
	je	.L106
.L137:
	movl	$1, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L97:
	imull	%edx, %eax
	addq	$1, %rdx
	leal	(%rax,%rax,4), %eax
	leal	(%rcx,%rax,2), %ecx
	movsbl	(%rbx,%rdx), %eax
	testb	%al, %al
	jne	.L97
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1568490197, %rax, %rax
	sarl	$31, %edx
	sarq	$40, %rax
	subl	%edx, %eax
	imull	$701, %eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
.L96:
	movslq	%eax, %rdx
	leaq	hash(%rip), %rax
	movq	(%rax,%rdx,8), %r15
	testq	%r15, %r15
	je	.L136
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L100
	jmp	.L99
	.p2align 4,,10
	.p2align 3
.L101:
	testl	%eax, %eax
	je	.L99
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movq	%r14, %r15
	call	strcmp@PLT
.L100:
	movq	80(%r15), %r14
	testq	%r14, %r14
	jne	.L101
	testl	%eax, %eax
	je	.L99
	movl	$88, %edi
	addl	$1, cnt(%rip)
	call	malloc@PLT
	movl	$73, %edx
	movq	%rbp, %rsi
	movq	%rax, 80(%r15)
	movq	%rax, %rdi
	call	__strcpy_chk@PLT
	.p2align 4,,10
	.p2align 3
.L99:
	cmpl	$1, %r12d
	jne	.L107
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	$4, %eax
	jne	.L93
	movq	16(%rsp), %rbx
	movq	%r13, %rdi
	movl	%ebx, %ebp
	call	strlen@PLT
	cmpq	%rbx, %rax
	ja	.L103
.L135:
	addq	$40, %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
.L107:
	.cfi_restore_state
	movl	$1, %r12d
	movl	%r12d, %edi
	call	departure_line
	movsbl	0(%rbp), %eax
	testb	%al, %al
	jne	.L137
.L106:
	xorl	%eax, %eax
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L136:
	movl	$88, %edi
	movq	%rdx, 8(%rsp)
	addl	$1, cnt(%rip)
	call	malloc@PLT
	movq	8(%rsp), %rdx
	movq	%rbp, %rsi
	movq	%rax, %rcx
	leaq	hash(%rip), %rax
	movq	%rcx, (%rax,%rdx,8)
	movq	%rcx, %rdi
	movl	$73, %edx
	call	__strcpy_chk@PLT
	movq	$0, 80(%rax)
	jmp	.L99
.L104:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L85:
	movzbl	0(%r13,%rax), %edx
	leaq	front(%rip), %rsi
	movb	%dl, (%rsi,%rax)
	addq	$1, %rax
	cmpq	%rbx, %rax
	jne	.L85
	jmp	.L91
.L105:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L86
	.cfi_endproc
.LFE56:
	.size	search, .-search
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L139
	xorl	%ebx, %ebx
	leaq	16(%rsp), %rbp
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L140:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	movl	$0, cnt(%rip)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	search
	movl	cnt(%rip), %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L140
.L139:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L144
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L144:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.globl	output_str
	.bss
	.align 32
	.type	output_str, @object
	.size	output_str, 73
output_str:
	.zero	73
	.globl	back
	.align 32
	.type	back, @object
	.size	back, 73
back:
	.zero	73
	.globl	front
	.align 32
	.type	front, @object
	.size	front, 73
front:
	.zero	73
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	hash
	.align 32
	.type	hash, @object
	.size	hash, 5608
hash:
	.zero	5608
	.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 1142
   Organize Your Train part2
   2015/5/21
 */
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define HASH_SIZE 701
struct node
{
  char str[73];
  struct node *next;
};

struct node *hash[HASH_SIZE];
int cnt = 0;



char front[73], back[73], output_str[73];

void storage_lines(int separating_num, char *input_str)
{
  int i, j;

  for(i = 0; i < 73; i++)
    {
      front[i] = '\0';
      back[i] = '\0';
    }
  
  for(i = 0; i < separating_num; i++)
    {
      front[i] = input_str[i];
    }

  for(j = 0; input_str[i] != '\0'; j++, i++)
    {
      back[j] = input_str[i] ;
    }

  //  printf("S: front=%s, back=%s\n", front, back);

}

void reversal_line(int reverse_pattern)
{
  int i, j, k;
  char tmp[73] = {'\0'};

  if(reverse_pattern == 1 || reverse_pattern == 3)
    {
      for(i = 0; front[i] != '\0'; i++)
	{
	  tmp[i] = front[i];
	}
      for(j = 0; i >= 0; j++, i--)
	{
	  front[j] = tmp[i - 1];
	}
      front[j - 1] = '\0';
    }
  
  if(reverse_pattern == 2)
    {
      for(i = 0; back[i] != '\0'; i++)
	{
	  tmp[i] = back[i];
	}
      for(j = 0; i >= 0; j++, i--)
	{
	  back[j] = tmp[i - 1];
	}
      back[j - 1] = '\0';
    }

  //  printf("R: front=%s, back=%s\n", front, back);

  
}

void departure_line(int departure_pattern)
{

  char prev_front[73], prev_back[73];
  
  
  if(departure_pattern == 0)
    {
      strcpy(prev_front, front);
      strcat(front, back);
      strcpy(output_str, front);
      strcpy(front, prev_front);
    }
  else
    {
      strcpy(prev_back, back);
      strcat(back, front);
      strcpy(output_str, back);
      strcpy(back, prev_back);
    }
}

int hash_calc(char *output_str)
{
  int i, sum = 0;

  for(i = 0; output_str[i] != '\0'; i++)
    {
      sum += output_str[i] * (i + 1) * 10;
    }
  //    printf("hash_calc \"%s\" = %d\n", output_str, sum % HASH_SIZE);
  return sum % HASH_SIZE;
}

void hash_search(int hash_val, char *output_str)
{
  struct node *next = NULL;
  if(hash[hash_val] == NULL)
    {
      //      printf("hoge\n");
      //      printf("output  \"%s\"\n", output_str);
      cnt++;
      hash[hash_val] = malloc(sizeof(*hash[hash_val]));
      strcpy(hash[hash_val]->str, output_str);
      hash[hash_val]->next = NULL;

    }
  else
    {
      //      printf("foo\n");
      next = hash[hash_val];
      if(strcmp(next->str, output_str) == 0)
	{
	  return ;
	}
      while(next->next != NULL)
	{
	  if(strcmp(next->str, output_str) == 0)
	    {
	      return ;
	    }
	  next = next->next;
	}
            if(strcmp(next->str, output_str) == 0)
	{
	  return ;
	}
	    //      printf("output  \"%s\"\n", output_str);
      cnt++;
      next->next = malloc(sizeof(*next->next));
      strcpy(next->next->str, output_str);
    }
  
  return ;
}

void search(char *input_str)
{
  int i, j, k, hash_val;
  for(i = 0; i < HASH_SIZE; i++)
    {
      hash[i] = NULL;
    }

  for(i = 1; i < strlen(input_str); i++)
    {
      storage_lines(i, input_str);
      for(j = 0; j < 4; j++)
	{
	  reversal_line(j);
	  for(k = 0; k < 2; k++)
	    {
	      departure_line(k);
	      //	      printf("%s\n", output_str);
	      hash_val = hash_calc(output_str);
	      hash_search(hash_val, output_str);
	    }
	}
    }
}

int main(void)
{
  
  int num, i, ans;
  char input_str[73];
  scanf("%d", &num);
  for(i = 0; i < num; i++)
    {
      cnt = 0;
      scanf("%s", input_str);
      search(input_str);
      printf("%d\n", cnt);
    }
  return 0;
}
4
aa
abba
bbcd
abcde
 4
ab
abba
bbcd
edcba
 4
b`
abba
bcbe
bbced
 4
`b
abba
bebe
becbd
 4
`b
aabb
bebe
becbd
 4
`c
aabb
bebe
becce
 4
e`
a`bb
bbee
eddeb
 4
e`
a`ba
bbee
eddeb
 4
_f
a`ba
ebbe
eddea
 4
_e
a`ba
ebbf
eddea

1
6
8
18
 2
6
8
18
 2
6
8
14
 2
6
4
18
 2
4
4
18
 2
4
4
13
 2
8
4
13
 2
12
4
13
 2
12
6
13
 2
12
12
13

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

```c
/* 
   AOJ 1142
   Organize Your Train part2
   2015/5/21
 */
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define HASH_SIZE 701
struct node
{
  char str[73];
  struct node *next;
};

struct node *hash[HASH_SIZE];
int cnt = 0;



char front[73], back[73], output_str[73];

void storage_lines(int separating_num, char *input_str)
{
  int i, j;

  for(i = 0; i < 73; i++)
    {
      front[i] = '\0';
      back[i] = '\0';
    }
  
  for(i = 0; i < separating_num; i++)
    {
      front[i] = input_str[i];
    }

  for(j = 0; input_str[i] != '\0'; j++, i++)
    {
      back[j] = input_str[i] ;
    }

  //  printf("S: front=%s, back=%s\n", front, back);

}

void reversal_line(int reverse_pattern)
{
  int i, j, k;
  char tmp[73] = {'\0'};

  if(reverse_pattern == 1 || reverse_pattern == 3)
    {
      for(i = 0; front[i] != '\0'; i++)
	{
	  tmp[i] = front[i];
	}
      for(j = 0; i >= 0; j++, i--)
	{
	  front[j] = tmp[i - 1];
	}
      front[j - 1] = '\0';
    }
  
  if(reverse_pattern == 2)
    {
      for(i = 0; back[i] != '\0'; i++)
	{
	  tmp[i] = back[i];
	}
      for(j = 0; i >= 0; j++, i--)
	{
	  back[j] = tmp[i - 1];
	}
      back[j - 1] = '\0';
    }

  //  printf("R: front=%s, back=%s\n", front, back);

  
}

void departure_line(int departure_pattern)
{

  char prev_front[73], prev_back[73];
  
  
  if(departure_pattern == 0)
    {
      strcpy(prev_front, front);
      strcat(front, back);
      strcpy(output_str, front);
      strcpy(front, prev_front);
    }
  else
    {
      strcpy(prev_back, back);
      strcat(back, front);
      strcpy(output_str, back);
      strcpy(back, prev_back);
    }
}

int hash_calc(char *output_str)
{
  int i, sum = 0;

  for(i = 0; output_str[i] != '\0'; i++)
    {
      sum += output_str[i] * (i + 1) * 10;
    }
  //    printf("hash_calc \"%s\" = %d\n", output_str, sum % HASH_SIZE);
  return sum % HASH_SIZE;
}

void hash_search(int hash_val, char *output_str)
{
  struct node *next = NULL;
  if(hash[hash_val] == NULL)
    {
      //      printf("hoge\n");
      //      printf("output  \"%s\"\n", output_str);
      cnt++;
      hash[hash_val] = malloc(sizeof(*hash[hash_val]));
      strcpy(hash[hash_val]->str, output_str);
      hash[hash_val]->next = NULL;

    }
  else
    {
      //      printf("foo\n");
      next = hash[hash_val];
      if(strcmp(next->str, output_str) == 0)
	{
	  return ;
	}
      while(next->next != NULL)
	{
	  if(strcmp(next->str, output_str) == 0)
	    {
	      return ;
	    }
	  next = next->next;
	}
            if(strcmp(next->str, output_str) == 0)
	{
	  return ;
	}
	    //      printf("output  \"%s\"\n", output_str);
      cnt++;
      next->next = malloc(sizeof(*next->next));
      strcpy(next->next->str, output_str);
    }
  
  return ;
}

void search(char *input_str)
{
  int i, j, k, hash_val;
  for(i = 0; i < HASH_SIZE; i++)
    {
      hash[i] = NULL;
    }

  for(i = 1; i < strlen(input_str); i++)
    {
      storage_lines(i, input_str);
      for(j = 0; j < 4; j++)
	{
	  reversal_line(j);
	  for(k = 0; k < 2; k++)
	    {
	      departure_line(k);
	      //	      printf("%s\n", output_str);
	      hash_val = hash_calc(output_str);
	      hash_search(hash_val, output_str);
	    }
	}
    }
}

int main(void)
{
  
  int num, i, ans;
  char input_str[73];
  scanf("%d", &num);
  for(i = 0; i < num; i++)
    {
      cnt = 0;
      scanf("%s", input_str);
      search(input_str);
      printf("%d\n", cnt);
    }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	hash
	.bss
	.align 32
	.type	hash, @object
	.size	hash, 5608
hash:
	.zero	5608
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	front
	.align 32
	.type	front, @object
	.size	front, 73
front:
	.zero	73
	.globl	back
	.align 32
	.type	back, @object
	.size	back, 73
back:
	.zero	73
	.globl	output_str
	.align 32
	.type	output_str, @object
	.size	output_str, 73
output_str:
	.zero	73
	.text
	.globl	storage_lines
	.type	storage_lines, @function
storage_lines:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L2:
	cmpl	$72, -8(%rbp)
	jle	.L3
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	front(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	back(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	addl	$1, -8(%rbp)
.L6:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	storage_lines, .-storage_lines
	.globl	reversal_line
	.type	reversal_line, @function
reversal_line:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movl	%edi, -116(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movb	$0, -24(%rbp)
	cmpl	$1, -116(%rbp)
	je	.L9
	cmpl	$3, -116(%rbp)
	jne	.L10
.L9:
	movl	$0, -104(%rbp)
	jmp	.L11
.L12:
	movl	-104(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-104(%rbp), %eax
	cltq
	movb	%dl, -96(%rbp,%rax)
	addl	$1, -104(%rbp)
.L11:
	movl	-104(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L12
	movl	$0, -100(%rbp)
	jmp	.L13
.L14:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-96(%rbp,%rax), %edx
	movl	-100(%rbp), %eax
	cltq
	leaq	front(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -100(%rbp)
	subl	$1, -104(%rbp)
.L13:
	cmpl	$0, -104(%rbp)
	jns	.L14
	movl	-100(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	front(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L10:
	cmpl	$2, -116(%rbp)
	jne	.L21
	movl	$0, -104(%rbp)
	jmp	.L16
.L17:
	movl	-104(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-104(%rbp), %eax
	cltq
	movb	%dl, -96(%rbp,%rax)
	addl	$1, -104(%rbp)
.L16:
	movl	-104(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L17
	movl	$0, -100(%rbp)
	jmp	.L18
.L19:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-96(%rbp,%rax), %edx
	movl	-100(%rbp), %eax
	cltq
	leaq	back(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -100(%rbp)
	subl	$1, -104(%rbp)
.L18:
	cmpl	$0, -104(%rbp)
	jns	.L19
	movl	-100(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	back(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L21:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reversal_line, .-reversal_line
	.globl	departure_line
	.type	departure_line, @function
departure_line:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movl	%edi, -100(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -100(%rbp)
	jne	.L23
	leaq	-96(%rbp), %rax
	leaq	front(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	back(%rip), %rax
	movq	%rax, %rsi
	leaq	front(%rip), %rax
	movq	%rax, %rdi
	call	strcat@PLT
	leaq	front(%rip), %rax
	movq	%rax, %rsi
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	front(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	jmp	.L26
.L23:
	leaq	-96(%rbp), %rax
	leaq	back(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	front(%rip), %rax
	movq	%rax, %rsi
	leaq	back(%rip), %rax
	movq	%rax, %rdi
	call	strcat@PLT
	leaq	back(%rip), %rax
	movq	%rax, %rsi
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	back(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
.L26:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	departure_line, .-departure_line
	.globl	hash_calc
	.type	hash_calc, @function
hash_calc:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L28
.L29:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	-8(%rbp), %edx
	addl	$1, %edx
	imull	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L28:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L29
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1568490197, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$8, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$701, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	hash_calc, .-hash_calc
	.globl	hash_search
	.type	hash_search, @function
hash_search:
.LFB10:
	.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)
	movq	%rsi, -32(%rbp)
	movq	$0, -8(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jne	.L32
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	$88, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	$0, 80(%rax)
	jmp	.L31
.L32:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L40
	jmp	.L36
.L38:
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L41
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	movq	%rax, -8(%rbp)
.L36:
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L42
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	$88, %edi
	call	malloc@PLT
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 80(%rax)
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	jmp	.L31
.L40:
	nop
	jmp	.L31
.L41:
	nop
	jmp	.L31
.L42:
	nop
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	hash_search, .-hash_search
	.globl	search
	.type	search, @function
search:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L44
.L45:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L44:
	cmpl	$700, -32(%rbp)
	jle	.L45
	movl	$1, -32(%rbp)
	jmp	.L46
.L51:
	movq	-40(%rbp), %rdx
	movl	-32(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	storage_lines
	movl	$0, -28(%rbp)
	jmp	.L47
.L50:
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	reversal_line
	movl	$0, -24(%rbp)
	jmp	.L48
.L49:
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	departure_line
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	hash_calc
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	leaq	output_str(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	hash_search
	addl	$1, -24(%rbp)
.L48:
	cmpl	$1, -24(%rbp)
	jle	.L49
	addl	$1, -28(%rbp)
.L47:
	cmpl	$3, -28(%rbp)
	jle	.L50
	addl	$1, -32(%rbp)
.L46:
	movl	-32(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L51
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	search, .-search
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L53
.L54:
	movl	$0, cnt(%rip)
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	search
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -100(%rbp)
.L53:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L54
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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, 5608
hash:
	.zero	5608
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	front
	.align 32
	.type	front, @object
	.size	front, 73
front:
	.zero	73
	.globl	back
	.align 32
	.type	back, @object
	.size	back, 73
back:
	.zero	73
	.globl	output_str
	.align 32
	.type	output_str, @object
	.size	output_str, 73
output_str:
	.zero	73
	.text
	.globl	storage_lines
	.type	storage_lines, @function
storage_lines:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-8(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L2:
	cmpl	$72, -8(%rbp)
	jle	.L3
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	front(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	back(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	addl	$1, -8(%rbp)
.L6:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	storage_lines, .-storage_lines
	.globl	reversal_line
	.type	reversal_line, @function
reversal_line:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movl	%edi, -116(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movb	$0, -24(%rbp)
	cmpl	$1, -116(%rbp)
	je	.L9
	cmpl	$3, -116(%rbp)
	jne	.L10
.L9:
	movl	$0, -104(%rbp)
	jmp	.L11
.L12:
	movl	-104(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-104(%rbp), %eax
	cltq
	movb	%dl, -96(%rbp,%rax)
	addl	$1, -104(%rbp)
.L11:
	movl	-104(%rbp), %eax
	cltq
	leaq	front(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L12
	movl	$0, -100(%rbp)
	jmp	.L13
.L14:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-96(%rbp,%rax), %edx
	movl	-100(%rbp), %eax
	cltq
	leaq	front(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -100(%rbp)
	subl	$1, -104(%rbp)
.L13:
	cmpl	$0, -104(%rbp)
	jns	.L14
	movl	-100(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	front(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L10:
	cmpl	$2, -116(%rbp)
	jne	.L21
	movl	$0, -104(%rbp)
	jmp	.L16
.L17:
	movl	-104(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-104(%rbp), %eax
	cltq
	movb	%dl, -96(%rbp,%rax)
	addl	$1, -104(%rbp)
.L16:
	movl	-104(%rbp), %eax
	cltq
	leaq	back(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L17
	movl	$0, -100(%rbp)
	jmp	.L18
.L19:
	movl	-104(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-96(%rbp,%rax), %edx
	movl	-100(%rbp), %eax
	cltq
	leaq	back(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -100(%rbp)
	subl	$1, -104(%rbp)
.L18:
	cmpl	$0, -104(%rbp)
	jns	.L19
	movl	-100(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	back(%rip), %rdx
	movb	$0, (%rax,%rdx)
.L21:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reversal_line, .-reversal_line
	.globl	departure_line
	.type	departure_line, @function
departure_line:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movl	%edi, -100(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -100(%rbp)
	jne	.L23
	leaq	-96(%rbp), %rax
	leaq	front(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	back(%rip), %rax
	movq	%rax, %rsi
	leaq	front(%rip), %rax
	movq	%rax, %rdi
	call	strcat@PLT
	leaq	front(%rip), %rax
	movq	%rax, %rsi
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	front(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	jmp	.L26
.L23:
	leaq	-96(%rbp), %rax
	leaq	back(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	front(%rip), %rax
	movq	%rax, %rsi
	leaq	back(%rip), %rax
	movq	%rax, %rdi
	call	strcat@PLT
	leaq	back(%rip), %rax
	movq	%rax, %rsi
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	back(%rip), %rax
	movq	%rax, %rdi
	call	strcpy@PLT
.L26:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	departure_line, .-departure_line
	.globl	hash_calc
	.type	hash_calc, @function
hash_calc:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L28
.L29:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	-8(%rbp), %edx
	addl	$1, %edx
	imull	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L28:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L29
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1568490197, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$8, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$701, %edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	hash_calc, .-hash_calc
	.globl	hash_search
	.type	hash_search, @function
hash_search:
.LFB10:
	.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)
	movq	%rsi, -32(%rbp)
	movq	$0, -8(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	jne	.L32
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	$88, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	$0, 80(%rax)
	jmp	.L31
.L32:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L40
	jmp	.L36
.L38:
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L41
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	movq	%rax, -8(%rbp)
.L36:
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L42
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	movl	$88, %edi
	call	malloc@PLT
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, 80(%rax)
	movq	-8(%rbp), %rax
	movq	80(%rax), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	jmp	.L31
.L40:
	nop
	jmp	.L31
.L41:
	nop
	jmp	.L31
.L42:
	nop
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	hash_search, .-hash_search
	.globl	search
	.type	search, @function
search:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L44
.L45:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	hash(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L44:
	cmpl	$700, -32(%rbp)
	jle	.L45
	movl	$1, -32(%rbp)
	jmp	.L46
.L51:
	movq	-40(%rbp), %rdx
	movl	-32(%rbp), %eax
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	storage_lines
	movl	$0, -28(%rbp)
	jmp	.L47
.L50:
	movl	-28(%rbp), %eax
	movl	%eax, %edi
	call	reversal_line
	movl	$0, -24(%rbp)
	jmp	.L48
.L49:
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	departure_line
	leaq	output_str(%rip), %rax
	movq	%rax, %rdi
	call	hash_calc
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	leaq	output_str(%rip), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	hash_search
	addl	$1, -24(%rbp)
.L48:
	cmpl	$1, -24(%rbp)
	jle	.L49
	addl	$1, -28(%rbp)
.L47:
	cmpl	$3, -28(%rbp)
	jle	.L50
	addl	$1, -32(%rbp)
.L46:
	movl	-32(%rbp), %eax
	movslq	%eax, %rbx
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L51
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	search, .-search
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L53
.L54:
	movl	$0, cnt(%rip)
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-96(%rbp), %rax
	movq	%rax, %rdi
	call	search
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -100(%rbp)
.L53:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L54
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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:
